OTF exported from sources/Cairo.glyphs
with Glyphs 2.3 with Remove Overlap and Autohinting enabled.
TTF exported from sources/Cairo.glyphs
with Glyphs 2.3 with Remove Overlap but without autohinting, then hinted with ttfautohint using this command:
ttfautohint \
--composites \
--default-script=latn \
--fallback-script=arab \
--detailed-info \
--verbose \
--strong-stem-width=gGD \
--windows-compatibility \
--increase-x-height=0 \
fonts/ttf/Cairo-Regular.ttf \
fonts/ttf/Cairo-Regular-TA.ttf;
# and then move the hinted file in place, if needed:
# mv fonts/ttf/Cairo-Regular-TA.ttf fonts/ttf/Cairo-Regular.ttf;
Note that the increase-x-height
feature is de-activated to make hand-hinting in the future easier to do without creating visible changes.
To apply to all files:
for font in fonts/ttf/*ttf; do \
ttfautohint -c -I -W -x 0 -D latn -f arab -w G \
$font \
fonts/ttf/$(basename $font .ttf)-TA.ttf;
done;
# and then move the hinted file in place, if needed:
# rename -f s/-TA.ttf/.ttf/g fonts/ttf/*