From 656ed147b59112d44650e6f5072c88fdf6bc3cbb Mon Sep 17 00:00:00 2001 From: Borzutzki Robert Date: Mon, 25 Nov 2024 23:01:10 +0100 Subject: [PATCH] change font size --- examples/date-diff.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/date-diff.py b/examples/date-diff.py index db6da0e..607f208 100644 --- a/examples/date-diff.py +++ b/examples/date-diff.py @@ -65,10 +65,10 @@ def init_monitor(): # Drawing on the Horizontal image logging.info("1.Drawing on the Horizontal image...") drawblack.text((4, 0), 'Lieber Reinhold, in nur noch: ' + str(duration.days) + " Tagen", font = font12, fill = 0) - drawblack.text((4, 16), 'Oder ' + str(round(duration.days / 7,2)) + " Wochen", font = font16, fill = 0) - drawblack.text((4, 32), 'Oder ' + str(round(duration.days / 30,2)) + " Monate", font = font16, fill = 0) - drawblack.text((4, 48), 'Oder ' + str(duration.days * 24) + " Stunden", font = font16, fill = 0) - drawblack.text((4, 64), 'Oder ' + str(round(duration.days / 365,2)) + " Jahre", font = font16, fill = 0) + drawblack.text((4, 16), 'Oder ' + str(round(duration.days / 7,2)) + " Wochen", font = font14, fill = 0) + drawblack.text((4, 32), 'Oder ' + str(round(duration.days / 30,2)) + " Monate", font = font14, fill = 0) + drawblack.text((4, 48), 'Oder ' + str(duration.days * 24) + " Stunden", font = font14, fill = 0) + drawblack.text((4, 64), 'Oder ' + str(round(duration.days / 365,2)) + " Jahre", font = font14, fill = 0) drawblack.text((4, 80), "Bis du am " + str(ruhestand.strftime("%A %B %d.%m.%Y")), font = font14, fill = 0) epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRYimage))