Expand description
The XML content model of fontTools.misc.xmlReader.
fontTools hands each table’s fromXML an element as (name, attrs, content),
where content is a list of text chunks and child elements. Text is split the
way expat delivers it: every newline is a separate chunk, and other text is
merged into the preceding chunk unless that chunk is a newline. Some tables
depend on this (for example, they skip "\n" chunks), so it is reproduced here.
The TTX-specific dispatch (tables, GlyphOrder, src sub-files) lives in
fontoxide-ttlib.
Structs§
- Element
- An XML element: name, attributes in document order, and content.
- Parse
Error - An XML syntax error.
Enums§
- Content
- A node in an element’s content.
Functions§
- parse
- Parses a document and returns its root element.