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

Skip to content

Commit 253d2be

Browse files
jkseppanmdboom
authored andcommitted
Add a test case for ttconv
If I enable svg, I see artifacts in the resulting file that look like there are similar bugs as #903 in svg.
1 parent dbc6ef2 commit 253d2be

4 files changed

Lines changed: 13 additions & 0 deletions

File tree

2.21 KB
Binary file not shown.
Binary file not shown.
12.9 KB
Loading
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import matplotlib
2+
from matplotlib.testing.decorators import image_comparison
3+
import matplotlib.pyplot as plt
4+
5+
@image_comparison(baseline_images=["truetype-conversion"],
6+
extensions=["pdf", "png"])
7+
def test_truetype_conversion():
8+
matplotlib.rcParams['pdf.fonttype'] = 3
9+
fig = plt.figure()
10+
ax = fig.add_subplot(111)
11+
ax.text(0, 0, "ABCDE", name="mpltest", fontsize=80)
12+
ax.set_xticks([])
13+
ax.set_yticks([])

0 commit comments

Comments
 (0)