This commit is contained in:
yasirarism 2023-07-12 13:33:01 +07:00 committed by GitHub
parent 909e6174da
commit 41d4f24504
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ async def handwrite(client, message):
font = ImageFont.truetype("assets/assfont.ttf", 30) font = ImageFont.truetype("assets/assfont.ttf", 30)
x, y = 150, 140 x, y = 150, 140
lines = text_set(txt) lines = text_set(txt)
line_height = font.getbbox("hg")[1] line_height = font.getbbox("hg")[3]
for line in lines: for line in lines:
draw.text((x, y), line, fill=(1, 22, 55), font=font) draw.text((x, y), line, fill=(1, 22, 55), font=font)
y = y + line_height - 5 y = y + line_height - 5