v0.8.0: added support for system font in all languages on desktop

This commit is contained in:
Evan Debenham 2020-03-24 20:01:53 -04:00
parent 0b77c20ca7
commit 54db0a7c6c
3 changed files with 6 additions and 3 deletions

Binary file not shown.

View File

@ -120,9 +120,12 @@ public class DesktopPlatformSupport extends PlatformSupport {
}
fonts = new HashMap<>();
//FIXME systemfont setting is currently ignored as DroidSandFallback.ttf is missing key characters
basicFontGenerator = new FreeTypeFontGenerator(Gdx.files.internal("pixel_font.ttf"));
asianFontGenerator = new FreeTypeFontGenerator(Gdx.files.internal("DroidSansFallback.ttf"));
if (systemfont) {
basicFontGenerator = asianFontGenerator = new FreeTypeFontGenerator(Gdx.files.internal("DroidSansFallback.ttf"));
} else {
basicFontGenerator = new FreeTypeFontGenerator(Gdx.files.internal("pixel_font.ttf"));
asianFontGenerator = new FreeTypeFontGenerator(Gdx.files.internal("DroidSansFallback.ttf"));
}
fonts.put(basicFontGenerator, basicFonts);
fonts.put(asianFontGenerator, asianFonts);