-
Notifications
You must be signed in to change notification settings - Fork 5
/
preflight
executable file
·28 lines (21 loc) · 1.36 KB
/
preflight
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
#!/bin/sh
echo "-----Normalizing Regular UFO..."
echo "-----Updating production names in Regular..."
psfsetpsnames -p checkfix=fix -i source/glyph_data.csv source/masters/Andika-Regular.ufo -x
echo "-----Updating glyph orders in Regular..."
psfsetglyphorder -q --header sort_final_a -i source/glyph_data.csv source/masters/Andika-Regular.ufo -p backup=False -x
echo "-----Normalizing other UFOs..."
psfnormalize -p checkfix=fix source/masters/Andika-Bold.ufo &
psfnormalize -p checkfix=fix source/masters/Andika-Italic.ufo &
psfnormalize -p checkfix=fix source/masters/Andika-BoldItalic.ufo &
wait
echo "-----Rebuilding composites..."
psfbuildcomp -i source/composites.txt -c -n source/masters/Andika-Regular.ufo -p backup=False
psfbuildcomp -i source/composites.txt -c -n source/masters/Andika-Bold.ufo -p backup=False
psfbuildcomp -i source/composites.txt -c -n source/masters/Andika-Italic.ufo -p backup=False
psfbuildcomp -i source/composites.txt -c -n source/masters/Andika-BoldItalic.ufo -p backup=False
echo "-----Syncing glyph orders, psnames, and other metadata to other UFOs..."
psfsyncmasters -q source/AndikaRoman.designspace source/AndikaItalic.designspace
# echo "-----Updating woff metadata file..."
# psfmakewoffmetadata -q -n "andika" -i "org.sil.fonts" -o source/andika-WOFF-metadata.xml source/masters/Andika-Regular.ufo
echo "-----Preflight completed!"