code: def get_text_width_height_descent(self, s, prop, ismath):
      # docstring inherited
      if ismath == "TeX":
          return super().get_text_width_height_descent(s, prop, ismath)
      elif ismath:
          parse = self._text2path.mathtext_parser.parse(s, 72, prop)
          return parse.width, parse.height, parse.depth
      elif mpl.rcParams[self._use_afm_rc_name]:
          font = self._get_font_afm(prop)
          l, b, w, h, d = font.get_str_bbox_and_descent(s)
          scale = prop.get_size_in_points() / 1000
          w *= scale
          h *= scale
          d *= scale
          return w, h, d
      else:
          font = self._get_font_ttf(prop)
          font.set_text(s, 0.0, flags=ft2font.LOAD_NO_HINTING)
          w, h = font.get_width_height()
          d = font.get_descent()
          scale = 1 / 64
          w *= scale
          h *= scale
          d *= scale
          return w, h, d
  
imports: from io import BytesIO
  import functools
  from fontTools import subset
  import matplotlib
  from ..None import font_manager, ft2font
  from .._afm import AFM
  from ..backend_bases import RendererBase
label_desc: Use image node_id 6 for calling the RendererPDFPSBase obj's underlying member method code with example usage: obj.get_text_width_height_descent(s, prop, ismath) and returns: super, parse,  parse,  parse, w,  h,  d, w,  h,  d