forked from Gue3bara/Cairo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
35 lines (22 loc) · 863 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Fail fast
set -e
# Build Normal Font
echo "Make Normal version of Cairo.glyphs"
python3 scripts/makenormal.py sources/Cairo.glyphs sources/CairoNormal.glyphs
echo "Build Normal Font"
gftools builder sources/cairo.yaml
echo "Rename"
mv "fonts/Cairo/variable/CairoNormal[slnt,wght].ttf" "fonts/Cairo/variable/Cairo[slnt,wght].ttf"
echo "Purge fvar instances"
python3 scripts/purgeinstances.py "fonts/Cairo/variable/Cairo[slnt,wght].ttf"
echo "Delete files"
rm sources/CairoNormal.glyphs
# Build Play Font
echo "Make Play version of plain Cairo.glyphs"
python3 scripts/makeplay.py sources/Cairo.glyphs sources/CairoPlay.glyphs
echo "Build Play Font"
gftools builder sources/cairoplay.yaml
echo "Purge fvar instances"
python3 scripts/purgeinstances.py "fonts/CairoPlay/variable/CairoPlay[slnt,wght].ttf"
echo "Delete files"
rm sources/CairoPlay.glyphs