-
Notifications
You must be signed in to change notification settings - Fork 2
/
preflight
executable file
·28 lines (20 loc) · 1.2 KB
/
preflight
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
#!/bin/sh
# Update UFO after any edits other than 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 "Normalizing UFOs..."
psfnormalize -p checkfix=fix source/masters/*-Regular.ufo &
wait
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 "Updating woff metadata files..."
psfmakewoffmetadata -q -n Alkalami -i org.sil.fonts source/masters/*-Regular.ufo -o "source/Alkalami-WOFF-metadata.xml"
echo "Building internal fea..."
makefea -o source/masters/Alkalami-Regular.ufo/features.fea -i source/opentype/main.feax --omitaps "topright, ogonek, caret_1, caret_2, caret_3, top_3, top_4, top_alef" source/masters/*-Regular.ufo &
wait
echo "preflight completed!"