code: def _get_bounds(self):
          
          from fontTools.pens.boundsPen import BoundsPen
          pen = BoundsPen(self.layer)
          self.draw(pen)
          return pen.bounds
docs: Subclasses may override this method.