• Home
  • Raw
  • Download

Lines Matching refs:glyphObject

313 	def readGlyph(self, glyphName, glyphObject=None, pointPen=None, validate=None):  argument
355 _readGlyphFromTree(tree, glyphObject, pointPen, formatVersions=formatVersions, validate=validate)
357 …def writeGlyph(self, glyphName, glyphObject=None, drawPointsFunc=None, formatVersion=None, validat… argument
415 glyphObject,
538 def readGlyphFromString(aString, glyphObject=None, pointPen=None, formatVersions=(1, 2), validate=T… argument
573 _readGlyphFromTree(tree, glyphObject, pointPen, formatVersions=formatVersions, validate=validate)
577 glyphName, glyphObject=None, drawPointsFunc=None, writer=None, argument
588 _writeAdvance(glyphObject, root, validate)
590 if getattr(glyphObject, "unicodes", None):
591 _writeUnicodes(glyphObject, root, validate)
593 if getattr(glyphObject, "note", None):
594 _writeNote(glyphObject, root, validate)
596 if formatVersion >= 2 and getattr(glyphObject, "image", None):
597 _writeImage(glyphObject, root, validate)
599 if formatVersion >= 2 and getattr(glyphObject, "guidelines", None):
600 _writeGuidelines(glyphObject, root, identifiers, validate)
602 anchors = getattr(glyphObject, "anchors", None)
604 _writeAnchors(glyphObject, root, identifiers, validate)
616 if getattr(glyphObject, "lib", None):
617 _writeLib(glyphObject, root, validate)
625 def writeGlyphToString(glyphName, glyphObject=None, drawPointsFunc=None, formatVersion=2, validate=… argument
656 glyphObject=glyphObject,
664 def _writeAdvance(glyphObject, element, validate): argument
665 width = getattr(glyphObject, "width", None)
671 height = getattr(glyphObject, "height", None)
684 def _writeUnicodes(glyphObject, element, validate): argument
685 unicodes = getattr(glyphObject, "unicodes", None)
698 def _writeNote(glyphObject, element, validate): argument
699 note = getattr(glyphObject, "note", None)
707 def _writeImage(glyphObject, element, validate): argument
708 image = getattr(glyphObject, "image", None)
721 def _writeGuidelines(glyphObject, element, identifiers, validate): argument
722 guidelines = getattr(glyphObject, "guidelines", [])
766 def _writeAnchors(glyphObject, element, identifiers, validate): argument
767 anchors = getattr(glyphObject, "anchors", [])
790 def _writeLib(glyphObject, element, validate): argument
791 lib = getattr(glyphObject, "lib", None)
881 def _readGlyphFromTree(tree, glyphObject=None, pointPen=None, formatVersions=(1, 2), validate=True): argument
894 …_readGlyphFromTreeFormat1(tree=tree, glyphObject=glyphObject, pointPen=pointPen, validate=validate)
896 …_readGlyphFromTreeFormat2(tree=tree, glyphObject=glyphObject, pointPen=pointPen, validate=validate)
901 def _readGlyphFromTreeFormat1(tree, glyphObject=None, pointPen=None, validate=None): argument
903 _readName(glyphObject, tree, validate)
917 buildOutlineFormat1(glyphObject, pointPen, element, validate)
918 elif glyphObject is None:
924 _readAdvance(glyphObject, element)
937 _readNote(glyphObject, element)
942 _readLib(glyphObject, element, validate)
947 _relaxedSetattr(glyphObject, "unicodes", unicodes)
949 def _readGlyphFromTreeFormat2(tree, glyphObject=None, pointPen=None, validate=None): argument
951 _readName(glyphObject, tree, validate)
969 buildOutlineFormat2(glyphObject, pointPen, element, identifiers, validate)
970 elif glyphObject is None:
976 _readAdvance(glyphObject, element)
1008 _readImage(glyphObject, element, validate)
1013 _readNote(glyphObject, element)
1018 _readLib(glyphObject, element, validate)
1023 _relaxedSetattr(glyphObject, "unicodes", unicodes)
1028 _relaxedSetattr(glyphObject, "guidelines", guidelines)
1033 _relaxedSetattr(glyphObject, "anchors", anchors)
1035 def _readName(glyphObject, root, validate): argument
1039 if glyphName and glyphObject is not None:
1040 _relaxedSetattr(glyphObject, "name", glyphName)
1042 def _readAdvance(glyphObject, advance): argument
1044 _relaxedSetattr(glyphObject, "width", width)
1046 _relaxedSetattr(glyphObject, "height", height)
1048 def _readNote(glyphObject, note): argument
1051 _relaxedSetattr(glyphObject, "note", note)
1053 def _readLib(glyphObject, lib, validate): argument
1061 _relaxedSetattr(glyphObject, "lib", plist)
1063 def _readImage(glyphObject, image, validate): argument
1070 _relaxedSetattr(glyphObject, "image", imageData)
1086 def buildOutlineFormat1(glyphObject, pen, outline, validate): argument
1104 if glyphObject is not None and anchors:
1107 _relaxedSetattr(glyphObject, "anchors", anchors)
1166 def buildOutlineFormat2(glyphObject, pen, outline, identifiers, validate): argument