-
Notifications
You must be signed in to change notification settings - Fork 7
/
preflightg
executable file
·21 lines (16 loc) · 1.3 KB
/
preflightg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# Produce individual UFOs from Glyphs file
psfglyphs2ufo --preservefea source/masters/Padauk.glyphs source/masters -l source/logs/glyphs2ufo.log
# This normalization will also run check and fix routines
psfnormalize -p checkfix=fix source/masters/Padauk-Regular.ufo -l source/logs/normR.log
# psfnormalize -p checkfix=fix source/masters/Padauk-Book.ufo -l source/logs/normKR.log
# psfnormalize -p checkfix=fix source/masters/Padauk-Bold.ufo -l source/logs/normB.log
psfnormalize -p checkfix=fix source/masters/Padauk-BookBold.ufo -l source/logs/normKB.log
# update psnames and sort order in Regular, which also normalizes it
# psfsetpsnames -p checkfix=fix -i source/glyph_data.csv source/masters/Padauk-Regular.ufo -l source/logs/psnames.log
# psfsetglyphorder --header sort_final -i source/glyph_data.csv source/masters/Padauk-Regular.ufo -l source/logs/sortorder.log
# copy psnames and glyphorder and any other updates to all fonts
psfsyncmasters source/Padauk.designspace -l source/logs/sync.log
# Fix problem with non-spacing marks due to glyphsLib bug
psfremovegliflibkeys source/masters/Padauk-Regular.ufo com.schriftgestaltung.Glyphs.originalWidth -l source/logs/rmkeys-R.log
psfremovegliflibkeys source/masters/Padauk-BookBold.ufo com.schriftgestaltung.Glyphs.originalWidth -l source/logs/rmkeys-KB.log