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

Method get_fontname

lib/matplotlib/_afm.py:441–443  ·  view source on GitHub ↗

Return the font name, e.g., 'Times-Roman'.

(self)

Source from the content-addressed store, hash-verified

439 return self._kern.get((name1, name2), 0)
440
441 def get_fontname(self) -> str:
442 """Return the font name, e.g., 'Times-Roman'."""
443 return self._header['FontName']
444
445 @property
446 def postscript_name(self) -> str: # For consistency with FT2Font.

Callers 4

postscript_nameMethod · 0.95
_write_afm_fontMethod · 0.95
afmFontPropertyFunction · 0.45
test_font_stylesFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_font_stylesFunction · 0.36