add replacement for getsize_multiline to deprecation warning

This commit is contained in:
Ondrej Baranovič 2022-06-30 14:22:07 +02:00 committed by GitHub
parent 303ec1a95e
commit 838b1f1598
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -532,7 +532,7 @@ class FreeTypeFont:
:return: (width, height)
"""
deprecate("getsize_multiline", 10)
deprecate("getsize_multiline", 10, "ImageDraw.multiline_textbbox")
max_width = 0
lines = self._multiline_split(text)
line_spacing = (