forked from davelab6/manrope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·46 lines (33 loc) · 864 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
36
37
38
39
40
41
42
43
44
45
#!/bin/sh
set -e
echo "Generating Static fonts"
mkdir -p ./gf/
mkdir -p ./gf/static/
echo "Made font directories"
echo "Generating Statics"
fontmake -g source/manrope.glyphs -o ttf --round-instances -a --keep-direction -i --output-dir ./gf/static/
echo "Made Statics"
echo "Generating VFs"
fontmake -g source/manrope.glyphs -o variable --output-path ./gf/Manrope\[wght\].ttf
echo "Made VF"
cd ./gf/
echo "adding dummy dsig"
gftools fix-dsig Manrope\[wght\].ttf --autofix
echo "dummy dsig added"
cd ..
echo "Post processing"
vfs=$(ls ./gf/*.ttf)
for vf in $vfs
do
gftools fix-dsig -f $vf;
gftools fix-nonhinting $vf "$vf.fix";
mv "$vf.fix" $vf;
ttx -f -x "MVAR" $vf; # Drop MVAR. Table has issue in DW
rtrip=$(basename -s .ttf $vf)
new_file=./gf/$rtrip.ttx;
rm $vf;
ttx $new_file
rm ./gf/*.ttx
done
rm ./gf/*backup*.ttf
echo "build complete"