code: def compile(self, ttFont):
      self.recordsCount = len(self.gmapRecords)
      self.fontNameLength = len(self.psFontName)
      self.recordsOffset = 4 * (((self.fontNameLength + 12) + 3) // 4)
      data = sstruct.pack(GMAPFormat, self)
      data = data + tobytes(self.psFontName)
      data = data + b"\0" * (self.recordsOffset - len(data))
      for record in self.gmapRecords:
          data = data + record.compile(ttFont)
      return data
  
file_path: catboost/contrib/python/fonttools/fontTools/ttLib/tables/G_M_A_P_.py
imports: from fontTools.misc import sstruct
  from fontTools.misc.textTools import tobytes, tostr, safeEval
  from .None import DefaultTable
label_desc: Use image node_id 2 for calling the table_G_M_A_P_ obj's underlying member method code with example usage: obj.compile(ttFont) and returns: data