1
1
mirror of https://github.com/tonsky/FiraCode.git synced 2024-10-05 17:17:34 +03:00
FiraCode/script/build_woff

17 lines
381 B
Plaintext
Raw Normal View History

2020-06-08 17:10:00 +03:00
#!/bin/bash -euo pipefail
2020-04-09 19:56:19 +03:00
# requires sfnt2woff-zopfli (get from https://github.com/bramstein/homebrew-webfonttools)
2020-06-08 17:10:00 +03:00
cd "`dirname $0`/.."
source venv/bin/activate
rm -rf distr/*/*.woff
2020-04-09 19:56:19 +03:00
ttfs=$(ls distr/*/*.ttf)
for ttf in $ttfs; do
2020-06-08 17:10:00 +03:00
echo "sfnt2woff-zopfli $ttf"
2020-04-09 19:56:19 +03:00
sfnt2woff-zopfli $ttf
done
mkdir -p distr/woff
2020-06-08 17:10:00 +03:00
mv distr/*/*.woff distr/woff
rm distr/woff/FiraCode-Retina.woff