You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/deprecations.rst
+24
Original file line number
Diff line number
Diff line change
@@ -260,6 +260,30 @@ offset.
260
260
:alt:In bbox methods, top measures the vertical distance above the text, while bottom measures that plus the vertical distance of the text itself. In size methods, height also measures the vertical distance above the text plus the vertical distance of the text itself.
261
261
:align:center
262
262
263
+
If you are using these methods for aligning text, consider using :ref:`text-anchors` instead
264
+
which avoid issues that can occur with non-English text or unusual fonts.
265
+
For example, instead of the following code::
266
+
267
+
from PIL import Image, ImageDraw, ImageFont
268
+
269
+
font = ImageFont.truetype("Tests/fonts/FreeMono.ttf")
Copy file name to clipboardexpand all lines: docs/releasenotes/9.2.0.rst
+24
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,30 @@ offset.
97
97
:alt:In bbox methods, top measures the vertical distance above the text, while bottom measures that plus the vertical distance of the text itself. In size methods, height also measures the vertical distance above the text plus the vertical distance of the text itself.
98
98
:align:center
99
99
100
+
If you are using these methods for aligning text, consider using :ref:`text-anchors` instead
101
+
which avoid issues that can occur with non-English text or unusual fonts.
102
+
For example, instead of the following code::
103
+
104
+
from PIL import Image, ImageDraw, ImageFont
105
+
106
+
font = ImageFont.truetype("Tests/fonts/FreeMono.ttf")
0 commit comments