-
Notifications
You must be signed in to change notification settings - Fork 0
/
preflight
executable file
·25 lines (19 loc) · 1.26 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
#!/bin/sh
echo "-----Normalizing and updating production names in Regular..."
psfsetpsnames -p checkfix=fix -i source/glyph_data.csv source/masters/Busra-Regular.ufo
echo "-----Updating glyph orders in Regular..."
psfsetglyphorder --header sort_design -i source/glyph_data.csv source/masters/Busra-Regular.ufo
echo "-----Normalizing other weights..."
psfnormalize -p checkfix=fix source/masters/Busra-ExtraLight.ufo
psfnormalize -p checkfix=fix source/masters/Busra-Bold.ufo
#psfnormalize -p checkfix=fix source/masters/Busra-Black.ufo
#echo "-----Rebuilding composites..."
psfbuildcomp -i source/composites.txt -c -n source/masters/Busra-ExtraLight.ufo -p backup=False
psfbuildcomp -i source/composites.txt -c -n source/masters/Busra-Regular.ufo -p backup=False
psfbuildcomp -i source/composites.txt -c -n source/masters/Busra-Bold.ufo -p backup=False
#psfbuildcomp -i source/composites.txt -c -n source/masters/Busra-Black.ufo -p backup=False
echo "-----Syncing glyph orders, psnames, and other metadata to other UFOs..."
#psfsyncmasters source/BusraUprightDesign.designspace
psfsyncmasters source/BusraUpright.designspace
#echo "-----Updating WOFF metadata..."
psfmakewoffmetadata -n busra -i "org.sil.fonts" -o source/busra-WOFF-metadata.xml source/masters/Busra-Regular.ufo