fix the font size which was not defined

This commit is contained in:
quqiOnfree 2025-09-02 22:53:56 +08:00
parent 1477718bca
commit f19a354c5d

View file

@ -69,7 +69,6 @@ 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
if font_size * 20 > width - width // 2.5:
font_size = (width - width // 2.5) // 20