diff --git a/assets/fonts/Lohit-Gujarati.ttf b/assets/fonts/Lohit-Gujarati.ttf new file mode 100644 index 000000000..e8e1fb750 Binary files /dev/null and b/assets/fonts/Lohit-Gujarati.ttf differ diff --git a/assets/fonts/Lohit-Odia.ttf b/assets/fonts/Lohit-Odia.ttf new file mode 100644 index 000000000..aca69fd54 Binary files /dev/null and b/assets/fonts/Lohit-Odia.ttf differ diff --git a/src/org/kiwix/kiwixmobile/LanguageUtils.java b/src/org/kiwix/kiwixmobile/LanguageUtils.java index bfd91554b..1bcb2183c 100644 --- a/src/org/kiwix/kiwixmobile/LanguageUtils.java +++ b/src/org/kiwix/kiwixmobile/LanguageUtils.java @@ -253,7 +253,15 @@ public class LanguageUtils { // Define the exceptions to the rule. The font has to be placed in the assets folder. // Key: the language code; Value: the name of the font. HashMap exceptions = new HashMap(); + exceptions.put("gu", "fonts/Lohit-Gujarati.ttf"); exceptions.put("my", "fonts/Parabaik.ttf"); + exceptions.put("or", "fonts/Lohit-Odia.ttf"); + // These scripts could be supported via more Lohit fonts if DevaVu doesn't + // support them. That is untested now as they aren't even in the language + // menu: + // * (no ISO code?) (Devanagari/Nagari) -- at 0% in translatewiki + // * mr (Marathi) -- at 21% in translatewiki + // * pa (Punjabi) -- at 3% in translatewiki // Check, if an exception applies to our current locale if (exceptions.containsKey(Locale.getDefault().getLanguage())) {