Use target

This commit is contained in:
Andrew Murray 2022-09-06 06:43:52 +10:00
parent 780de80e5c
commit 209ec9da47
3 changed files with 9 additions and 14 deletions

View File

@ -178,6 +178,8 @@ Image.coerce_e
This undocumented method has been deprecated and will be removed in Pillow 10
(2023-07-01).
.. _Font size and offset methods:
Font size and offset methods
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -443,8 +443,7 @@ Methods
.. deprecated:: 9.2.0
See https://pillow.readthedocs.io/en/stable/releasenotes/9.2.0.html#font-size-and-offset-methods
for more information.
See :ref:`deprecations <Font size and offset methods>` for more information.
Use :py:meth:`textlength()` to measure the offset of following text with
1/64 pixel precision.
@ -498,8 +497,7 @@ Methods
.. deprecated:: 9.2.0
See https://pillow.readthedocs.io/en/stable/releasenotes/9.2.0.html#font-size-and-offset-methods
for more information.
See :ref:`deprecations <Font size and offset methods>` for more information.
Use :py:meth:`.multiline_textbbox` instead.

View File

@ -139,8 +139,7 @@ class ImageFont:
"""
.. deprecated:: 9.2.0
For more information, see
https://pillow.readthedocs.io/en/stable/releasenotes/9.2.0.html#deprecations.
See :ref:`deprecations <Font size and offset methods>` for more information.
Use :py:meth:`.getbbox` or :py:meth:`.getlength` instead.
@ -431,8 +430,7 @@ class FreeTypeFont:
"""
.. deprecated:: 9.2.0
For more information, see
https://pillow.readthedocs.io/en/stable/releasenotes/9.2.0.html#deprecations.
See :ref:`deprecations <Font size and offset methods>` for more information.
Use :py:meth:`getlength()` to measure the offset of following text with
1/64 pixel precision.
@ -504,8 +502,7 @@ class FreeTypeFont:
"""
.. deprecated:: 9.2.0
For more information, see
https://pillow.readthedocs.io/en/stable/releasenotes/9.2.0.html#deprecations.
See :ref:`deprecations <Font size and offset methods>` for more information.
Use :py:meth:`.ImageDraw.multiline_textbbox` instead.
@ -566,8 +563,7 @@ class FreeTypeFont:
"""
.. deprecated:: 9.2.0
For more information, see
https://pillow.readthedocs.io/en/stable/releasenotes/9.2.0.html#deprecations.
See :ref:`deprecations <Font size and offset methods>` for more information.
Use :py:meth:`.getbbox` instead.
@ -863,8 +859,7 @@ class TransposedFont:
"""
.. deprecated:: 9.2.0
For more information, see
https://pillow.readthedocs.io/en/stable/releasenotes/9.2.0.html#deprecations.
See :ref:`deprecations <Font size and offset methods>` for more information.
Use :py:meth:`.getbbox` or :py:meth:`.getlength` instead.
"""