1
0
Fork 0
mirror of synced 2024-06-26 10:10:35 +12:00
FiraCode/script/build_ttf

24 lines
683 B
Plaintext
Raw Normal View History

2020-06-08 11:53:13 +12:00
#!/bin/bash -euo pipefail
2020-06-18 08:06:57 +12:00
[ -d venv ] && source venv/bin/activate
args=( "$@" )
2020-04-06 09:25:07 +12:00
default_weights=( "Light" "Regular" "Retina" "Medium" "SemiBold" "Bold" )
weights=( "${args[@]:-"${default_weights[@]}"}" )
for weight in "${weights[@]}"; do
file=distr/ttf/FiraCode-${weight}.ttf
echo "Making " ${file}
rm -rf ${file}
fontmake -g FiraCode.glyphs -o ttf --output-dir distr/ttf -i "Fira Code ${weight}"
echo "Fixing DSIG in " ${file}
gftools fix-dsig --autofix ${file}
echo "TTFautohint " ${file}
2020-10-27 01:10:54 +13:00
ttfautohint --detailed-info ${file} ${file}.hinted --stem-width-mode nnn --composites
#--windows-compatibility
2020-06-08 11:53:13 +12:00
mv ${file}.hinted ${file}
done