Commit 4e264da
committed
TST: Fix pdf_use14corefonts by manually splitting lines
Since Helvetica may or may not be installed, the line height measurement
may differ between systems, so multi-line text as in this test may
change.
This test doesn't care about line heights, but is about using PDF's
"standard" fonts, so we'll just manually place the lines.
Unfortunately, since text placement still depends on the exact split of
ascent/descent, we still need to add some increased tolerance here.
This will be fixed when all backends correctly apply font metrics for
line height, and PDF can arrange to use our bundled core 14 font
metrics for that.1 parent 2f8c518 commit 4e264da
File tree
2 files changed
+9
-5
lines changed- lib/matplotlib/tests
- baseline_images/test_backend_pdf
2 files changed
+9
-5
lines changedBinary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
0 commit comments