View Single Post
Old 06-10-2022, 12:49 PM   #136
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
Posts: 495
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
Quote:
Originally Posted by JSWolf View Post
But that's not what I want. I don't want a larger space between lines. I want a way to fix the bug.
Rather than using the slider to adjust line height to work around the bug, you might be able to alter the font metrics using this methodology to ensure that all Ascender/Ascent values be set to be equal, Descender/Descent value be set to be equal, and LineGap be set to zero. It fixed the problem I had with Kurinto Text, so I decided to do the same with all my fonts and I haven't noticed the problem since.

It's easy to do in FontForge:
  1. Go to the Font Information window, go to the General section, take the Ascent value and then go to the Metrics tab of the OS/2 section and input it into the Win Ascent, Typo Ascent, and HHead Ascent fields.
  2. Do the same with the General section's Decent value with the Metrics tab's Win, Typo, and HHead Descent fields.
  3. Finally, set the Metrics tab's Typo Line Gap and HHead Line Gap fields to 0.

Or if you have Python, you can install gftools and do the same with this command:

Code:
gftools fix-vertical-metrics -a ASCENT -d -DESCENT -l 0 FontName-Regular.ttf
Substituting the appropriate values for ASCENT, DESCENT, and Font Name.

For font families, use the Ascent and Descent values from the Regular font face with the bold, italic, and bolditalic versions to make sure everything stays consistent.
rtiangha is offline   Reply With Quote