Skip to content

Commit d7a45cc

Browse files
authored
ImageFont does not handle multiline text (#9000)
1 parent de053fb commit d7a45cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/reference/ImageFont.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ OpenType fonts (as well as other font formats supported by the FreeType
1818
library). For earlier versions, TrueType support is only available as part of
1919
the imToolkit package.
2020

21+
When measuring text sizes, this module will not break at newline characters. For
22+
multiline text, see the :py:mod:`~PIL.ImageDraw` module.
23+
2124
.. warning::
2225
To protect against potential DOS attacks when using arbitrary strings as
2326
text input, Pillow will raise a :py:exc:`ValueError` if the number of characters

0 commit comments

Comments
 (0)