Giter VIP home page Giter VIP logo

Comments (8)

turanszkij avatar turanszkij commented on May 25, 2024 1

Thanks for the screenshots. I like the look of unifont at first glance. I will test it for myself a bit too.

from wickedengine.

conradax avatar conradax commented on May 25, 2024

Maybe I should complete the translation so that you can test it with new font properly. What do you think?
@turanszkij

from wickedengine.

turanszkij avatar turanszkij commented on May 25, 2024

Fonts are compiled into the exe from header files, to avoid loading from separate files. This way user only needs the exe and not other files to run the editor. We can add support for chinese font, can you post that font file here, so I can test it and create embedded header file from it?

Also post an example chinese text that doesn't work correctly now but works with your new font.

from wickedengine.

turanszkij avatar turanszkij commented on May 25, 2024

Maybe I should complete the translation so that you can test it with new font properly. What do you think? @turanszkij

You don't have to create full chinese localization, we can fix the chinese text support separately. But if you create localization, we can include it with the engine.

from wickedengine.

conradax avatar conradax commented on May 25, 2024

That font is some random font on my work machine which is very likely has copyright issue, and I have no access for that computer now because It's weekend :)
I think something like ubuntu mono should be fine, I'll find a link and post it here.
Before that I'll re-create a draft localization .xml file for testing and upload it here ASAP

from wickedengine.

conradax avatar conradax commented on May 25, 2024

xml for testing font: simplified_chinese.zip, only easy parts translated.

So I tried noto-sans and unifont and I got 12 screenshots.(ZOOM IN the page to see text in pics)

Direct link: NotoSansMonoCJKsc-Regular.ttf and unifont-15.0.01.ttf

I think unifont is the best considering the balance of the size and supported glyphs.
(kinda ugly like retro pixel font but somehow matches editor theme and I really like it)

lang.\font yumin unifont noto-sans-sc
English yumin-english unifont-english noto_sans-english
Magyar yumin-magyar unifont-magyar noto_sans-magyar
Japanese yumin-japanese unifont-japanese noto_sans-japanese
Chinese yumin-chinese unifont-chinese noto_sans-chinese

from wickedengine.

turanszkij avatar turanszkij commented on May 25, 2024

I didn't really like these fonts, but I will think of a solution to have ability to add custom fonts for a language by user without rebuilding the engine.

from wickedengine.

turanszkij avatar turanszkij commented on May 25, 2024

This is solved in this commit: 3fbb10b

  • Removed Yumin font
  • Added Noto Sans CJK font to Editor/fonts
  • Editor/fonts folder can contain other user fonts if new characters need to be supported, they will be loaded automatically at startup
  • Default font in the Editor can be overridden in config.ini by specifying font = filename.ttf (see example in Editor/config.ini

from wickedengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.