larger font size
This commit is contained in:
parent
8416412993
commit
65565e86b0
1 changed files with 3 additions and 2 deletions
|
|
@ -43,10 +43,11 @@ class InkyScreen(commands.Cog):
|
|||
y = 0
|
||||
for line in text:
|
||||
if y <= width:
|
||||
draw.text((x, y), line, self.display.BLACK)
|
||||
y += height_diff
|
||||
draw.text((x, y), line, self.display.YELLOW, size=18)
|
||||
y -= height_diff
|
||||
else:
|
||||
self.bot.logger.warning("InkyScreen: Text too long to fit on image.")
|
||||
image = image.rotate()
|
||||
self.display.set_image(image)
|
||||
self.display.show()
|
||||
self.bot.logger.info("InkyScreen: Text successfully written to image.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue