Thanks Dave and bghryct 🙏
This has been definitely helpful.
For anyone having the same issue, here's the solution summary:
- Run gftools fix-hinting font-name.ttf
This will generate a file: font-name.ttf.fix
- Discard the font-name.ttf file and rename font-name.ttf.fix to font-name.ttf
To automate this for multiple files, here's a modified version of bghryct's script that worked for me:
echo "Fixing Hinting"
for font in *.ttf
do
gftools fix-hinting $font;
if [ -f "$font.fix" ]; then mv "$font.fix" $font; fi
done
Be sure to be inside the same folder as the *.ttf files to avoid chmod issues.