code: def setupTable_glyf(self):
          
          if not {"glyf", "loca"}.issubset(self.tables):
              return
  
          self.otf["loca"] = newTable("loca")
          self.otf["glyf"] = glyf = newTable("glyf")
          glyf.glyphs = {}
          glyf.glyphOrder = self.glyphOrder
  
          hmtx = self.otf.get("hmtx")
          allGlyphs = self.allGlyphs
          for name in self.glyphOrder:
              glyph = allGlyphs[name]
              pen = TTGlyphPen(allGlyphs)
              try:
                  glyph.draw(pen)
              except NotImplementedError:
                  logger.error("%r has invalid curve format; skipped", name)
                  ttGlyph = Glyph()
              else:
                  ttGlyph = pen.glyph()
                  if (
                      ttGlyph.isComposite()
                      and hmtx is not None
                      and self.autoUseMyMetrics
                  ):
                      self.autoUseMyMetrics(ttGlyph, name, hmtx)
              glyf[name] = ttGlyph
docs: Make the glyf table.