mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Fix blurred Font on non Chinese Language
This commit is contained in:
@@ -39,12 +39,4 @@ public class FLanguage {
|
||||
return allLanguages;
|
||||
}
|
||||
|
||||
public static boolean getLanguage(final String languageName) {
|
||||
final ForgePreferences prefs = FModel.getPreferences();
|
||||
if (languageName.equals(prefs.getPref(FPref.UI_LANGUAGE)))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ import java.util.Map;
|
||||
|
||||
public class FSkinFont {
|
||||
private static final int MIN_FONT_SIZE = 8;
|
||||
private static final int MAX_FONT_SIZE = FLanguage.getLanguage("zh-CN") ? 28 : 72;
|
||||
private static final int MAX_FONT_SIZE = 72; //todo method
|
||||
|
||||
private static final String TTF_FILE = "font1.ttf";
|
||||
private static final Map<Integer, FSkinFont> fonts = new HashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user