Updated spacing to be consistent between multiline methods

This commit is contained in:
Andrew Murray 2015-12-31 10:45:21 +11:00
parent 23a04f8529
commit 10099b41e1

View File

@ -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