diff --git a/misskaty/plugins/fun.py b/misskaty/plugins/fun.py index 4c1b65b4..7f7469ac 100644 --- a/misskaty/plugins/fun.py +++ b/misskaty/plugins/fun.py @@ -28,7 +28,7 @@ async def draw_meme_text(image_path, text): current_h, pad = 10, 5 if upper_text: for u_text in textwrap.wrap(upper_text, width=15): - u_width, u_height = draw.textbbox(u_text, font=m_font) + u_width, u_height = draw.textbbox(text=u_text, font=m_font) draw.text( xy=(((i_width - u_width) / 2) - 1, int((current_h / 640) * i_width)), @@ -72,7 +72,7 @@ async def draw_meme_text(image_path, text): current_h += u_height + pad if lower_text: for l_text in textwrap.wrap(lower_text, width=15): - u_width, u_height = draw.textbbox(l_text, font=m_font) + u_width, u_height = draw.textbbox(text=l_text, font=m_font) draw.text( xy=(