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")