Fix bug in gen_image that would cause font size to be ignored
This commit is contained in:
parent
e41695e256
commit
6652bf02ed
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue