-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreflight
executable file
·21 lines (16 loc) · 1.22 KB
/
preflight
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
echo "-----Normalizing and updating production names"
psfsetpsnames -p checkfix=fix -i source/glyph_data.csv source/SymCharSource-Regular.ufo
echo "-----Updating glyph orders in Regular..."
psfsetglyphorder --header sort_design -i source/glyph_data.csv source/SymCharSource-Regular.ufo
echo "-----Creating subset UFOs..."
psfsubset -i source/glyph_data.csv --header glyph_name --filter in_g source/SymCharSource-Regular.ufo source/SymChar-Regular.ufo
psfsubset -i source/glyph_data.csv --header glyph_name --filter in_k source/SymCharSource-Regular.ufo source/SymCharK-Regular.ufo
echo "-----Updating family name metadata in subset fonts..."
perl -i -pe 's/SymCharSource/SymChar/g' source/SymChar-Regular.ufo/fontinfo.plist
perl -i -pe 's/SymCharSource/SymChar/g' source/SymChar-Regular.ufo/lib.plist
perl -i -pe 's/SymCharSource/SymCharK/g' source/SymCharK-Regular.ufo/fontinfo.plist
perl -i -pe 's/SymCharSource/SymCharK/g' source/SymCharK-Regular.ufo/lib.plist
echo "-----Updating WOFF metadata..."
psfmakewoffmetadata -n symchar -i "org.sil.fonts" -o source/SymChar-WOFF-metadata.xml source/SymChar-Regular.ufo
psfmakewoffmetadata -n symchark -i "org.sil.fonts" -o source/SymCharK-WOFF-metadata.xml source/SymCharK-Regular.ufo