From 6652bf02ed9f01fec9a0970c87123bfaacb364bd Mon Sep 17 00:00:00 2001 From: TT-392 Date: Fri, 31 Oct 2025 19:35:51 +0100 Subject: [PATCH] Fix bug in gen_image that would cause font size to be ignored --- gen_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen_image.py b/gen_image.py index bfa1450..0432107 100644 --- a/gen_image.py +++ b/gen_image.py @@ -33,7 +33,7 @@ def gen_image(height, lines, font): draw = ImageDraw.Draw(img) for line in lines: - pil_font = ImageFont.truetype(font["path"], size=text["size"]) + pil_font = ImageFont.truetype(font["path"], size=line["size"]) draw.text((0, line["pos"]), line["string"], font=pil_font, stroke_width = font["stroke_width_bold"] if line["bold"] else font["stroke_width"], stroke_fill="black")