mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Merge pull request #5007 from radarhere/text
Clarified that "text" must be a string
This commit is contained in:
commit
8dfc0364fe
|
@ -296,7 +296,7 @@ Methods
|
||||||
Draws the string at the given position.
|
Draws the string at the given position.
|
||||||
|
|
||||||
:param xy: The anchor coordinates of the text.
|
:param xy: The anchor coordinates of the text.
|
||||||
:param text: Text to be drawn. If it contains any newline characters,
|
:param text: String to be drawn. If it contains any newline characters,
|
||||||
the text is passed on to
|
the text is passed on to
|
||||||
:py:meth:`~PIL.ImageDraw.ImageDraw.multiline_text`.
|
:py:meth:`~PIL.ImageDraw.ImageDraw.multiline_text`.
|
||||||
:param fill: Color to use for the text.
|
:param fill: Color to use for the text.
|
||||||
|
@ -362,7 +362,7 @@ Methods
|
||||||
Draws the string at the given position.
|
Draws the string at the given position.
|
||||||
|
|
||||||
:param xy: The anchor coordinates of the text.
|
:param xy: The anchor coordinates of the text.
|
||||||
:param text: Text to be drawn.
|
:param text: String to be drawn.
|
||||||
:param fill: Color to use for the text.
|
:param fill: Color to use for the text.
|
||||||
:param font: An :py:class:`~PIL.ImageFont.ImageFont` instance.
|
:param font: An :py:class:`~PIL.ImageFont.ImageFont` instance.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user