v0.3.5: added classic font for cyrillic

This commit is contained in:
Evan Debenham 2016-03-15 20:54:11 -04:00
parent 8721637362
commit a5fc42c80d
3 changed files with 2 additions and 10 deletions

Binary file not shown.

View File

@ -343,10 +343,6 @@ public class ShatteredPixelDungeon extends Game {
public static void language(Languages lang) {
Preferences.INSTANCE.put( Preferences.KEY_LANG, lang.code());
if (lang == Languages.RUSSIAN || lang == Languages.CHINESE || lang == Languages.KOREAN)
RenderedText.setFont("font.ttf");
else if (classicFont())
RenderedText.setFont("pixelfont.ttf");
}
public static Languages language() {
@ -371,10 +367,6 @@ public class ShatteredPixelDungeon extends Game {
}
public static boolean classicFont(){
Languages lang = ShatteredPixelDungeon.language();
if (lang == Languages.RUSSIAN || lang == Languages.CHINESE || lang == Languages.KOREAN)
return false;
else
return Preferences.INSTANCE.getBoolean(Preferences.KEY_CLASSICFONT, true);
}

View File

@ -267,7 +267,7 @@ public class WndSettings extends WndTabbed {
chkFont.setRect(0, slots.bottom() + GAP_SML, WIDTH, BTN_HEIGHT);
chkFont.checked(!ShatteredPixelDungeon.classicFont());
Languages lang = ShatteredPixelDungeon.language();
if (lang != Languages.RUSSIAN && lang != Languages.CHINESE && lang != Languages.KOREAN)
if (lang != Languages.CHINESE && lang != Languages.KOREAN)
add(chkFont);
}