/
githubmirror
/
FiraCode
Обзор
Документация
Войти
/
githubmirror
/
FiraCode
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
6.2
script/build_ttf.sh
25 строк
717 B
Nikita Prokopov
Fixed hinting settings to match Glyphs export #1315
03 дек 2021, 19:47
03 дек 2021, 19:47
bd4e557
Код
Авторство
О чём код?
#!/bin/bash set -o errexit -o nounset -o pipefail cd "`dirname $0`/.." [ -d venv ] && source venv/bin/activate mkdir -p distr/ttf rm -rf distr/ttf/* args=( "$@" ) 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} ttfautohint --no-info --ignore-restrictions ${file} ${file}.hinted mv ${file}.hinted ${file} done