larger font size

This commit is contained in:
phixxy 2024-02-02 23:09:40 -08:00
parent 8416412993
commit 65565e86b0

View file

@ -43,10 +43,11 @@ class InkyScreen(commands.Cog):
y = 0 y = 0
for line in text: for line in text:
if y <= width: if y <= width:
draw.text((x, y), line, self.display.BLACK) draw.text((x, y), line, self.display.YELLOW, size=18)
y += height_diff y -= height_diff
else: else:
self.bot.logger.warning("InkyScreen: Text too long to fit on image.") self.bot.logger.warning("InkyScreen: Text too long to fit on image.")
image = image.rotate()
self.display.set_image(image) self.display.set_image(image)
self.display.show() self.display.show()
self.bot.logger.info("InkyScreen: Text successfully written to image.") self.bot.logger.info("InkyScreen: Text successfully written to image.")