1
1
mirror of https://github.com/tonsky/FiraCode.git synced 2024-08-16 16:30:25 +03:00
FiraCode/script/build_woff
2020-06-17 22:13:23 +02:00

18 lines
397 B
Bash
Executable File

#!/bin/bash -euo pipefail
# requires sfnt2woff-zopfli (get from https://github.com/bramstein/homebrew-webfonttools)
cd "`dirname $0`/.."
[ -d venv ] && source venv/bin/activate
rm -rf distr/*/*.woff
ttfs=$(ls distr/*/*.ttf)
for ttf in $ttfs; do
echo "sfnt2woff-zopfli $ttf"
sfnt2woff-zopfli $ttf
done
mkdir -p distr/woff
mv distr/*/*.woff distr/woff
rm distr/woff/FiraCode-Retina.woff