Skip to content

Commit 617b9cb

Browse files
committed
Describe difference between size and bbox
1 parent d3b974b commit 617b9cb

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

docs/deprecations.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ Use instead::
252252
left, top, right, bottom = draw.multiline_textbbox((0, 0), "Hello\nworld", font)
253253
width, height = right - left, bottom - top
254254

255+
Previously, the ``size`` methods returned a ``height`` that included the vertical
256+
offset of the text, while the new ``bbox`` methods explicitly distinguish this as a
257+
``top`` offset.
258+
255259
FreeTypeFont.getmask2 fill parameter
256260
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
257261

docs/releasenotes/9.2.0.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ Use instead::
8989
left, top, right, bottom = draw.multiline_textbbox((0, 0), "Hello\nworld", font)
9090
width, height = right - left, bottom - top
9191

92+
Previously, the ``size`` methods returned a ``height`` that included the vertical
93+
offset of the text, while the new ``bbox`` methods explicitly distinguish this as a
94+
``top`` offset.
95+
9296
API Additions
9397
=============
9498

0 commit comments

Comments
 (0)