FiraCode/script/build_variable

32 wiersze
644 B
Plaintext
Czysty Zwykły widok Historia

#!/bin/bash -euo pipefail
2020-04-09 16:56:19 +00:00
cd "`dirname $0`/.."
2020-04-09 16:56:19 +00:00
2020-06-17 20:06:57 +00:00
[ -d venv ] && source venv/bin/activate
2020-06-08 14:10:00 +00:00
DIR=distr/variable_ttf
FILE=FiraCode-VF.ttf
2020-04-09 16:56:19 +00:00
rm -rf $DIR/$FILE
fontmake -g FiraCode.glyphs -o variable --output-dir $DIR
cd distr/variable_ttf
2020-04-09 16:56:19 +00:00
# fix variable font metadata – very important
gftools fix-vf-meta $FILE
mv $FILE.fix $FILE
2020-04-09 16:56:19 +00:00
# other fixes for metadata and hinting
gftools fix-nonhinting $FILE $FILE.fix
mv $FILE.fix $FILE
gftools fix-gasp --autofix $FILE
mv $FILE.fix $FILE
gftools fix-dsig --autofix $FILE
2020-04-09 16:56:19 +00:00
# cleanup of temp files
rm -rf *-gasp.ttf
2020-04-09 16:56:19 +00:00
# TODO (late 2019?): use TTFautohint-VF for variable font (current support is minimal)