Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed70f7a commit a71185cCopy full SHA for a71185c
lib/matplotlib/tests/test_font_manager.py
@@ -118,10 +118,10 @@ def test_find_ttc():
118
fig.savefig(BytesIO(), format=fmt)
119
120
121
-def test_find_otf():
122
- fp = FontProperties(family=["Noto Sans CJK SC"])
+def test_find_noto():
+ fp = FontProperties(family=["Noto Sans CJK SC", "Noto Sans CJK JP"])
123
name = Path(findfont(fp)).name
124
- if name != "NotoSansCJKsc-Regular.otf":
+ if name not in ("NotoSansCJKsc-Regular.otf", "NotoSansCJK-Regular.ttc"):
125
pytest.skip(f"Noto Sans CJK SC font may be missing (found {name})")
126
127
fig, ax = plt.subplots()
0 commit comments