docs: def font(self, container):
          """The :class:`Font` described by this single-styled text's style.
  
          If the exact font style as described by the `font_weight`,
          `font_slant` and `font_width` style attributes is not present in the
          `typeface`, the closest font available is returned instead, and a
          warning is printed."""
          typeface = self.get_style('typeface', container)
          weight = self.get_style('font_weight', container)
          slant = self.get_style('font_slant', container)
          width = self.get_style('font_width', container)
          return typeface.get_font(weight=weight, slant=slant, width=width)