Merge pull request #1475 from sosoyan/develop

Fix typo in "getbbox" attribute
This commit is contained in:
Jakub Trllo 2025-10-09 16:20:24 +02:00 committed by GitHub
commit 92d1d09b14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,7 +51,7 @@ def _drawtext(align, resolution, text, options):
elif align in (ffmpeg_burnins.TOP_RIGHT, ffmpeg_burnins.BOTTOM_RIGHT):
ifont = ImageFont.truetype(options["font"], options["font_size"])
if hasattr(ifont, "getbox"):
if hasattr(ifont, "getbbox"):
left, top, right, bottom = ifont.getbbox(text)
box_size = right - left, bottom - top
else: