1
0
Fork 0
mirror of synced 2024-05-17 11:03:33 +12:00
FiraCode/script/build_variable
Nikita Prokopov 947ced5555 Fira Code v3
2020-04-09 18:59:53 +02:00

27 lines
771 B
Bash
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash -e
rm -rf distr/variable_ttf
fontmake -g FiraCode.glyphs -o variable --output-dir distr/variable_ttf
# -------------------------------------------------------------
# fix variable font metadata as needed ------------------------
firaCodeVF=distr/variable_ttf/FiraCode-VF.ttf
# fix variable font metadata very important
gftools fix-vf-meta $firaCodeVF
# other fixes for metadata and hinting
gftools fix-nonhinting $firaCodeVF $firaCodeVF
gftools fix-gasp --autofix $firaCodeVF
gftools fix-dsig --autofix $firaCodeVF
# cleanup of temp files
tempFiles=$(ls distr/variable_ttf/*.fix && ls distr/variable_ttf/*-gasp*)
for temp in $tempFiles
do
rm -rf $temp
done
# TODO (late 2019?): use TTFautohint-VF for variable font (current support is minimal)