Chinese font should now be loaded properly

This commit is contained in:
Yair Morgenstern 2018-12-14 12:44:47 +02:00
parent b3c79ec299
commit afbd2ad21b

View File

@ -86,7 +86,7 @@ class Fonts {
else {
val localPath = "fonts/$fontForLanguage.ttf"
if(!containsFont(fontForLanguage)) downloadFontForLanguage(language)
generator = FreeTypeFontGenerator(Gdx.files.internal(localPath))
generator = FreeTypeFontGenerator(Gdx.files.local(localPath))
}
val parameter = FreeTypeFontGenerator.FreeTypeFontParameter()