()
| 150 | |
| 151 | |
| 152 | def test_find_noto(): |
| 153 | fp = FontProperties(family=["Noto Sans CJK SC", "Noto Sans CJK JP"]) |
| 154 | name = Path(findfont(fp)).name |
| 155 | if name not in ("NotoSansCJKsc-Regular.otf", "NotoSansCJK-Regular.ttc"): |
| 156 | pytest.skip(f"Noto Sans CJK SC font may be missing (found {name})") |
| 157 | |
| 158 | fig, ax = plt.subplots() |
| 159 | ax.text(0.5, 0.5, 'Hello, 你好', fontproperties=fp) |
| 160 | for fmt in ["raw", "svg", "pdf", "ps"]: |
| 161 | fig.savefig(BytesIO(), format=fmt) |
| 162 | |
| 163 | |
| 164 | def test_find_valid(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…