-
Notifications
You must be signed in to change notification settings - Fork 2
/
preflightff
executable file
·30 lines (22 loc) · 1.58 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
30
#!/bin/sh
# Update UFO after editing with FontForge and prior to commit
# Stop on any errors
set -e
# Check and normalize all UFOs first -- assumes no other steps de-normalize
echo "Fixing FontForge debris and normalizing UFOs..."
psffixffglifs -p checkfix=fix source/masters/*-Regular.ufo &
psffixffglifs -p checkfix=fix source/masters/*-Bold.ufo &
wait
echo "Updating woff metadata xml file..."
psfmakewoffmetadata -q -n Harmattan -i org.sil.fonts source/masters/*-Regular.ufo
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/masters/*-Regular.ufo
echo "Updating production names in Regular..."
psfsetpsnames -q -p checkfix=none -p backup=False -i source/glyph_data.csv source/masters/*-Regular.ufo
echo "Syncing glyph orders, psnames, and other metadata to other UFOs..."
psfsyncmasters -q source/*.designspace
echo "Building internal fea..."
psfmakefea -q -o source/masters/Harmattan-Regular.ufo/features.fea -l Harmattan-Regular-psfmakefea.log -i source/opentype/master.feax -c source/classes.xml --omitaps "_above,_below,_center,_ring,_through,above,below,center,ring,through,U,L,O" source/masters/*-Regular.ufo &
psfmakefea -q -o source/masters/Harmattan-Bold.ufo/features.fea -l Harmattan-Bold-psfmakefea.log -i source/opentype/master.feax -c source/classes.xml --omitaps "_above,_below,_center,_ring,_through,above,below,center,ring,through,U,L,O" source/masters/*-Bold.ufo &
wait
echo "preflightff completed!"