diff --git a/PIL/ImageDraw.py b/PIL/ImageDraw.py index 161cce701..f37b41557 100644 --- a/PIL/ImageDraw.py +++ b/PIL/ImageDraw.py @@ -267,7 +267,7 @@ class ImageDraw(object): self.draw.draw_bitmap(xy, mask, ink) def multiline_text(self, xy, text, fill=None, font=None, anchor=None, - spacing=0, align="left"): + spacing=4, align="left"): widths = [] max_width = 0 lines = self._multiline_split(text) diff --git a/Tests/images/multiline_text.png b/Tests/images/multiline_text.png index c9b931270..ff1308c5e 100644 Binary files a/Tests/images/multiline_text.png and b/Tests/images/multiline_text.png differ diff --git a/Tests/images/multiline_text_center.png b/Tests/images/multiline_text_center.png index 142e93519..f44d0783a 100644 Binary files a/Tests/images/multiline_text_center.png and b/Tests/images/multiline_text_center.png differ diff --git a/Tests/images/multiline_text_right.png b/Tests/images/multiline_text_right.png index d263603f7..1b32d9167 100644 Binary files a/Tests/images/multiline_text_right.png and b/Tests/images/multiline_text_right.png differ diff --git a/Tests/test_imagefont.py b/Tests/test_imagefont.py index 47548bdf0..dd2234467 100644 --- a/Tests/test_imagefont.py +++ b/Tests/test_imagefont.py @@ -130,7 +130,7 @@ try: im = Image.new(mode='RGB', size=(300, 100)) draw = ImageDraw.Draw(im) ttf = ImageFont.truetype(FONT_PATH, FONT_SIZE) - line_spacing = draw.textsize('A', font=ttf)[1] + line_spacing = draw.textsize('A', font=ttf)[1] + 4 lines = TEST_TEXT.split("\n") y = 0 for line in lines: