0
0
Fork 0
mirror of https://github.com/github/hubot-sans.git synced 2024-12-27 22:50:33 -05:00
github-hubot-sans/sources/build.sh
2024-03-25 17:04:33 +01:00

31 lines
695 B
Bash
Executable file

#!/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"