• Home
  • Raw
  • Download

Lines Matching refs:instanceElement

479         instanceElement = ET.Element('instance')
481 instanceElement.attrib['name'] = instanceObject.name
483 instanceElement.attrib['familyname'] = instanceObject.familyName
485 instanceElement.attrib['stylename'] = instanceObject.styleName
496 instanceElement.append(localisedStyleNameElement)
506 instanceElement.append(localisedFamilyNameElement)
516 instanceElement.append(localisedStyleMapStyleNameElement)
526 instanceElement.append(localisedStyleMapFamilyNameElement)
530 instanceElement.append(locationElement)
532 instanceElement.attrib['filename'] = instanceObject.filename
534 instanceElement.attrib['postscriptfontname'] = instanceObject.postScriptFontName
536 instanceElement.attrib['stylemapfamilyname'] = instanceObject.styleMapFamilyName
538 instanceElement.attrib['stylemapstylename'] = instanceObject.styleMapStyleName
540 if instanceElement.findall('.glyphs') == []:
542 instanceElement.append(glyphsElement)
543 glyphsElement = instanceElement.findall('.glyphs')[0]
545 … glyphElement = self._writeGlyphElement(instanceElement, instanceObject, glyphName, data)
549 instanceElement.append(kerningElement)
552 instanceElement.append(infoElement)
556 instanceElement.append(libElement)
557 self.root.findall('.instances')[0].append(instanceElement)
611 def _writeGlyphElement(self, instanceElement, instanceObject, glyphName, data): argument
848 for instanceElement in instanceElements:
849 …self._readSingleInstanceElement(instanceElement, makeGlyphs=makeGlyphs, makeKerning=makeKerning, m…
851 …def _readSingleInstanceElement(self, instanceElement, makeGlyphs=True, makeKerning=True, makeInfo=… argument
852 filename = instanceElement.attrib.get('filename')
860 name = instanceElement.attrib.get("name")
863 familyname = instanceElement.attrib.get('familyname')
866 stylename = instanceElement.attrib.get('stylename')
869 postScriptFontName = instanceElement.attrib.get('postscriptfontname')
872 styleMapFamilyName = instanceElement.attrib.get('stylemapfamilyname')
875 styleMapStyleName = instanceElement.attrib.get('stylemapstylename')
879 for styleNameElement in instanceElement.findall('stylename'):
884 for familyNameElement in instanceElement.findall('familyname'):
889 for styleMapStyleNameElement in instanceElement.findall('stylemapstylename'):
894 for styleMapFamilyNameElement in instanceElement.findall('stylemapfamilyname'):
899 instanceLocation = self.locationFromElement(instanceElement)
902 for glyphElement in instanceElement.findall('.glyphs/glyph'):
904 for infoElement in instanceElement.findall("info"):
906 for libElement in instanceElement.findall('lib'):