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

Skip to content

Commit 63af5a2

Browse files
committed
Add test case to check if kerning is added to pdf
1 parent 2e248f5 commit 63af5a2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Binary file not shown.

lib/matplotlib/tests/test_text.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,3 +714,9 @@ 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'], style='mpl20')
720+
def test_pdf_kerning():
721+
plt.figure()
722+
plt.figtext(0.1, 0.5, "ATATATATATATATATATA", size=30)

0 commit comments

Comments
 (0)