0
0
Fork 0
mirror of https://github.com/github/hubot-sans.git synced 2024-12-28 23:04:28 -05:00
github-hubot-sans/sources/build.sh

32 lines
695 B
Bash
Raw Normal View History

2024-03-25 12:04:33 -04:00
#!/bin/sh
set -e
echo "Generating Variable Fonts"
fontmake -g *.glyphs -o variable --round-instances --output-dir fonts
echo "Variable Fonts Succeedeed"
echo "========================"
echo "Generating Static Fonts"
fontmake -g *.glyphs -o ttf --round-instances --keep-direction -i --output-dir fonts
fontmake -g *.glyphs -o otf --round-instances --keep-direction -i --output-dir fonts
echo "Static Fonts Succeedeed"
echo "======================="
echo "Removing UFOs"
rm -rf master_ufo instance_ufo
echo "UFOs Removed"
echo "Generating Webfont"
fonts=$(ls ./fonts/*.ttf)
for f in $fonts
do
sfnt2woff-zopfli "$f"
woff2_compress "$f"
echo "Finished"
done
echo "All task has completed"