Skip to content

Commit 55d0289

Browse files
committed
Added image to illustrate size vs bbox
1 parent 617b9cb commit 55d0289

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

docs/deprecations.rst

+6-2
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,12 @@ Use instead::
253253
width, height = right - left, bottom - top
254254

255255
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.
256+
offset of the text, while the new ``bbox`` methods distinguish this as a ``top``
257+
offset.
258+
259+
.. image:: ./example/size_vs_bbox.png
260+
:alt: Demonstration of size height vs bbox top and bottom
261+
:align: center
258262

259263
FreeTypeFont.getmask2 fill parameter
260264
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

docs/example/size_vs_bbox.png

12.6 KB
Loading

docs/releasenotes/9.2.0.rst

+6-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,12 @@ Use instead::
9090
width, height = right - left, bottom - top
9191

9292
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.
93+
offset of the text, while the new ``bbox`` methods distinguish this as a ``top``
94+
offset.
95+
96+
.. image:: ./example/size_vs_bbox.png
97+
:alt: Demonstration of size height vs bbox top and bottom
98+
:align: center
9599

96100
API Additions
97101
=============

0 commit comments

Comments
 (0)