class_docstr: Create a path from the text.
docstr: convert the string *s* to vertices and codes using the
  provided font property *prop*. Mostly copied from
  backend_svg.py.
docstr_tok: ["convert","the","string","*","s","*","to","vertices","and","codes","using","the","provided","font","property","*","prop","*",".","Mostly","copied","from","backend_svg.py","."]
code: def text_get_vertices_codes(self, prop, s, usetex):
      """
      convert the string *s* to vertices and codes using the
      provided font property *prop*. Mostly copied from
      backend_svg.py.
      """
  
      if usetex:
          verts, codes = text_to_path.get_text_path(
              prop, s, usetex=True
          )
      else:
          clean_line, ismath = self.is_math_text(s)
          verts, codes = text_to_path.get_text_path(
              prop, clean_line, ismath=ismath
          )
  
      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 8 for calling the TextPath obj's underlying member method code with example usage: obj.text_get_vertices_codes(prop, s, usetex) and returns: verts,  codes