Lines Matching refs:etree
36 from fontTools.misc import etree
678 root = etree.Element("glyph", glyphAttrs)
700 outline = etree.SubElement(root, "outline")
712 data = etree.tostring(
784 …etree.SubElement(element, "advance", OrderedDict([("height", repr(height)), ("width", repr(width))…
786 etree.SubElement(element, "advance", dict(width=repr(width)))
788 etree.SubElement(element, "advance", dict(height=repr(height)))
802 etree.SubElement(element, "unicode", dict(hex=hexCode))
810 etree.SubElement(element, "note").text = note
824 etree.SubElement(element, "image", attrs)
853 etree.SubElement(element, "guideline", attrs)
893 etree.SubElement(element, "anchor", attrs)
908 etree.SubElement(element, "lib").append(e)
969 if etree._have_lxml:
970 tree = etree.parse(aFile, parser=etree.XMLParser(remove_comments=True))
972 tree = etree.parse(aFile)
983 if etree._have_lxml:
984 root = etree.fromstring(data, parser=etree.XMLParser(remove_comments=True))
986 root = etree.fromstring(data)
1686 self.contour = etree.SubElement(self.outline, "contour", attrs)
1747 etree.SubElement(self.contour, "point", attrs)
1764 etree.SubElement(self.outline, "component", attrs)