From e4a85bee762699d6872354174a5e2523b33d6dcd Mon Sep 17 00:00:00 2001 From: quqiOnfree Date: Wed, 3 Sep 2025 00:40:21 +0800 Subject: [PATCH] fix motd --- create_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_image.py b/create_image.py index 005f118..dd1546d 100644 --- a/create_image.py +++ b/create_image.py @@ -42,7 +42,7 @@ def draw_motd_text_with_shadow(image: Image.Image, posy: int | float, font: ImageFont.ImageFont | ImageFont.FreeTypeFont): draw = ImageDraw.Draw(image) - motd_list = foramt_motd(text.strip(), draw) + motd_list = foramt_motd(text.strip(), draw, font) for pos, color, text in motd_list: draw.text((posx + pos + 1, posy + 1), text, font=font, fill='black') draw.text((posx + pos, posy), text, font=font, fill=getrgb(color))