mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Updated spacing to be consistent between multiline methods
This commit is contained in:
parent
23a04f8529
commit
10099b41e1
|
@ -296,7 +296,7 @@ class ImageDraw(object):
|
||||||
font = self.getfont()
|
font = self.getfont()
|
||||||
return font.getsize(text)
|
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
|
max_width = 0
|
||||||
lines = self._multiline_split(text)
|
lines = self._multiline_split(text)
|
||||||
line_spacing = self.textsize('A', font=font)[1] + spacing
|
line_spacing = self.textsize('A', font=font)[1] + spacing
|
||||||
|
|
Loading…
Reference in New Issue
Block a user