You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using Gentium (GentiumPlus-6.101.zip), I noticed that with hinting enabled, some sizes of text appear at different heights between regular and italic styles (and likely bold as well), on Windows 7 (didn't test 10) and Linux slight hinting mode (though this may be unfixable without telling freetype to use bytecode hinting for this particular font):
Because you run ttfautohint on each font file individually, ttfautohint makes the font size rounding decisions separately for each style. At some font sizes, the italic text's x-height is a full pixel shorter than regular, which looks jarring.
The solution is to pass --reference (regular.ttf) to ttfautohint. (Note that this fails on Windows due to a CRLF conversion error, though this should not affect your VM-based build system.) You could use the same reference for Gentium and Gentium Book (so both fonts have identical rounding), or each font name's regular font for all font styles of that name.
I've locally hinted all 8 fonts using GentiumPlus-Regular.ttf as a reference, and the results look decent:
Bold and bold-italic seem to have manageable counters, and I haven't seen the holes in e or g collapse entirely, even at small font sizes. So setting a reference doesn't seem to have any negative consequences (in my limited testing).
On Linux, I don't know if FreeType's default-enabled render-time autohinting (which ignores bytecode) will follow the reference metrics you pass into the bytecode autohinter. I suspect not, but haven't tested yet.
The text was updated successfully, but these errors were encountered:
While using Gentium (GentiumPlus-6.101.zip), I noticed that with hinting enabled, some sizes of text appear at different heights between regular and italic styles (and likely bold as well), on Windows 7 (didn't test 10) and Linux slight hinting mode (though this may be unfixable without telling freetype to use bytecode hinting for this particular font):
test.zip
Because you run ttfautohint on each font file individually, ttfautohint makes the font size rounding decisions separately for each style. At some font sizes, the italic text's x-height is a full pixel shorter than regular, which looks jarring.
The solution is to pass
--reference (regular.ttf)
to ttfautohint. (Note that this fails on Windows due to a CRLF conversion error, though this should not affect your VM-based build system.) You could use the same reference for Gentium and Gentium Book (so both fonts have identical rounding), or each font name's regular font for all font styles of that name.I've locally hinted all 8 fonts using
GentiumPlus-Regular.ttf
as a reference, and the results look decent:Bold and bold-italic seem to have manageable counters, and I haven't seen the holes in
e
org
collapse entirely, even at small font sizes. So setting a reference doesn't seem to have any negative consequences (in my limited testing).On Linux, I don't know if FreeType's default-enabled render-time autohinting (which ignores bytecode) will follow the reference metrics you pass into the bytecode autohinter. I suspect not, but haven't tested yet.
The text was updated successfully, but these errors were encountered: