Reputation: 591
I am using dubai.ttf
font for my app
The font is of for web but in the app there is space between the letters.
I have tried Arab reshaper
and
showing like this image below
needed like this image below
and this is my code
AssetManager am = getActivity().getApplicationContext().getAssets();
typeface = Typeface.createFromAsset(am, String.format(Locale.US, "fonts/%s", "dubai_font.ttf"));
mBtnShuffle.setTypeface(typeface);
mBtnShuffle.setText("اﻟﺗﺻﻧﯾفا اﻟﻘطﺎﻋﻲ");
Upvotes: 0
Views: 1124
Reputation: 591
this is not the correct solution but this is how i fixed my problem.
while using Arab language use arial
font so far only this font had provided me with the correct arab words remaining fonts have space in between letters
Upvotes: 1
Reputation: 139
Hey Checkout this link, Depending on how much spacing you need
or Use mBtnShuffle.setLetterSpacing(10);
Upvotes: 0