From 640c564c9d42754ca5ffbf7f4f7c6cfeaa52eda2 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Tue, 14 May 2019 02:29:27 -0400 Subject: [PATCH] png: character size adjustment --- ASCII/plugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ASCII/plugin.py b/ASCII/plugin.py index 10bfc4b..a8df438 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -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])