We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 912a33f commit d3b974bCopy full SHA for d3b974b
2 files changed
docs/deprecations.rst
@@ -232,10 +232,10 @@ Previous code::
232
233
im = Image.new("RGB", (100, 100))
234
draw = ImageDraw.Draw(im)
235
- width, height = draw.textsize("Hello world")
+ width, height = draw.textsize("Hello world", font)
236
237
width, height = font.getsize_multiline("Hello\nworld")
238
- width, height = draw.multiline_textsize("Hello\nworld")
+ width, height = draw.multiline_textsize("Hello\nworld", font)
239
240
Use instead::
241
@@ -247,9 +247,9 @@ Use instead::
247
248
249
250
- width = draw.textlength("Hello world")
+ width = draw.textlength("Hello world", font)
251
252
- left, top, right, bottom = draw.multiline_textbbox((0, 0), "Hello\nworld")
+ left, top, right, bottom = draw.multiline_textbbox((0, 0), "Hello\nworld", font)
253
width, height = right - left, bottom - top
254
255
FreeTypeFont.getmask2 fill parameter
docs/releasenotes/9.2.0.rst
@@ -69,10 +69,10 @@ Previous code::
69
70
71
72
73
74
75
76
77
78
@@ -84,9 +84,9 @@ Use instead::
84
85
86
87
88
89
90
91
92
API Additions
0 commit comments