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 matplotlib#903 in svg.
1 parent dbc6ef2 commit 253d2be

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed
2.21 KB
Binary file not shown.
Binary file not shown.

lib/matplotlib/tests/test_ttconv.py

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)