From 40a03986575e1a6a6c07852ed02b1c9201905895 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sun, 1 Jul 2018 20:55:53 +0300 Subject: [PATCH] Add spacing --- Tests/test_imagefont.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/test_imagefont.py b/Tests/test_imagefont.py index 3968b53c7..a5d637432 100644 --- a/Tests/test_imagefont.py +++ b/Tests/test_imagefont.py @@ -230,10 +230,12 @@ class TestImageFont(PillowTestCase): # Test that textsize() correctly connects to multiline_textsize() self.assertEqual(draw.textsize(TEST_TEXT, font=ttf), draw.multiline_textsize(TEST_TEXT, font=ttf)) + # Test that multiline_textsize corresponds to ImageFont.textsize() # for single line text self.assertEqual(ttf.getsize('A'), draw.multiline_textsize('A', font=ttf)) + # Test that textsize() can pass on additional arguments # to multiline_textsize() draw.textsize(TEST_TEXT, font=ttf, spacing=4)