1
0
Fork 0
mirror of synced 2024-05-19 20:13:25 +12:00
FiraCode/googlefonts-qa/build.sh
2019-03-25 18:06:24 -04:00

25 lines
719 B
Bash
Executable file

#!/bin/bash
source venv/bin/activate
# variable font
fontmake -g FiraCode.glyphs -o variable --output-dir distr/variable_ttf
# static TTFs
fontmake -g FiraCode.glyphs -o ttf --output-dir distr/ttf
# ============================================================================
# Autohinting ================================================================
statics=$(ls distr/ttf/*.ttf)
for file in $statics; do
echo "fix DSIG in " ${file}
gftools fix-dsig --autofix ${file}
echo "TTFautohint " ${file}
# autohint with detailed info
hintedFile=${file/".ttf"/"-hinted.ttf"}
ttfautohint -I ${file} ${hintedFile} --stem-width-mode nnn
cp ${hintedFile} ${file}
rm -rf ${hintedFile}
done