Search code examples
androidfontsrenderingandroid-4.2-jelly-bean

Urdu font rendering issue in android 4.1


One of my letters does not render properly in android 4.1 :

enter image description here

The same renders fine on 4.2 and 4.3 :

enter image description here

I would like to fix this if possible, any ideas how?


Solution

  • The bad rendering of "heh" in that example is due to a mistake in the Droid Arabic Naskh font. It was fixed by an update in October 2012. (See report here — https://android.googlesource.com/platform/frameworks/base/+/cd31db60ee6df6dd84bce9925e96b6cccbdf522d)

    The relevant changes is:

    Fixed shaping of U+06C1 HEH GOAL.

    This explains why it displays correctly in the newer versions of Android.

    The updated fonts are available on Github at https://github.com/android/platform_frameworks_base/tree/master/data/fonts. Click "DroidNaskh-Regular.ttf", then "view raw" to download the font.

    (It seems the counterpart font "Droid Kufi" still has this bug.)