-
Notifications
You must be signed in to change notification settings - Fork 6
/
preflight
executable file
·29 lines (22 loc) · 1.53 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
29
#!/bin/sh
echo "-----Normalizing Regular UFO..."
echo "-----Updating production names in Regular..."
psfsetpsnames -p checkfix=fix -i source/glyph_data.csv source/masters/Gentium-Regular.ufo -x
echo "-----Updating glyph orders in Regular..."
psfsetglyphorder -q --header sort_final_cdg -i source/glyph_data.csv source/masters/Gentium-Regular.ufo -p backup=False -x
echo "-----Normalizing other UFOs..."
psfnormalize -p checkfix=fix source/masters/Gentium-ExtraBold.ufo &
psfnormalize -p checkfix=fix source/masters/Gentium-Italic.ufo &
psfnormalize -p checkfix=fix source/masters/Gentium-ExtraBoldItalic.ufo &
wait
echo "-----Rebuilding composites..."
psfbuildcomp -i source/composites.txt -c -n source/masters/Gentium-Regular.ufo -p backup=False
psfbuildcomp -i source/composites.txt -c -n source/masters/Gentium-ExtraBold.ufo -p backup=False
psfbuildcomp -i source/composites.txt -c -n source/masters/Gentium-Italic.ufo -p backup=False
psfbuildcomp -i source/composites.txt -c -n source/masters/Gentium-ExtraBoldItalic.ufo -p backup=False
echo "-----Syncing glyph orders, psnames, and other metadata to other UFOs..."
psfsyncmasters -q source/GentiumRoman.designspace source/GentiumItalic.designspace
# echo "-----Updating woff metadata file..."
# psfmakewoffmetadata -q -n "gentium" -i "org.sil.fonts" -o source/gentium-WOFF-metadata.xml source/masters/Gentium-Regular.ufo
# psfmakewoffmetadata -q -n "gentiumbook" -i "org.sil.fonts" -o source/gentiumbook-WOFF-metadata.xml source/masters/Gentium-Regular.ufo
echo "-----Preflight completed!"