()
| 59 | |
| 60 | |
| 61 | def 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 | |
| 75 | def test_score_weight(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…