Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a71185c

Browse files
committed
The Ubuntu version seems to be ttc
Also the family name is detected as Noto Sans CJK JP and not Noto Sans CJK SC
1 parent ed70f7a commit a71185c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/tests/test_font_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ def test_find_ttc():
118118
fig.savefig(BytesIO(), format=fmt)
119119

120120

121-
def test_find_otf():
122-
fp = FontProperties(family=["Noto Sans CJK SC"])
121+
def test_find_noto():
122+
fp = FontProperties(family=["Noto Sans CJK SC", "Noto Sans CJK JP"])
123123
name = Path(findfont(fp)).name
124-
if name != "NotoSansCJKsc-Regular.otf":
124+
if name not in ("NotoSansCJKsc-Regular.otf", "NotoSansCJK-Regular.ttc"):
125125
pytest.skip(f"Noto Sans CJK SC font may be missing (found {name})")
126126

127127
fig, ax = plt.subplots()

0 commit comments

Comments
 (0)