From f19a354c5dac40e64db044ae3714208f8bfe0f0b Mon Sep 17 00:00:00 2001 From: quqiOnfree Date: Tue, 2 Sep 2025 22:53:56 +0800 Subject: [PATCH] fix the font size which was not defined --- create_image.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/create_image.py b/create_image.py index 4f0826c..656f014 100644 --- a/create_image.py +++ b/create_image.py @@ -69,8 +69,7 @@ def create_image(background: bytes, if (len(text_list) + len(motd_list)) * 20 + 20 > height: height = (len(text_list) + len(motd_list)) * 20 + 20 - else: - font_size = height // 12 + font_size = height // 12 if font_size * 20 > width - width // 2.5: font_size = (width - width // 2.5) // 20