So, I needed to add a new font to my fire phone so that I can view my native language.
Thinking fire os 4.6.3 is just a customization on android KitKat(4.4.4) I went ahead and tried to add my fonts (Noto Sans Sinhala) to /system/fonts directory. But It was a read only sqfs partition. So I unmounted it and copied it's contents to a actual /system/fonts directory. Then I added a new font family with my fonts in /system/etc/fallback_fonts.xml and rebooted which is the trick for JB and later roms. Nothing happened! Still no native language.
Then I tried replacing a default android font I normally don't use(Noto Sans Thai). Still not working. So I changed Droid Sans Fallback font, which is the oldest trick to get new glyphs. Nope, still not working.
After fiddling around a little, I found a fontconfig cache in /system/etc/fonts along with fontconfig configuration files!! Something I haven't seen in any other android roms. Finally, I came to the conclusion that I might have to rebuild the fontconfig cache.
Dose anyone know how to trigger a fontconfig cache rebuild? or some other way around it?
Thinking fire os 4.6.3 is just a customization on android KitKat(4.4.4) I went ahead and tried to add my fonts (Noto Sans Sinhala) to /system/fonts directory. But It was a read only sqfs partition. So I unmounted it and copied it's contents to a actual /system/fonts directory. Then I added a new font family with my fonts in /system/etc/fallback_fonts.xml and rebooted which is the trick for JB and later roms. Nothing happened! Still no native language.
Then I tried replacing a default android font I normally don't use(Noto Sans Thai). Still not working. So I changed Droid Sans Fallback font, which is the oldest trick to get new glyphs. Nope, still not working.
After fiddling around a little, I found a fontconfig cache in /system/etc/fonts along with fontconfig configuration files!! Something I haven't seen in any other android roms. Finally, I came to the conclusion that I might have to rebuild the fontconfig cache.
Dose anyone know how to trigger a fontconfig cache rebuild? or some other way around it?
Aucun commentaire:
Enregistrer un commentaire