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

Function test_get_familyname_guessed

lib/matplotlib/tests/test_afm.py:85–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84
85def test_get_familyname_guessed():
86 fh = BytesIO(AFM_TEST_DATA)
87 font = _afm.AFM(fh)
88 del font._header['FamilyName'] # remove FamilyName, so we have to guess
89 assert font.get_familyname() == 'My Font'
90
91
92def test_font_manager_weight_normalization():

Callers

nothing calls this directly

Calls 1

get_familynameMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…