v0.7.5b: fixed incorrect CJK font typeface selection on android 7.0+
This commit is contained in:
parent
34ca62f506
commit
dcba7d03eb
|
@ -219,17 +219,17 @@ public class AndroidPlatformSupport extends PlatformSupport {
|
||||||
|
|
||||||
//android 7.0+. Finally back to normalcy, everything nicely in one .ttc
|
//android 7.0+. Finally back to normalcy, everything nicely in one .ttc
|
||||||
if (Gdx.files.absolute("/system/fonts/NotoSansCJK-Regular.ttc").exists()) {
|
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;
|
int typeFace;
|
||||||
switch (SPDSettings.language()){
|
switch (SPDSettings.language()){
|
||||||
case JAPANESE:
|
case JAPANESE:
|
||||||
typeFace = 1;
|
typeFace = 0;
|
||||||
break;
|
break;
|
||||||
case KOREAN:
|
case KOREAN:
|
||||||
typeFace = 2;
|
typeFace = 1;
|
||||||
break;
|
break;
|
||||||
case CHINESE: default:
|
case CHINESE: default:
|
||||||
typeFace = 3;
|
typeFace = 2;
|
||||||
}
|
}
|
||||||
KRFontGenerator = SCFontGenerator = JPFontGenerator = new FreeTypeFontGenerator(Gdx.files.absolute("/system/fonts/NotoSansCJK-Regular.ttc"), typeFace);
|
KRFontGenerator = SCFontGenerator = JPFontGenerator = new FreeTypeFontGenerator(Gdx.files.absolute("/system/fonts/NotoSansCJK-Regular.ttc"), typeFace);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user