code: def insertGlyph(self, glyph, name=None):
          
          if name is None:
              name = glyph.name
          self[name] = glyph
docs: Insert **glyph** into the layer. ::
  
              >>> glyph = layer.insertGlyph(otherGlyph, name="A")
  
          This method is deprecated. :meth:`BaseFont.__setitem__` instead.