/
githubmirror
/
FiraCode
Обзор
Документация
Войти
/
githubmirror
/
FiraCode
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
5.2
script/build_ttf
23 строки
655 B
Nikita Prokopov
Fixed hinting problems caused by build_ttf (closes #1075)
12 июн 2020, 16:18
12 июн 2020, 16:18
8da49d5
Код
Авторство
О чём код?
#!/bin/bash -euo pipefail source venv/bin/activate 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 -I ${file} ${file}.hinted --stem-width-mode nnn --composites #--windows-compatibility mv ${file}.hinted ${file} done