1
1
mirror of https://github.com/tonsky/FiraCode.git synced 2024-09-11 04:55:28 +03:00
FiraCode/script/build_woff

15 lines
319 B
Plaintext
Raw Normal View History

2020-04-09 19:56:19 +03:00
#!/bin/bash -e
# requires sfnt2woff-zopfli (get from 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