def fromXML(self, name, attrs, content, ttFont):
    if (name == 'tableVersion'):
        self.tableVersion = safeEval(attrs['version'])
        return
    if (name[:12] != 'cmap_format_'):
        return
    if (not hasattr(self, 'tables')):
        self.tables = []
    format = safeEval(name[12:])
    table = CmapSubtable.newSubtable(format)
    table.platformID = safeEval(attrs['platformID'])
    table.platEncID = safeEval(attrs['platEncID'])
    table.fromXML(name, attrs, content, ttFont)
    self.tables.append(table)
def fromXML(self, name, attrs, content, ttFont):
    if (name == 'tableVersion'):
        self.tableVersion = safeEval(attrs['version'])
        return
    if (name[:12] != 'cmap_format_'):
        return
    if (not hasattr(self, 'tables')):
        self.tables = []
    format = safeEval(name[12:])
    table = CmapSubtable.newSubtable(format)
    table.platformID = safeEval(attrs['platformID'])
    table.platEncID = safeEval(attrs['platEncID'])
    table.fromXML(name, attrs, content, ttFont)
    self.tables.append(table)