summaryrefslogtreecommitdiffstats
path: root/tests/input/font-psf-test/preflight
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-03-02 20:01:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-03-02 20:01:10 +0000
commitda875fcb62c801b8d19b3d4d984ad963574fb356 (patch)
tree3d85503747c56c2a387b291524442946f4bebb73 /tests/input/font-psf-test/preflight
parentInitial commit. (diff)
downloadpysilfont-1f9ed76662986bf6e3802e9fb3080d61e5797532.tar.xz
pysilfont-1f9ed76662986bf6e3802e9fb3080d61e5797532.zip
Adding upstream version 1.6.0.upstream/1.6.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xtests/input/font-psf-test/preflight19
-rwxr-xr-xtests/input/font-psf-test/preflightg7
2 files changed, 26 insertions, 0 deletions
diff --git a/tests/input/font-psf-test/preflight b/tests/input/font-psf-test/preflight
new file mode 100755
index 0000000..9a63416
--- /dev/null
+++ b/tests/input/font-psf-test/preflight
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# This normalization will also run check and fix routines
+psfnormalize -p checkfix=fix source/PsfTest-Regular.ufo -l source/logs/normR.log
+psfnormalize -p checkfix=fix source/PsfTest-Bold.ufo -l source/logs/normB.log
+psfnormalize -p checkfix=fix source/PsfTest-Italic.ufo -l source/logs/normI.log
+psfnormalize -p checkfix=fix source/PsfTest-BoldItalic.ufo -l source/logs/normBI.log
+
+# Building composites - needs to be done after normalization or may complain due to bad anchor coordinates
+psfbuildcomp -i source/composites.txt source/PsfTest-Regular.ufo -l source/logs/compsR.log
+psfbuildcomp -i source/composites.txt source/PsfTest-Bold.ufo -l source/logs/compsB.log
+psfbuildcomp -i source/composites.txt source/PsfTest-Italic.ufo -l source/logs/compsI.log
+psfbuildcomp -i source/composites.txt source/PsfTest-BoldItalic.ufo -l source/logs/compsBI.log
+
+psfsetpsnames -i source/glyph_data.csv source/PsfTest-Regular.ufo -l source/logs/psnames.log
+psfsetglyphorder --header sort_final -i source/glyph_data.csv source/PsfTest-Regular.ufo -l source/logs/sortorder.log
+
+# Following sync will copy psnames and glyphorder updates to all fonts
+psfsyncmasters source/PsfTestRoman.designspace source/PsfTestItalic.designspace -l source/logs/sync.log
diff --git a/tests/input/font-psf-test/preflightg b/tests/input/font-psf-test/preflightg
new file mode 100755
index 0000000..f7618cf
--- /dev/null
+++ b/tests/input/font-psf-test/preflightg
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Produce individual UFOs from Glyphs files
+psfglyphs2ufo --nofea source/PsfTestRoman.glyphs source -l source/logs/glyphs2ufoR.log
+psfglyphs2ufo --nofea source/PsfTestItalic.glyphs source -l source/logs/glyphs2ufoI.log
+
+./preflight \ No newline at end of file