diff options
author | Rasmus Andersson <rasmus@figma.com> | 2019-05-27 21:32:39 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@figma.com> | 2019-05-27 21:32:39 +0300 |
commit | 8ef6dd8b9f4c2b35ccf1829dcaa2563607b1da7d (patch) | |
tree | ed88da882d53f43255087d0e8c46bb0489945d45 /misc/tools/gen-glyphinfo.py | |
parent | a4d3c0c2351a81313ff776301ec6c838217cc154 (diff) | |
download | inter-8ef6dd8b9f4c2b35ccf1829dcaa2563607b1da7d.tar.xz |
tooling: better handling of unexported glyphs
Diffstat (limited to 'misc/tools/gen-glyphinfo.py')
-rwxr-xr-x | misc/tools/gen-glyphinfo.py | 7 |
1 files changed, 6 insertions, 1 deletions
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): |