14
0
mirror of https://github.com/belluzj/fantasque-sans.git synced 2024-11-14 21:21:33 +01:00
fantasque-sans/Scripts/generate-other-formats
Cipher b72e5a847d
Update generate-other-formats
Added the desktop path
2019-06-12 21:56:23 +05:30

15 lines
497 B
Bash
Executable File

#!/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"
sfnt2woff "OTF/${basename}.otf"
mv "OTF/${basename}.woff" Webfonts
$HOME/Desktop/woff2/woff2_compress "TTF/${basename}.ttf"
mv "TTF/${basename}.woff2" Webfonts
$HOME/Desktop/ttf2eot/ttf2eot "TTF/${basename}.ttf" > "Webfonts/${basename}.eot"