Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 22e8b01

Browse filesBrowse files
committed
catch missing glyph errors
1 parent f5bc894 commit 22e8b01
Copy full SHA for 22e8b01

File tree

4 files changed

+4
-4
lines changed
Filter options

4 files changed

+4
-4
lines changed

‎lib/matplotlib/tests/test_backend_pdf.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_backend_pdf.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def test_glyphs_subset():
419419
assert subfont.get_num_glyphs() == nosubfont.get_num_glyphs()
420420

421421

422-
@pytest.mark.filterwarnings("ignore: Glyph .* missing from current font .*")
422+
@pytest.mark.filterwarnings("ignore: Glyph .* missing from current font ")
423423
@image_comparison(["multi_font_type3.pdf"], tol=4.6)
424424
def test_multi_font_type3():
425425
fp = fm.FontProperties(family=["WenQuanYi Zen Hei"])

‎lib/matplotlib/tests/test_backend_ps.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_backend_ps.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def test_multi_font_type3():
331331
fig.text(0.15, 0.475, "There are 几个汉字 in between!")
332332

333333

334-
@pytest.mark.filterwarnings("ignore: Glyph .* missing from current font .*")
334+
@pytest.mark.filterwarnings("ignore: Glyph .* missing from current font ")
335335
@image_comparison(["multi_font_type42.eps"], tol=1.6)
336336
def test_multi_font_type42():
337337
fp = fm.FontProperties(family=["WenQuanYi Zen Hei"])

‎lib/matplotlib/tests/test_backend_svg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_backend_svg.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ def test_svg_escape():
551551
assert '<'"&>"' in buf
552552

553553

554-
@pytest.mark.filterwarnings("ignore: Glyph .* missing from current font .*")
554+
@pytest.mark.filterwarnings("ignore: Glyph .* missing from current font ")
555555
@pytest.mark.parametrize("font_str", [
556556
"'DejaVu Sans', 'WenQuanYi Zen Hei', 'Arial', sans-serif",
557557
"'DejaVu Serif', 'WenQuanYi Zen Hei', 'Times New Roman', serif",

‎lib/matplotlib/tests/test_ft2font.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_ft2font.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_font_fallback_chinese(fig_test, fig_ref, family_name, file_name):
8282

8383
def test_fallback_cascade_missing(recwarn):
8484

85-
font_list = ['Times New Roman', 'DejaVu Sans']
85+
font_list = ['Arial', 'DejaVu Sans']
8686
fig = plt.figure()
8787
fig.text(.5, .5, "Hello 🙃 World!", family=font_list)
8888
fig.canvas.draw()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.