/
githubmirror
/
FiraCode
Обзор
Документация
Войти
/
githubmirror
/
FiraCode
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
4
script/build_variable
26 строк
771 B
Nikita Prokopov
Fira Code v3
09 апр 2020, 19:59
09 апр 2020, 19:59
947ced5
Код
Авторство
О чём код?
#!/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)