Problem with custom fonts in TextView and WebView

There is a problem with English text in TextView and WebView when using Arabic or Persian font. The following image is an example of Persian and English text in both the TextView (2 views in the header) and the WebView (bottom) when using the default font: Shot 1

But when applying a custom font it looks like this (Iranian dignitary Serif is used here, but almost all Persian fonts have the same problem): Shot 2

As you can see, in the Persian TextView, the English texts are not aligned correctly, and the WebView has additional padding between some lines due to the difference between the Persian text size and the English text size.

Make sure there are no problems with the fonts, because they work like a charm on websites!

+3
android textview webview android-typeface


source to share


No one has answered this question yet

Check out similar questions:

1844
How to place text horizontally and vertically in a TextView?
800
Autoscale TextView text to insert within borders
683
How do I place a border around an Android text view?
565
Making a scrolling TextView on Android
3
Using a bitmap font to display and edit texts
3
Match Android WebView text size to TextView text size
3
Android - Html.fromHtml () with custom fonts
2
Persian font not being applied in android WebView
2
Android - align alignment and custom font for Arabic and Persian texts
1
Multiple fonts for one text view depending on langugage



All Articles
Loading...
X
Show
Funny
Dev
Pics