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


source to share





All Articles