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

Skip to content

Commit 08f03c1

Browse files
committed
Add test case to check if kerning is added to pdf
1 parent f4115cb commit 08f03c1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Binary file not shown.

lib/matplotlib/tests/test_text.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,3 +714,10 @@ def test_update_mutate_input():
714714
def test_invalid_color():
715715
with pytest.raises(ValueError):
716716
plt.figtext(.5, .5, "foo", c="foobar")
717+
718+
719+
@image_comparison(['text_pdf_kerning.pdf'])
720+
def test_pdf_kerning():
721+
plt.figure()
722+
ax = plt.subplot(1, 1, 1)
723+
ax.text(0.1, 0.5, "ATATATATATATATATATA", size=30)

0 commit comments

Comments
 (0)