Pranav Ashok
Pranav Ashok

Reputation: 591

Arabic Font issue .Gap appearing in between letters

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

https://github.com/agawish/Better-Arabic-Reshaper

and

https://github.com/smmoosavi/android-Farsi-Tools

showing like this image below

enter image description here

needed like this image below

enter image description here

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

Answers (2)

Pranav Ashok
Pranav Ashok

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

GuruCharan
GuruCharan

Reputation: 139

Hey Checkout this link, Depending on how much spacing you need

or Use mBtnShuffle.setLetterSpacing(10);

Upvotes: 0

Related Questions