MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _get_glyph_repr

Method _get_glyph_repr

lib/matplotlib/textpath.py:42–44  ·  view source on GitHub ↗

Return a unique id for the given font and glyph index.

(self, font, glyph)

Source from the content-addressed store, hash-verified

40 return LoadFlags.NO_HINTING
41
42 def _get_glyph_repr(self, font, glyph):
43 """Return a unique id for the given font and glyph index."""
44 return urllib.parse.quote(f"{font.postscript_name}-{glyph:x}")
45
46 def get_text_width_height_descent(self, s, prop, ismath):
47 fontsize = prop.get_size_in_points()

Callers 3

get_glyphs_with_fontMethod · 0.95
get_glyphs_mathtextMethod · 0.95
get_glyphs_texMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected