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

Method get_glyph_name

lib/matplotlib/_afm.py:413–416  ·  view source on GitHub ↗

Get the name of the glyph, i.e., ord(';') is 'semicolon'.

(self,  # For consistency with FT2Font.
                       glyph_ind: GlyphIndexType)

Source from the content-addressed store, hash-verified

411 return left, miny, total_width, maxy - miny, -miny
412
413 def get_glyph_name(self, # For consistency with FT2Font.
414 glyph_ind: GlyphIndexType) -> str:
415 """Get the name of the glyph, i.e., ord(';') is 'semicolon'."""
416 return self._metrics[cast(CharacterCodeType, glyph_ind)].name
417
418 def get_char_index(self, # For consistency with FT2Font.
419 c: CharacterCodeType) -> GlyphIndexType:

Callers 9

_as_unicode_or_nameMethod · 0.80
_font_to_ps_type3Function · 0.80
draw_textMethod · 0.80
draw_mathtextMethod · 0.80
_get_pdf_charprocsFunction · 0.80
embedTTFType3Method · 0.80
test_ft2font_charmapsFunction · 0.80
print_glyphsFunction · 0.80
font_indexing.pyFile · 0.80

Calls

no outgoing calls

Tested by 1

test_ft2font_charmapsFunction · 0.64