class_docstr: The renderer handles all the drawing primitives using a graphics
  context instance that controls the colors/styles
docstr: Get the width, height, and descent (offset from the bottom
  to the baseline), in display coords, of the string *s* with
  :class:`~matplotlib.font_manager.FontProperties` *prop*
docstr_tok: ["Get","the","width",",","height",",","and","descent","(","offset","from","the","bottom","to","the","baseline",")",",","in","display","coords",",","of","the","string","*","s","*","with",":","class",":","`","~matplotlib.font_manager.FontProperties","`","*","prop","*"]
code: def get_text_width_height_descent(self, s, prop, ismath):
      """
      Get the width, height, and descent (offset from the bottom
      to the baseline), in display coords, of the string *s* with
      :class:`~matplotlib.font_manager.FontProperties` *prop*
      """
      if ismath in ["TeX", "TeX!"]:
          # todo: handle props
          size = prop.get_size_in_points()
          texmanager = self.get_texmanager()
          fontsize = prop.get_size_in_points()
          w, h, d = texmanager.get_text_width_height_descent(
              s, fontsize, renderer=self
          )
          return w, h, d
  
      if ismath:
          (
              ox,
              oy,
              width,
              height,
              descent,
              fonts,
              used_characters,
          ) = self.mathtext_parser.parse(s, self.dpi, prop)
          return width, height, descent
  
      flags = get_hinting_flag()
      font = self._get_agg_font(prop)
      font.set_text(s, 0.0, flags=flags)
      (
          w,
          h,
      ) = (
          font.get_width_height()
      )  # width and height of unrotated string
      d = font.get_descent()
      w /= 64.0  # convert from subpixels
      h /= 64.0
      d /= 64.0
      return w, h, d
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import numpy
  from collections import OrderedDict
  from math import radians, cos, sin
  from matplotlib import cbook, rcParams, __version__
  from matplotlib.backend_bases import _Backend, FigureCanvasBase, FigureManagerBase, RendererBase, cursors
  from matplotlib.cbook import maxdict
  from matplotlib.figure import Figure
  from matplotlib.font_manager import findfont, get_font
  from matplotlib.ft2font import LOAD_FORCE_AUTOHINT, LOAD_NO_HINTING, LOAD_DEFAULT, LOAD_NO_AUTOHINT
  from matplotlib.mathtext import MathTextParser
  from matplotlib.path import Path
  from matplotlib.transforms import Bbox, BboxBase
  from matplotlib import colors
  from matplotlib.backends._backend_agg import RendererAgg
  from matplotlib import _png
label_desc: Use image node_id 13 for calling the RendererAgg obj's underlying member method code with example usage: obj.get_text_width_height_descent(s, prop, ismath) and returns: w,  h,  d, w,  h,  d, width,  height,  descent