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

Function test_font_priority

lib/matplotlib/tests/test_font_manager.py:61–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60
61def test_font_priority():
62 with rc_context(rc={
63 'font.sans-serif':
64 ['cmmi10', 'Bitstream Vera Sans']}):
65 fontfile = findfont(FontProperties(family=["sans-serif"]))
66 assert Path(fontfile).name == 'cmmi10.ttf'
67
68 # Smoketest get_charmap, which isn't used internally anymore
69 font = get_font(fontfile)
70 cmap = font.get_charmap()
71 assert len(cmap) == 131
72 assert cmap[8729] == 30
73
74
75def test_score_weight():

Callers

nothing calls this directly

Calls 4

rc_contextFunction · 0.90
FontPropertiesClass · 0.90
get_fontFunction · 0.90
PathClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…