Fixup cmap lazy loading

This commit is contained in:
Behdad Esfahbod 2013-11-26 19:22:13 -05:00
parent cb4adf6828
commit 7ab0cb0b09

View File

@ -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"