FiraCode/script/build_ttf

24 wiersze
683 B
Plaintext
Czysty Zwykły widok Historia

2020-06-07 23:53:13 +00:00
#!/bin/bash -euo pipefail
2020-06-17 20:06:57 +00:00
[ -d venv ] && source venv/bin/activate
args=( "$@" )
2020-04-05 21:25:07 +00: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-26 12:10:54 +00:00
ttfautohint --detailed-info ${file} ${file}.hinted --stem-width-mode nnn --composites
#--windows-compatibility
2020-06-07 23:53:13 +00:00
mv ${file}.hinted ${file}
done