v0.7.5b: fixed incorrect CJK font typeface selection on android 7.0+

This commit is contained in:
Evan Debenham 2019-10-13 02:16:11 -04:00
parent 34ca62f506
commit dcba7d03eb

View File

@ -219,17 +219,17 @@ public class AndroidPlatformSupport extends PlatformSupport {
//android 7.0+. Finally back to normalcy, everything nicely in one .ttc
if (Gdx.files.absolute("/system/fonts/NotoSansCJK-Regular.ttc").exists()) {
//typefaces are 1-JP, 2-KR, 3-SC, 4-TC.
//typefaces are 0-JP, 1-KR, 2-SC, 3-TC.
int typeFace;
switch (SPDSettings.language()){
case JAPANESE:
typeFace = 1;
typeFace = 0;
break;
case KOREAN:
typeFace = 2;
typeFace = 1;
break;
case CHINESE: default:
typeFace = 3;
typeFace = 2;
}
KRFontGenerator = SCFontGenerator = JPFontGenerator = new FreeTypeFontGenerator(Gdx.files.absolute("/system/fonts/NotoSansCJK-Regular.ttc"), typeFace);