-
Notifications
You must be signed in to change notification settings - Fork 7
/
preflightg
executable file
·33 lines (25 loc) · 1.63 KB
/
preflightg
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
#!/bin/sh
echo "-----Updating UFOs from Glyphs file..."
psfglyphs2ufo --preservefea source/masters/CharisRoman.glyphs source/masters &
psfglyphs2ufo --preservefea source/masters/CharisItalic.glyphs source/masters &
wait
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!"