class_docstr: This table is structured so that you can treat it like a dictionary keyed by glyph name.
  
  ``ttFont['VORG'][<glyphName>]`` will return the vertical origin for any glyph.
  
  ``ttFont['VORG'][<glyphName>] = <value>`` will set the vertical origin for any glyph.
class_docstr_tok: ["This","table","is","structured","so","that","you","can","treat","it","like","a","dictionary","keyed","by","glyph","name",".","``","ttFont","[","'VORG","'","]","[","<","glyphName",">","]","``","will","return","the","vertical","origin","for","any","glyph",".","``","ttFont","[","'VORG","'","]","[","<","glyphName",">","]","=","<","value",">","``","will","set","the","vertical","origin","for","any","glyph","."]
code: def compile(self, ttFont):
      vorgs = list(self.VOriginRecords.values())
      names = list(self.VOriginRecords.keys())
      nameMap = ttFont.getReverseGlyphMap()
      try:
          gids = [nameMap[name] for name in names]
      except KeyError:
          nameMap = ttFont.getReverseGlyphMap(rebuild=True)
          gids = [nameMap[name] for name in names]
      vOriginTable = list(zip(gids, vorgs))
      self.numVertOriginYMetrics = len(vorgs)
      vOriginTable.sort()  # must be in ascending GID order
      dataList = [
          struct.pack(">Hh", rec[0], rec[1]) for rec in vOriginTable
      ]
      header = struct.pack(
          ">HHhH",
          self.majorVersion,
          self.minorVersion,
          self.defaultVertOriginY,
          self.numVertOriginYMetrics,
      )
      dataList.insert(0, header)
      data = bytesjoin(dataList)
      return data
  
file_path: catboost/contrib/python/fonttools/fontTools/ttLib/tables/V_O_R_G_.py
imports: from fontTools.misc.textTools import bytesjoin, safeEval
  from .None import DefaultTable
  import struct
label_desc: Use image node_id 2 for calling the table_V_O_R_G_ obj's underlying member method code with example usage: obj.compile(ttFont) and returns: data