I am having problems using custom font (Typeface) in Android.
What happens is that when rendering text in a TextView, the last line is often partially cut off vertically (lower parts of letters, for example, g, j, y, etc.), even if there is free space under the text. I assume that this is because something is wrong with the custom font file (OTF file) that I am using. This only happens when using this custom font. If I use standard Android fonts without installing my own font, everything works fine.
Question: What are the requirements for font files for Android so that they work correctly. (Please do not post workarounds for the problem, I know about that.)
source
share