class_docstr: A class that convert a given text to a path using ttf fonts.
docstr: Return a unique id for the given font and character-code set.
docstr_tok: ["Return","a","unique","id","for","the","given","font","and","character-code","set","."]
code: def _get_char_id(self, font, ccode):
      """
      Return a unique id for the given font and character-code set.
      """
      sfnt = font.get_sfnt()
      try:
          ps_name = sfnt[1, 0, 0, 6].decode("mac_roman")
      except KeyError:
          ps_name = sfnt[3, 1, 0x0409, 6].decode("utf-16be")
      char_id = urllib_quote("%s-%x" % (ps_name, ccode))
      return char_id
  
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 5 for calling the TextToPath obj's underlying member method code with example usage: obj._get_char_id(font, ccode) and returns: char_id