Lines Matching refs:etree
36 from fontTools.misc import etree
585 root = etree.Element("glyph", OrderedDict([("name", glyphName), ("format", repr(formatVersion))]))
607 outline = etree.SubElement(root, "outline")
619 data = etree.tostring(
678 …etree.SubElement(element, "advance", OrderedDict([("height", repr(height)), ("width", repr(width))…
680 etree.SubElement(element, "advance", dict(width=repr(width)))
682 etree.SubElement(element, "advance", dict(height=repr(height)))
696 etree.SubElement(element, "unicode", dict(hex=hexCode))
705 etree.SubElement(element, "note").text = tounicode(note)
719 etree.SubElement(element, "image", attrs)
748 etree.SubElement(element, "guideline", attrs)
788 etree.SubElement(element, "anchor", attrs)
803 etree.SubElement(element, "lib").append(e)
864 root = etree.parse(aFile).getroot()
874 root = etree.fromstring(data)
1538 self.contour = etree.SubElement(self.outline, "contour", attrs)
1599 etree.SubElement(self.contour, "point", attrs)
1616 etree.SubElement(self.outline, "component", attrs)