• Home
  • Raw
  • Download

Lines Matching refs:instanceElement

543         instanceElement = ET.Element('instance')
545 instanceElement.attrib['name'] = instanceObject.name
547 instanceElement.attrib['familyname'] = instanceObject.familyName
549 instanceElement.attrib['stylename'] = instanceObject.styleName
560 instanceElement.append(localisedStyleNameElement)
570 instanceElement.append(localisedFamilyNameElement)
580 instanceElement.append(localisedStyleMapStyleNameElement)
590 instanceElement.append(localisedStyleMapFamilyNameElement)
594 instanceElement.append(locationElement)
596 instanceElement.attrib['filename'] = instanceObject.filename
598 instanceElement.attrib['postscriptfontname'] = instanceObject.postScriptFontName
600 instanceElement.attrib['stylemapfamilyname'] = instanceObject.styleMapFamilyName
602 instanceElement.attrib['stylemapstylename'] = instanceObject.styleMapStyleName
604 if instanceElement.findall('.glyphs') == []:
606 instanceElement.append(glyphsElement)
607 glyphsElement = instanceElement.findall('.glyphs')[0]
609 … glyphElement = self._writeGlyphElement(instanceElement, instanceObject, glyphName, data)
613 instanceElement.append(kerningElement)
616 instanceElement.append(infoElement)
620 instanceElement.append(libElement)
621 self.root.findall('.instances')[0].append(instanceElement)
675 def _writeGlyphElement(self, instanceElement, instanceObject, glyphName, data): argument
919 for instanceElement in instanceElements:
920 …self._readSingleInstanceElement(instanceElement, makeGlyphs=makeGlyphs, makeKerning=makeKerning, m…
922 …def _readSingleInstanceElement(self, instanceElement, makeGlyphs=True, makeKerning=True, makeInfo=… argument
923 filename = instanceElement.attrib.get('filename')
931 name = instanceElement.attrib.get("name")
934 familyname = instanceElement.attrib.get('familyname')
937 stylename = instanceElement.attrib.get('stylename')
940 postScriptFontName = instanceElement.attrib.get('postscriptfontname')
943 styleMapFamilyName = instanceElement.attrib.get('stylemapfamilyname')
946 styleMapStyleName = instanceElement.attrib.get('stylemapstylename')
950 for styleNameElement in instanceElement.findall('stylename'):
955 for familyNameElement in instanceElement.findall('familyname'):
960 for styleMapStyleNameElement in instanceElement.findall('stylemapstylename'):
965 for styleMapFamilyNameElement in instanceElement.findall('stylemapfamilyname'):
970 instanceLocation = self.locationFromElement(instanceElement)
973 for glyphElement in instanceElement.findall('.glyphs/glyph'):
975 for infoElement in instanceElement.findall("info"):
977 for libElement in instanceElement.findall('lib'):