class_docstr: A class that convert a given text to a path using ttf fonts.
docstr: convert text *s* to path (a tuple of vertices and codes for
  matplotlib.path.Path).
  
  *prop*
    font property
  
  *s*
    text to be converted
  
  *usetex*
    If True, use matplotlib usetex mode.
  
  *ismath*
    If True, use mathtext parser. Effective only if usetex == False.
docstr_tok: ["convert","text","*","s","*","to","path","(","a","tuple","of","vertices","and","codes","for","matplotlib.path.Path",")",".","*","prop","*","font","property","*","s","*","text","to","be","converted","*","usetex","*","If","True",",","use","matplotlib","usetex","mode",".","*","ismath","*","If","True",",","use","mathtext","parser",".","Effective","only","if","usetex","==","False","."]
code: def get_text_path(self, prop, s, ismath=False, usetex=False):
      """
      convert text *s* to path (a tuple of vertices and codes for
      matplotlib.path.Path).
  
      *prop*
        font property
  
      *s*
        text to be converted
  
      *usetex*
        If True, use matplotlib usetex mode.
  
      *ismath*
        If True, use mathtext parser. Effective only if usetex == False.
  
  
      """
      if not usetex:
          if not ismath:
              font = self._get_font(prop)
              glyph_info, glyph_map, rects = self.get_glyphs_with_font(
                  font, s
              )
          else:
              glyph_info, glyph_map, rects = self.get_glyphs_mathtext(
                  prop, s
              )
      else:
          glyph_info, glyph_map, rects = self.get_glyphs_tex(prop, s)
  
      verts, codes = [], []
  
      for glyph_id, xposition, yposition, scale in glyph_info:
          verts1, codes1 = glyph_map[glyph_id]
          if len(verts1):
              verts1 = np.array(verts1) * scale + [xposition, yposition]
              verts.extend(verts1)
              codes.extend(codes1)
  
      for verts1, codes1 in rects:
          verts.extend(verts1)
          codes.extend(codes1)
  
      return verts, codes
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from collections import OrderedDict
  import six
  from six.moves import zip
  import warnings
  import numpy
  from matplotlib.path import Path
  from matplotlib import rcParams
  import matplotlib.font_manager
  from matplotlib.ft2font import KERNING_DEFAULT, LOAD_NO_HINTING
  from matplotlib.ft2font import LOAD_TARGET_LIGHT
  from matplotlib.mathtext import MathTextParser
  import matplotlib.dviread
  from matplotlib.font_manager import FontProperties, get_font
  from matplotlib.transforms import Affine2D
  from six.moves.urllib.parse import quote
label_desc: Use image node_id 9 for calling the TextToPath obj's underlying member method code with example usage: obj.get_text_path(prop, s, ismath, usetex) and returns: verts,  codes