gecko0307 / dagon

3D game engine for D
https://gecko0307.github.io/dagon
Other
321 stars 30 forks source link

Nuklear GUI detect locale glyph ranges #51

Closed Timu5 closed 5 years ago

Timu5 commented 5 years ago

This adds basic support for detecting require glyph ranges for Nuklear fonts based on operating system locale. It support detecting 5 languages: Chinese, Russian, Korean, Deutch, Polish. Every other locale fallback to ASCII range. Because of lack of require data for mapping language code into glyph ranges its rather slow to add more. This also fix some problems with fonts loading by using one atlas per font, instead of one atlas for all fonts.

Timu5 commented 5 years ago

@gecko0307 It seems like we both done the same thing :)

Timu5 commented 5 years ago

I merged both branches and removed my redundant code.