png: character size adjustment
This commit is contained in:
parent
909b6b8440
commit
640c564c9d
|
|
@ -172,6 +172,7 @@ class ASCII(callbacks.Plugin):
|
|||
maxWidth, height = max(lineLens), len(lineLens)
|
||||
font = ImageFont.truetype(defaultFont, size)
|
||||
fontX, fontY = font.getsize(' ')
|
||||
fontX -= 1
|
||||
fontY += 3
|
||||
imageX, imageY = maxWidth * fontX, height * fontY
|
||||
image = Image.new('RGB', (imageX, imageY), self.rgbColors[defaultBg])
|
||||
|
|
|
|||
Loading…
Reference in New Issue