Add optional progress to DefaultTable

Such that if dumping glyf/CFF failed and falling back to DefaultTable
implementation, toXML will match.
This commit is contained in:
Behdad Esfahbod 2013-12-01 04:05:40 -05:00
parent 21bae0e3db
commit 81acddadbd

View File

@ -14,7 +14,7 @@ class DefaultTable(object):
def compile(self, ttFont): def compile(self, ttFont):
return self.data return self.data
def toXML(self, writer, ttFont): def toXML(self, writer, ttFont, progress=None):
if hasattr(self, "ERROR"): if hasattr(self, "ERROR"):
writer.comment("An error occurred during the decompilation of this table") writer.comment("An error occurred during the decompilation of this table")
writer.newline() writer.newline()