Fixup cmap lazy loading
This commit is contained in:
parent
cb4adf6828
commit
7ab0cb0b09
@ -1106,7 +1106,7 @@ class cmap_format_14(CmapSubtable):
|
||||
self.language = 0xFF # has no language.
|
||||
|
||||
def decompile(self, data, ttFont):
|
||||
if ttFont.lazy and data != None and ttFont != None:
|
||||
if data != None and ttFont != None and ttFont.lazy:
|
||||
self.decompileHeader(data, ttFont)
|
||||
else:
|
||||
assert (data == None and ttFont == None), "Need both data and ttFont arguments"
|
||||
|
Loading…
x
Reference in New Issue
Block a user