def toXML(self, writer, ttFont):
    cmapName = (self.__class__.__name__[:12] + str(self.format))
    writer.begintag(cmapName, [('platformID', self.platformID), ('platEncID', self.platEncID)])
    writer.newline()
    writer.dumphex(self.data)
    writer.endtag(cmapName)
    writer.newline()
def toXML(self, writer, ttFont):
    cmapName = (self.__class__.__name__[:12] + str(self.format))
    writer.begintag(cmapName, [('platformID', self.platformID), ('platEncID', self.platEncID)])
    writer.newline()
    writer.dumphex(self.data)
    writer.endtag(cmapName)
    writer.newline()