My application shows letters and words on arabic language. But this letters looks wrong. For example symbols بَ and شَ :
Correct (from iOS):
Wrong (from Android):
As you can see, little line on the top of letters must be centered. But it not. How to show arabic symbols on Android like on iOS?
UPDATE: I am trying to use Better-Arabic-Shapper, but it also displaying incorrectly:
Better-Arabic-Shapper
I am tryuing to set custom fonts (Arial, Simpo, nassim_latn_rg) with code below but it also doesn't works correctly:
private const val FONT_PATH = "fonts/"
val font = "nassim_latn_rg.otf"
val typeface = Typeface.createFromAsset(context.assets, FONT_PATH + font)
textView.typeface = typeface
from How to correctly show Arabic letters in Android?
No comments:
Post a Comment