class_docstr: The renderer handles all the drawing primitives using a graphics
  context instance that controls the colors/styles
docstr: Render the text
docstr_tok: ["Render","the","text"]
code: def draw_text(
      self, gc, x, y, s, prop, angle, ismath=False, mtext=None
  ):
      """
      Render the text
      """
      if ismath:
          return self.draw_mathtext(gc, x, y, s, prop, angle)
  
      flags = get_hinting_flag()
      font = self._get_agg_font(prop)
  
      if font is None:
          return None
      if len(s) == 1 and ord(s) > 127:
          font.load_char(ord(s), flags=flags)
      else:
          # We pass '0' for angle here, since it will be rotated (in raster
          # space) in the following call to draw_text_image).
          font.set_text(s, 0, flags=flags)
      font.draw_glyphs_to_bitmap(
          antialiased=rcParams["text.antialiased"]
      )
      d = font.get_descent() / 64.0
      # The descent needs to be adjusted for the angle.
      xo, yo = font.get_bitmap_offset()
      xo /= 64.0
      yo /= 64.0
      xd = -d * sin(radians(angle))
      yd = d * cos(radians(angle))
  
      self._renderer.draw_text_image(
          font,
          np.round(x - xd + xo),
          np.round(y + yd + yo) + 1,
          angle,
          gc,
      )
  
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 12 for calling the RendererAgg obj's underlying member method code with example usage: obj.draw_text(gc, x, y, s, prop, angle, ismath, mtext) and returns: self, None