class_docstr: A class that converts strings to paths.
class_docstr_tok: ["A","class","that","converts","strings","to","paths","."]
docstr: Find the `FT2Font` matching font properties *prop*, with its size set.
docstr_tok: ["Find","the","`","FT2Font","`","matching","font","properties","*","prop","*",",","with","its","size","set","."]
code: def _get_font(self, prop):
      """
      Find the `FT2Font` matching font properties *prop*, with its size set.
      """
      filenames = _fontManager._find_fonts_by_props(prop)
      font = get_font(filenames)
      font.set_size(self.FONT_SCALE, self.DPI)
      return font
  
imports: from collections import OrderedDict
  import logging
  import urllib.parse
  import numpy
  from matplotlib import _text_helpers, dviread
  from matplotlib.font_manager import FontProperties, get_font, fontManager
  from matplotlib.ft2font import LOAD_NO_HINTING, LOAD_TARGET_LIGHT
  from matplotlib.mathtext import MathTextParser
  from matplotlib.path import Path
  from matplotlib.texmanager import TexManager
  from matplotlib.transforms import Affine2D
label_desc: Use image node_id 2 for calling the TextToPath obj's underlying member method code with example usage: obj._get_font(prop) and returns: font