mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 16:24:11 +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)
|
||||
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
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
@ -89,6 +89,10 @@ Use instead::
|
|||
left, top, right, bottom = draw.multiline_textbbox((0, 0), "Hello\nworld", font)
|
||||
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
|
||||
=============
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user