Excessive line spacing when using ttf fonts on Android

May 10, 2015
23
14
0
Hi, when I use certain ttf files as the system font in Android, I get excessive spacing above and below the text, which makes lines of text widely spaced apart. In addition, text does not align correctly because of the extra space.

Using FontForge, I have adjusted the metrics of the font, such as Em Size, Ascent/Descent, Grid Fitting and Lookups. I have also tried taking a ttf file that displays correctly and copying its properties to my font file and copying all the glyphs of my desired font into it. None of the above solved the issue.

I have attached 2 ttf files of the same font. One displays correctly and the other doesn't. It seems like Android is natively adding space to the top and bottom of certain fonts.

Anyone has any idea what property of the font might be the cause?
 
Last edited: