From 8ef6dd8b9f4c2b35ccf1829dcaa2563607b1da7d Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Mon, 27 May 2019 11:32:39 -0700 Subject: tooling: better handling of unexported glyphs --- misc/tools/gen-glyphinfo.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'misc/tools/gen-glyphinfo.py') diff --git a/misc/tools/gen-glyphinfo.py b/misc/tools/gen-glyphinfo.py index c6e4a9912..62c6dc82a 100755 --- a/misc/tools/gen-glyphinfo.py +++ b/misc/tools/gen-glyphinfo.py @@ -64,6 +64,11 @@ def main(): for name in font.lib['public.glyphOrder']: g = font[name] + # not exported? + if 'com.schriftgestaltung.Glyphs.Export' in g.lib: + if not g.lib['com.schriftgestaltung.Glyphs.Export']: + continue + # color color = None if 'public.markColor' in g.lib: @@ -74,7 +79,7 @@ def main(): if not g.bounds or g.bounds[3] == 0: isEmpty = 1 - # name[, unicode[, unicodeName[, color]]] + # name, isEmpty, unicode, unicodeName, color glyph = None ucs = g.unicodes if len(ucs): -- cgit v1.2.3