1
0
Fork 0
mirror of synced 2024-05-17 11:03:33 +12:00
FiraCode/script/build_woff
Nikita Prokopov 63c6434ab7 Fira Code v5
2020-06-08 16:10:00 +02:00

17 lines
381 B
Bash
Executable file

#!/bin/bash -euo pipefail
# requires sfnt2woff-zopfli (get from https://github.com/bramstein/homebrew-webfonttools)
cd "`dirname $0`/.."
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