From dcba7d03eba908655602e6555b6b5faa069087a3 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 13 Oct 2019 02:16:11 -0400 Subject: [PATCH] v0.7.5b: fixed incorrect CJK font typeface selection on android 7.0+ --- .../android/AndroidPlatformSupport.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/android/src/main/java/com/shatteredpixel/shatteredpixeldungeon/android/AndroidPlatformSupport.java b/android/src/main/java/com/shatteredpixel/shatteredpixeldungeon/android/AndroidPlatformSupport.java index 5cc78b2a8..197bb5d63 100644 --- a/android/src/main/java/com/shatteredpixel/shatteredpixeldungeon/android/AndroidPlatformSupport.java +++ b/android/src/main/java/com/shatteredpixel/shatteredpixeldungeon/android/AndroidPlatformSupport.java @@ -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);