From 3f349a9459811f626048403d20303f79b7f31082 Mon Sep 17 00:00:00 2001 From: electro199 Date: Sun, 13 Nov 2022 01:03:46 -0800 Subject: [PATCH] typo fixed --- utils/imagenarator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/imagenarator.py b/utils/imagenarator.py index 49a1e50..276c8d5 100644 --- a/utils/imagenarator.py +++ b/utils/imagenarator.py @@ -32,15 +32,15 @@ def imagemaker( theme, title=reddit_obj['thread_title'] texts=reddit_obj['thread_post'] id = re.sub(r"[^\w\s-]", "", reddit_obj["thread_id"]) + tfont=ImageFont.truetype("fonts\\Roboto-Bold.ttf",27) # for title font=ImageFont.truetype("fonts\\Roboto-Regular.ttf", 20)# for despcription|comments size=(500,176) - image =Image.new('RGBA',size,theme) draw = ImageDraw.Draw(image) - # for titlw + # for title if len(title)>40: draw_multiple_line_text(image, title,tfont,txtclr ,padding,wrap=30) else: