mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Merge pull request #1624 from radarhere/spacing
Updated spacing to be consistent between multiline methods
This commit is contained in:
commit
53b45c578a
|
@ -296,7 +296,7 @@ class ImageDraw(object):
|
|||
font = self.getfont()
|
||||
return font.getsize(text)
|
||||
|
||||
def multiline_textsize(self, text, font=None, spacing=0):
|
||||
def multiline_textsize(self, text, font=None, spacing=4):
|
||||
max_width = 0
|
||||
lines = self._multiline_split(text)
|
||||
line_spacing = self.textsize('A', font=font)[1] + spacing
|
||||
|
|
Loading…
Reference in New Issue
Block a user