-
Notifications
You must be signed in to change notification settings - Fork 6
/
preflightff
executable file
·29 lines (22 loc) · 1.61 KB
/
preflightff
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 "-----Fixing FontForge debris and normalizing UFOs..."
psffixffglifs source/masters/Gentium-Regular.ufo -p checkfix=fix &
psffixffglifs source/masters/Gentium-ExtraBold.ufo -p checkfix=fix &
psffixffglifs source/masters/Gentium-Italic.ufo -p checkfix=fix &
psffixffglifs source/masters/Gentium-ExtraBoldItalic.ufo -p checkfix=fix &
wait
echo "-----Updating production names in Regular..."
psfsetpsnames -q -p checkfix=fix -i source/glyph_data.csv source/masters/Gentium-Regular.ufo -p backup=False -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 "-----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!"