code: def __init__(
      self,
      glyphName=None,
      referenceGlyphName=None,
      originOffsetX=0,
      originOffsetY=0,
      graphicType=None,
      imageData=None,
      rawdata=None,
      gid=0,
  ):
      self.gid = gid
      self.glyphName = glyphName
      self.referenceGlyphName = referenceGlyphName
      self.originOffsetX = originOffsetX
      self.originOffsetY = originOffsetY
      self.rawdata = rawdata
      self.graphicType = graphicType
      self.imageData = imageData
  
      # fix self.graphicType if it is null terminated or too short
      if self.graphicType is not None:
          if self.graphicType[-1] == "\0":
              self.graphicType = self.graphicType[:-1]
          if len(self.graphicType) > 4:
              from fontTools import ttLib
  
              raise ttLib.TTLibError(
                  "Glyph.graphicType must not be longer than 4 characters."
              )
          elif len(self.graphicType) < 4:
              # pad with spaces
              self.graphicType += "    "[: (4 - len(self.graphicType))]
  
file_path: catboost/contrib/python/fonttools/fontTools/ttLib/tables/sbixGlyph.py
imports: from fontTools.misc import sstruct
  from fontTools.misc.textTools import readHex, safeEval
  import struct
label_desc: Use image node_id 1 to create a new Glyph object from inherited base classes: object with example: obj = Glyph(glyphName, referenceGlyphName, originOffsetX, originOffsetY, graphicType, imageData, rawdata, gid)