forked from silnrsi/font-abyssinica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreflight
executable file
·22 lines (15 loc) · 1.16 KB
/
preflight
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# This normalization will also run check and fix routines
psfnormalize -p checkfix=fix source/AbyssinicaSIL-Regular.ufo -l source/logs/norm.log
wait
echo "Updating woff metadata xml file..."
psfmakewoffmetadata -q -n AbyssinicaSIL -i org.sil.fonts source/*-Regular.ufo -o "source/AbyssinicaSIL-WOFF-metadata.xml"
echo "Updating glyph orders in Regular..."
psfsetglyphorder -q -p checkfix=none -p backup=False --header DesignerOrder,DesignerOrder --field public.glyphOrder,com.schriftgestaltung.glyphOrder -i source/glyph_data.csv source/*-Regular.ufo
# Building composites - needs to be done after normalization or may complain due to bad anchor coordinates
# psfbuildcomp -i source/composites.txt source/AbyssinicaSIL-Regular.ufo -l source/logs/comps.log
# psfsetpsnames -i source/glyph_data.csv source/AbyssinicaSIL-Regular.ufo -l source/logs/psnames.log
# psfsetglyphorder --header sort_final -i source/glyph_data.csv source/AbyssinicaSIL-Regular.ufo -l source/logs/sortorder.log
echo "Building internal fea..."
makefea -q -o source/AbyssinicaSIL-Regular.ufo/features.fea -l AbyssinicaSIL-Regular-makefea.log -i source/opentype/master.feax source/*-Regular.ufo &
wait