-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·41 lines (29 loc) · 962 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
#!/bin/sh
# -------------------------------------------------------------------
# Update the following as needed ------------------------------------
set -e
echo "Generating VFs"
# mkdir -p ./fonts/variable
echo "Generating VFs"
fontmake -g source/jost.glyphs -o variable --round-instances -a --output-path source/vf/jost\[slnt,wght\].ttf
#echo "Removing Build UFOS"
#rm -rf master_ufo/ instance_ufo/
#echo "Build UFOS Removed"
# We'll cover the below once we've done our first build.
echo "vf cleaning"
vfs=$(ls ./source/vf/*.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=./source/vf/$rtrip.ttx;
rm $vf;
ttx $new_file
rm ./source/vf/*.ttx
done
rm ./source/vf/*backup*.ttf
echo "end vf cleaning"
fontbakery check-googlefonts ./source/vf/*.ttf --dark-theme --ghmarkdown jost_problems.md