-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpreflightff
executable file
·27 lines (21 loc) · 1.31 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
#!/bin/sh
echo "-----Fixing FontForge debris and normalizing UFOs..."
psffixffglifs source/AndikaMtihani-Regular.ufo -p checkfix=fix &
psffixffglifs source/AndikaMtihani-Bold.ufo -p checkfix=fix &
psffixffglifs source/AndikaMtihani-Italic.ufo -p checkfix=fix &
psffixffglifs source/AndikaMtihani-BoldItalic.ufo -p checkfix=fix &
wait
# Building composites - needs to be done after normalization or may complain due to bad anchor coordinates
echo "-----Building composites..."
psfbuildcomp -q -i source/composites.txt source/AndikaMtihani-Regular.ufo &
psfbuildcomp -q -i source/composites.txt source/AndikaMtihani-Bold.ufo &
psfbuildcomp -q -i source/composites.txt source/AndikaMtihani-Italic.ufo &
psfbuildcomp -q -i source/composites.txt source/AndikaMtihani-BoldItalic.ufo &
wait
echo "-----Updating production names in Regular..."
psfsetpsnames -q -i source/glyph_data.csv source/AndikaMtihani-Regular.ufo -p backup=False -x
echo "-----Updating glyph orders in Regular..."
psfsetglyphorder -q --header sort_final -i source/glyph_data.csv source/AndikaMtihani-Regular.ufo -p backup=False -x
echo "-----Syncing glyph orders, psnames, and other metadata to other UFOs..."
psfsyncmasters -q source/AndikaMtihaniRoman.designspace source/AndikaMtihaniItalic.designspace
echo "-----Preflight completed!"