1
0
Fork 0
mirror of synced 2024-05-19 12:03:42 +12:00

add woff format conversion to build script

This commit is contained in:
Stephen Nixon 2019-04-05 09:31:11 -04:00
parent c8955c4a16
commit d27737bbf4

View file

@ -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