From 838b1f1598f5f7c110874a5341dd01aba611ddd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondrej=20Baranovi=C4=8D?= Date: Thu, 30 Jun 2022 14:22:07 +0200 Subject: [PATCH] add replacement for getsize_multiline to deprecation warning --- src/PIL/ImageFont.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/ImageFont.py b/src/PIL/ImageFont.py index 8a55d517f..0bd92749d 100644 --- a/src/PIL/ImageFont.py +++ b/src/PIL/ImageFont.py @@ -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 = (