Merge pull request #1624 from radarhere/spacing

Updated spacing to be consistent between multiline methods
This commit is contained in:
Hugo 2015-12-31 15:18:01 +02:00
commit 53b45c578a

View File

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