mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 13:40:54 +03:00
add replacement for getsize_multiline to deprecation warning
This commit is contained in:
parent
303ec1a95e
commit
838b1f1598
|
@ -532,7 +532,7 @@ class FreeTypeFont:
|
||||||
|
|
||||||
:return: (width, height)
|
:return: (width, height)
|
||||||
"""
|
"""
|
||||||
deprecate("getsize_multiline", 10)
|
deprecate("getsize_multiline", 10, "ImageDraw.multiline_textbbox")
|
||||||
max_width = 0
|
max_width = 0
|
||||||
lines = self._multiline_split(text)
|
lines = self._multiline_split(text)
|
||||||
line_spacing = (
|
line_spacing = (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user