Skip to content
Prev Previous commit
Next Next commit
TST: extend ft2font tests to pdf, ps, and svg
  • Loading branch information
tacaswell committed Aug 9, 2022
commit 0173a2ba258e945a58e9d13b13950f85e3f99ba8
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_ft2font.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_fallback_smoke():
[("WenQuanYi Zen Hei", "wqy-zenhei.ttc"),
("Noto Sans CJK JP", "NotoSansCJK-Regular.ttc")]
)
@check_figures_equal(extensions=["png"])
@check_figures_equal(extensions=["png", "pdf", "eps", "svg"])
def test_font_fallback_chinese(fig_test, fig_ref, family_name, file_name):
fp = fm.FontProperties(family=[family_name])
if Path(fm.findfont(fp)).name != file_name:
Expand Down