Skip to content

Commit

Permalink
English is always binding="strong"
Browse files Browse the repository at this point in the history
  • Loading branch information
Guo Yunhe committed Sep 11, 2015
1 parent 0996af2 commit 35c85f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/me/guoyunhe/fontweak/FontConfigXML.java
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@ private Element makeFontFamilyMatch(String family, String lang, String font) {
// Lower priority of current locale, see #20
String binding = null;
Locale locale;
if (lang.length() > 2) {
if (lang.equals("en")) {
binding = "strong";
} else if (lang.length() > 2) {
locale = new Locale(lang.substring(0, 2), lang.substring(3));
if (!sysLocale.getLanguage().equals(locale.getLanguage()) || !sysLocale.getCountry().equals(locale.getCountry())) {
binding = "strong";
Expand Down

0 comments on commit 35c85f1

Please sign in to comment.