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,
Related
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 .
I am using this Amazing Arabic Reshaper for my app on Android, Every thing works fine, but there is a little problem with it that it always shows last Harka (Harki) before the first character of the line in Android, I have also tried gravity right etc
It works fine for Android version greater 2.3.3, as this is a right to left language I dont understand why its not working fine on Android versions less then 2.3.3 you can see the image below for better understanding.
I also tried that I moved the last Harka to the first character of the line, it works fine for first line only BUT on the after that same issue comes. Kindly help me regarding this issue.
It seems that the reason of this is the Bidi rules; when you mix letters and symbols the last symbol does not follow the sentence direction unless it is between two letters. That's why you are getting it only with the last Haraka.
For Android versions that support bidi natively, you should not use the Arabic reshaper library. Only use it for Android versions that does not connect Arabic letters properly. You can add an option in your application where the user decides weather or not Arabic letters are displayed properly.
Alternatively, you can have in your application an exhaustive list of Android version and weather or not it supports Bidi natively, so you automatically decide when to use the Arabic reshaper.
I'm working to localize my app for a number of language. Spanish is working great but Hebrew isn't showing up.
What confuses me is if I put the contents of my Hebrew strings folder in the Spanish folder(values-es) it works great. Spanish in my Hebrew folder(values-he) does not work though...
Any thoughts would be greatly appreciated.
Hebrew is locale like 'iw', and also 'he'.
As the #klausw mentioned in his answer:
you better store duplicate copies in both values-iw/ and values-he/
just to make sure it works in all devices.
rogcg is right for most Android devices, but apparently the Samsung Galaxy S2 incompatibly uses locale "he" for Hebrew and ignores values-iw/. If you want to be compatible with those devices too, you need to store duplicate copies in both values-iw/ and values-he/. See also https://stackoverflow.com/a/8573059/405214.
Bear in mind that as of Summer 2021 bundle (.aab) file is required instead of the .apk file. This change brings optimization to many things but some language related problems as well: if your device does not support a specific language, it will not be downloaded from the Play Store.
Check the solution here.
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/
My question is simple. Are all Unicode characters available in Android?
I actually am using the soft keyboard and I want to add a few arabic letters which I can't find the codes for.
Android supports UTF-8 but you will not be able to use arabic, if it's not installed in your OS. There are ways to install new fonts, but some of them needs jailbreaking your phone.
See link for installing font in Android:
https://web.archive.org/web/20091023103506/http://www.android-devs.com/?p=33
It does not appear so. This open issue on the android code site lists many missing characters.
add font (.ttf) containing characters to /system/fonts, modify /system/etc/fallback_fonts.xml so android finds font then reboot. Everything should be working now