()
| 466 | reason="LaTeX lacks heuristica package") |
| 467 | @image_comparison(["font-heuristica.pdf"], style='_classic_test') |
| 468 | def test_font_heuristica(): |
| 469 | # Heuristica uses the callothersubr operator for some glyphs |
| 470 | mpl.rcParams['text.latex.preamble'] = '\n'.join(( |
| 471 | r'\usepackage{heuristica}', |
| 472 | r'\usepackage[T1]{fontenc}', |
| 473 | r'\usepackage[utf8]{inputenc}' |
| 474 | )) |
| 475 | fig, ax = plt.subplots() |
| 476 | ax.text(0.1, 0.1, r"BHTem fi ffl 1234", usetex=True, fontsize=50) |
| 477 | ax.set_xticks([]) |
| 478 | ax.set_yticks([]) |
| 479 | |
| 480 | |
| 481 | @pytest.mark.skipif(not _has_tex_package("DejaVuSans"), |
nothing calls this directly
no test coverage detected
searching dependent graphs…