File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ def test_glyphs_subset():
387
387
assert subfont .get_num_glyphs () == nosubfont .get_num_glyphs ()
388
388
389
389
390
- @image_comparison (["multi_font_type3.pdf" ])
390
+ @image_comparison (["multi_font_type3.pdf" ], tol = 4.6 )
391
391
def test_multi_font_type3 ():
392
392
fp = fm .FontProperties (family = ["WenQuanYi Zen Hei" ])
393
393
if Path (fm .findfont (fp )).name != "wqy-zenhei.ttc" :
@@ -400,7 +400,7 @@ def test_multi_font_type3():
400
400
fig .text (0.15 , 0.475 , "There are 几个汉字 in between!" )
401
401
402
402
403
- @image_comparison (["multi_font_type42.pdf" ])
403
+ @image_comparison (["multi_font_type42.pdf" ], tol = 2.2 )
404
404
def test_multi_font_type42 ():
405
405
fp = fm .FontProperties (family = ["WenQuanYi Zen Hei" ])
406
406
if Path (fm .findfont (fp )).name != "wqy-zenhei.ttc" :
Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ def test_no_duplicate_definition():
274
274
assert max (Counter (wds ).values ()) == 1
275
275
276
276
277
- @image_comparison (["multi_font_type3.eps" ])
277
+ @image_comparison (["multi_font_type3.eps" ], tol = 0.51 )
278
278
def test_multi_font_type3 ():
279
279
fp = fm .FontProperties (family = ["WenQuanYi Zen Hei" ])
280
280
if Path (fm .findfont (fp )).name != "wqy-zenhei.ttc" :
@@ -287,7 +287,7 @@ def test_multi_font_type3():
287
287
fig .text (0.15 , 0.475 , "There are 几个汉字 in between!" )
288
288
289
289
290
- @image_comparison (["multi_font_type42.eps" ])
290
+ @image_comparison (["multi_font_type42.eps" ], tol = 1.6 )
291
291
def test_multi_font_type42 ():
292
292
fp = fm .FontProperties (family = ["WenQuanYi Zen Hei" ])
293
293
if Path (fm .findfont (fp )).name != "wqy-zenhei.ttc" :
Original file line number Diff line number Diff line change @@ -470,7 +470,7 @@ def test_svg_metadata():
470
470
assert values == metadata ['Keywords' ]
471
471
472
472
473
- @image_comparison (["multi_font_aspath.svg" ])
473
+ @image_comparison (["multi_font_aspath.svg" ], tol = 1.8 )
474
474
def test_multi_font_type3 ():
475
475
fp = fm .FontProperties (family = ["WenQuanYi Zen Hei" ])
476
476
if Path (fm .findfont (fp )).name != "wqy-zenhei.ttc" :
You can’t perform that action at this time.
0 commit comments