summaryrefslogtreecommitdiff
path: root/misc/tools/gen-glyphinfo.py
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@figma.com>2019-05-27 21:32:39 +0300
committerRasmus Andersson <rasmus@figma.com>2019-05-27 21:32:39 +0300
commit8ef6dd8b9f4c2b35ccf1829dcaa2563607b1da7d (patch)
treeed88da882d53f43255087d0e8c46bb0489945d45 /misc/tools/gen-glyphinfo.py
parenta4d3c0c2351a81313ff776301ec6c838217cc154 (diff)
downloadinter-8ef6dd8b9f4c2b35ccf1829dcaa2563607b1da7d.tar.xz
tooling: better handling of unexported glyphs
Diffstat (limited to 'misc/tools/gen-glyphinfo.py')
-rwxr-xr-xmisc/tools/gen-glyphinfo.py7
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):