14
0
mirror of https://github.com/belluzj/fantasque-sans.git synced 2024-11-05 08:51:32 +01:00
fantasque-sans/Scripts/generate-other-formats

15 lines
455 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
SCRIPTS=$(cd "$(dirname $0)" && pwd)
name=$1
basename=$(basename "$name" .sfdir)
# TODO determine perfect parameters
ttfautohint "TTF/${basename}.ttf" "TTF/${basename}.hinted.ttf"
mv "TTF/${basename}.hinted.ttf" "TTF/${basename}.ttf"
2019-11-16 16:49:32 +01:00
sfnt2woff "TTF/${basename}.ttf"
mv "TTF/${basename}.woff" Webfonts
woff2_compress "TTF/${basename}.ttf"
mv "TTF/${basename}.woff2" Webfonts
ttf2eot "TTF/${basename}.ttf" > "Webfonts/${basename}.eot"