xmlImport

exception fontTools.ttLib.xmlImport.TTXParseError

Bases: exceptions.Exception

class fontTools.ttLib.xmlImport.ExpatParser(ttFont, fileName, progress=None)
parse()
parseFile(file)
startElementHandler(name, attrs)
characterDataHandler(data)
endElementHandler(name)
class fontTools.ttLib.xmlImport.ProgressPrinter(title, maxval=100)
set(val, maxval=None)
increment(val=1)
setLabel(text)
fontTools.ttLib.xmlImport.importXML(ttFont, fileName, progress=None)

Import a TTX file (an XML-based text format), so as to recreate a font object.