mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-25 00:34:14 +03:00
Describe difference between size and bbox
This commit is contained in:
parent
d3b974b786
commit
617b9cbc00
|
@ -252,6 +252,10 @@ Use instead::
|
||||||
left, top, right, bottom = draw.multiline_textbbox((0, 0), "Hello\nworld", font)
|
left, top, right, bottom = draw.multiline_textbbox((0, 0), "Hello\nworld", font)
|
||||||
width, height = right - left, bottom - top
|
width, height = right - left, bottom - top
|
||||||
|
|
||||||
|
Previously, the ``size`` methods returned a ``height`` that included the vertical
|
||||||
|
offset of the text, while the new ``bbox`` methods explicitly distinguish this as a
|
||||||
|
``top`` offset.
|
||||||
|
|
||||||
FreeTypeFont.getmask2 fill parameter
|
FreeTypeFont.getmask2 fill parameter
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|
|
@ -89,6 +89,10 @@ Use instead::
|
||||||
left, top, right, bottom = draw.multiline_textbbox((0, 0), "Hello\nworld", font)
|
left, top, right, bottom = draw.multiline_textbbox((0, 0), "Hello\nworld", font)
|
||||||
width, height = right - left, bottom - top
|
width, height = right - left, bottom - top
|
||||||
|
|
||||||
|
Previously, the ``size`` methods returned a ``height`` that included the vertical
|
||||||
|
offset of the text, while the new ``bbox`` methods explicitly distinguish this as a
|
||||||
|
``top`` offset.
|
||||||
|
|
||||||
API Additions
|
API Additions
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user