2020-06-09 02:10:00 +12:00
|
|
|
#!/bin/bash -euo pipefail
|
2020-04-10 04:56:19 +12:00
|
|
|
# requires woff2_compress (get from https://github.com/bramstein/homebrew-webfonttools)
|
|
|
|
|
2020-06-09 02:10:00 +12:00
|
|
|
cd "`dirname $0`/.."
|
|
|
|
source venv/bin/activate
|
|
|
|
|
|
|
|
rm -rf distr/*/*.woff2
|
2020-04-10 04:56:19 +12:00
|
|
|
|
|
|
|
ttfs=$(ls distr/*/*.ttf)
|
|
|
|
for ttf in $ttfs; do
|
|
|
|
woff2_compress $ttf
|
|
|
|
done
|
|
|
|
|
|
|
|
mkdir -p distr/woff2
|
2020-06-09 02:10:00 +12:00
|
|
|
mv distr/*/*.woff2 distr/woff2
|
2020-06-27 01:54:00 +12:00
|
|
|
rm distr/woff2/FiraCodeFixed-Retina.woff2
|