Urdu font rendering issue in android 4.1 - android

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?

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.)

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

Related

Problem with android studio display language

I encountered this weird problem where after installing android studio latest version from official website this strange display language appeared.
please help me
enter image description here
Looks like its encoded, every character is replaced by the character 2 places after it..
so NEXT is replaced by PGZV on the screen
You sure you downloaded the correct Android Studio ?
I solved the problem
it appears that for some reason android studio was using an unsupported font, when I changes the font to Arial everything is ok and the language is correct.
thanks for trying to help me everybody.
cheers
enter image description here

PDF rendering issue with Khmer language

I have created a pdf with help of droidText (iText) library .
But in khmer language the text shows up broken when using the KhmerOS.ttf font.
I have temporarily solved that problem with another font Honuman.ttf but other problem is it(Honuman.ttf) cannot render all the text as per khmer.
I have used over 57 fonts trying to solve this problem but found no solution.
If knows another library or font which supports Khmer language please share the same,Thankyou.
It's not the issue of font family, it's the rendering issue and the android version you were/are using.
I think your issue should be solved with recent Android version from 4.4.4 that the render of Khmer Unicode is fine.
And I think you do not need to focus on previous version.

Cannot See Urdu Font Correctly on Android

I am developing an app that includes Urdu text. I downloaded the "Jameel Noori Nastaleeq" font from http://jameel-noori-nastaleeq-urdu-fonts.software.informer.com/1.0/. On some mobiles, it shows up just fine but on most of the mobiles it looks jumbled up. I have tried different fonts from different sites but the problem persists. I haven't been able to figure out whether it is Android Version, mobile device or some other parameter that has the issue. Need help in this regard. I am attaching both correctly displayed and jumbled up snapshots. Thanks
I would suggest to try the following fonts as well.
Alvi Nastaleeq
Pak Nastaleeq
Fajer Noori Nastaleeq
Urdu naskh asiatype
You can download from here http://www.urdujahan.com/font.html
If you still face the similar issue the try using Faiz Lahori Nastaliq (http://www.axissoftmedia.com ) font which apparently has full Unicode support .

Android Custom font shows up blank on some phones

I'm using a custom font for a Japanese quiz app on Android. I tried it on a friend's phone at a cookout, and the font did not show up (it shows up on mine and others). The font is delivered with the apk. I don't have access to the logcat, and unfortunately forgot to check the phone model, although I think it's kind of a budget version. Has anyone had this problem this, or have any ideas what might cause it?
well, if you use delivered font with APK and got unexpected results, its generally rendering issue with Android system .. with other words, Android System cannot render all characters correctly. you need to know that earlier versions of Android don't support all Unicodes as well as later but off cause with more supported characters . if you want to test that on emulator, try to test your app with version 1.6.
I got similar issue with Arabic characters ..
I can help you with those guides:
1- try to check the characters you are using, and be away from rare characters.
2- try a different common font if its available.
3- If you built your own font, try to rebuild it again and use supported ID of glyphes. as I told you Android doesn't support all Unicode characters (supports based on ID). and its different from version to another.
4- check and detect unsupported characters ( you can do that by measuring length of character and compare it with pre-measured length of that character) then insert it as image with suitable dimension.
5-you can use webview instead of TextView/EditText ..
I hope that will help you ..
good luck,

Arabic Writing in Android

myXmlContent.setText("بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ");
I am writing the above code and trying to display the text in Arabic.
but every character is being displayed separately in Android emulator.
Please help.
Complex scripts are currently not fully support by the UI toolkit. We are working on improving this.
Don't Worry we faced this on our applications but it works like a charm on the real devices (Samsung htc)
I do advice work and debug directly on real device this is faster and reflects your work In final look.
you may look at:
https://stackoverflow.com/a/3769283/771300
Have look the below link.
Android Arabic Language
You need to use Arabic Reshaper utility
Below are the some links https://github.com/agawish/Better-Arabic-Reshaper
https://mdictionary.wordpress.com/2011/02/10/connected-arabic-characters-for-android-apps/

Categories

Resources