问题
One of my letters does not render properly in android 4.1 :
The same renders fine on 4.2 and 4.3 :
I would like to fix this if possible, any ideas how?
回答1:
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.)
回答2:
Answer by the user3152053 was helpful. The Droid Arabic Naskh had some coding problem as he told.
But unfortunately link provided by him didn't contain the suggested file. Here is the new Github link which contains the corrected file "DroidNaskh_Arabic.ttf".
My "ہ U+06C1 HEH GOAL" problem was solved by downloading the file from the link below:
https://github.com/vokal/android_frameworks_base/tree/master/data/fonts
来源:https://stackoverflow.com/questions/20826690/urdu-font-rendering-issue-in-android-4-1