mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-18 12:12:33 +03:00
ImageFont does not handle multiline text (#9000)
This commit is contained in:
parent
de053fbae0
commit
d7a45cc250
|
@ -18,6 +18,9 @@ OpenType fonts (as well as other font formats supported by the FreeType
|
||||||
library). For earlier versions, TrueType support is only available as part of
|
library). For earlier versions, TrueType support is only available as part of
|
||||||
the imToolkit package.
|
the imToolkit package.
|
||||||
|
|
||||||
|
When measuring text sizes, this module will not break at newline characters. For
|
||||||
|
multiline text, see the :py:mod:`~PIL.ImageDraw` module.
|
||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
To protect against potential DOS attacks when using arbitrary strings as
|
To protect against potential DOS attacks when using arbitrary strings as
|
||||||
text input, Pillow will raise a :py:exc:`ValueError` if the number of characters
|
text input, Pillow will raise a :py:exc:`ValueError` if the number of characters
|
||||||
|
|
Loading…
Reference in New Issue
Block a user