v0.8.0: added support for system font in all languages on desktop
This commit is contained in:
parent
0b77c20ca7
commit
54db0a7c6c
Binary file not shown.
Binary file not shown.
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user