def toXML(self, writer, ttFont):
    writer.begintag(self.__class__.__name__, [('platformID', self.platformID), ('platEncID', self.platEncID), ('format', self.format), ('length', self.length), ('numVarSelectorRecords', self.numVarSelectorRecords)])
    writer.newline()
    uvsDict = self.uvsDict
    uvsList = sorted(uvsDict.keys())
    for uvs in uvsList:
        uvList = uvsDict[uvs]
        uvList.sort(key=(lambda item: ((item[1] is not None), item[0], item[1])))
        for (uv, gname) in uvList:
            if (gname is None):
                gname = 'None'
            writer.simpletag('map', [('uvs', hex(uvs)), ('uv', hex(uv)), ('name', gname)])
            writer.newline()
    writer.endtag(self.__class__.__name__)
    writer.newline()
def toXML(self, writer, ttFont):
    writer.begintag(self.__class__.__name__, [('platformID', self.platformID), ('platEncID', self.platEncID), ('format', self.format), ('length', self.length), ('numVarSelectorRecords', self.numVarSelectorRecords)])
    writer.newline()
    uvsDict = self.uvsDict
    uvsList = sorted(uvsDict.keys())
    for uvs in uvsList:
        uvList = uvsDict[uvs]
        uvList.sort(key=(lambda item: ((item[1] is not None), item[0], item[1])))
        for (uv, gname) in uvList:
            if (gname is None):
                gname = 'None'
            writer.simpletag('map', [('uvs', hex(uvs)), ('uv', hex(uv)), ('name', gname)])
            writer.newline()
    writer.endtag(self.__class__.__name__)
    writer.newline()