/
githubmirror
/
FiraCode
Обзор
Документация
Войти
/
githubmirror
/
FiraCode
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
3
script/build_ttf
24 строки
686 B
Nikita Prokopov
Added SemiBold weight (closes #987)
06 апр 2020, 00:25
06 апр 2020, 00:25
2a88d87
Код
Авторство
О чём код?
#!/bin/bash -e 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} hintedFile=${file/".ttf"/"-hinted.ttf"} ttfautohint -I ${file} ${hintedFile} --stem-width-mode nnn --composites # --windows-compatibility mv ${hintedFile} ${file} done