-
Notifications
You must be signed in to change notification settings - Fork 7
/
preflight
executable file
·28 lines (21 loc) · 1.42 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/Charis-Regular.ufo -x
echo "-----Updating glyph orders in Regular..."
psfsetglyphorder -q --header sort_final_cdg -i source/glyph_data.csv source/masters/Charis-Regular.ufo -p backup=False -x
echo "-----Normalizing other UFOs..."
psfnormalize -p checkfix=fix source/masters/Charis-Bold.ufo &
psfnormalize -p checkfix=fix source/masters/Charis-Italic.ufo &
psfnormalize -p checkfix=fix source/masters/Charis-BoldItalic.ufo &
wait
echo "-----Rebuilding composites..."
psfbuildcomp -i source/composites.txt -c -n source/masters/Charis-Regular.ufo -p backup=False -p loglevel=v
psfbuildcomp -i source/composites.txt -c -n source/masters/Charis-Bold.ufo -p backup=False -p loglevel=v
psfbuildcomp -i source/composites.txt -c -n source/masters/Charis-Italic.ufo -p backup=False -p loglevel=v
psfbuildcomp -i source/composites.txt -c -n source/masters/Charis-BoldItalic.ufo -p backup=False -p loglevel=v
echo "-----Syncing glyph orders, psnames, and other metadata to other UFOs..."
psfsyncmasters -q source/CharisRoman.designspace source/CharisItalic.designspace
# echo "-----Updating woff metadata file..."
# psfmakewoffmetadata -q -n "charis" -i "org.sil.fonts" -o source/charis-WOFF-metadata.xml source/masters/Charis-Regular.ufo
echo "-----Preflight completed!"