add woff format conversion to build script

pull/740/head
Stephen Nixon 2019-04-05 09:31:11 -04:00
rodzic c8955c4a16
commit d27737bbf4
1 zmienionych plików z 18 dodań i 0 usunięć

Wyświetl plik

@ -42,4 +42,22 @@ mkdir -p distr/woff2
woff2s=$(ls distr/*/*.woff2)
for woff2 in $woff2s; do
mv $woff2 distr/woff2/$(basename $woff2)
done
# ============================================================================
# Build woff fonts ===========================================================
# requires sfnt2woff-zopfli (https://github.com/bramstein/homebrew-webfonttools)
rm -rf distr/woff
ttfs=$(ls distr/*/*.ttf)
for ttf in $ttfs; do
sfnt2woff-zopfli $ttf
done
mkdir -p distr/woff
woffs=$(ls distr/*/*.woff)
for woff in $woffs; do
mv $woff distr/woff/$(basename $woff)
done