How to get perfect Sinhala text on Android 4.4 KitKat! (and 4.2 + 4.3) + Instructions for 5.0 Lollipop Issues

  1. Root your device if you haven’t already
  2. Download font from Siyabas. I usedBhashitha for Linux. Potha also works. [4.2.2 only supported Potha in Shenal’s testing] Try other fonts and let us know if they work. [Chathura tried our custom MalithiWeb font but it showed rendering issues on other Apps like Twitter.] Link: Sinhala Fonts
  3. Copy the font files to /system/fonts (I copied the files to the SD card and used ADB Shell to mount and copy them to the relevant directory. You can use something like Root Browser too) — You can use any file you like. I decided to go with LBhashitaComplexSans
  4. Download the fallback_fonts.xml file from /etc
  5. Open the fallback_fonts.xml file and modify it by adding your font names before DroidSansFallback entry.
  1. Copy the file back to the /etc directory.
  2. Now an important part which took some time for me to figure out. PERMISSIONS! Change the permissions of your fallback_fonts.xml file AND the font files to 644 or -rw-r–r– (You can do this with the terminal with chmod or using a root browser application.)

--

--

--

Software Developer, Amateur Photographer. Loves Tech, Music, Movies, Food and Coffee.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Malinthe Samarakoon

Malinthe Samarakoon

Software Developer, Amateur Photographer. Loves Tech, Music, Movies, Food and Coffee.

More from Medium

APK vs Android App Bundle

How to Submit your Android Application to Google Play

Using Foreground Service in Android

Android DataStore with my POV for beginners’ help