Custom Font Not Showing Properly Some Characters
I live in Hungary, and we got some special characters like: ő, ű... etc In my android app i made a custom TextView. This custom TextView sets a custom typeface in its constructor
Solution 1:
that seems simple, the font you are using does not support some characters. Characters like ö
, œ
, or â
are more than just a basic letter with an accent, they are designed (in the font) as a new and different caracter. That's why you have to choose a font that supports your language's special characters. Otherwise, the default system font will probably be used.
Solution 2:
The problem is with your device where you are trying to set it. Just try to find other .ttf with the same font. And do not set typeface this way! Typeface.createFromAsset()
is too expensive. Use caching for this. link which saves your performance
Post a Comment for "Custom Font Not Showing Properly Some Characters"