.trump: make image size be... better

This commit is contained in:
Ave Ozkal 2019-12-19 16:43:37 +03:00
parent e53a6341a5
commit 83b18d7a0d
No known key found for this signature in database
GPG key ID: 398DD7BD03276F6D

View file

@ -98,7 +98,7 @@ class ImageManip(Cog):
# Wrap into lines # Wrap into lines
lines = textwrap.wrap(headline, width=font_wrap_count) lines = textwrap.wrap(headline, width=font_wrap_count)
# not great, 4am be like # not great, 4am be like
image_height = (len(lines) + 2) * vertpos image_height = (len(lines) + 3) * vertpos
# Load font # Load font
f = PIL.ImageFont.truetype(font_path, font_size) f = PIL.ImageFont.truetype(font_path, font_size)