glyf: add ensureDecompiled method

to 'expand' all the lazy glyphs
This commit is contained in:
Cosimo Lupo 2022-03-17 12:51:56 +00:00
parent 4119d8f582
commit 7f1e5e1fc7

View File

@ -110,6 +110,9 @@ class table__g_l_y_f(DefaultTable.DefaultTable):
if noname:
log.warning('%s glyphs have no name', noname)
if ttFont.lazy is False: # Be lazy for None and True
self.ensureDecompiled()
def ensureDecompiled(self):
for glyph in self.glyphs.values():
glyph.expand(self)