Skip to content

Commit 87de783

Browse files
committed
Replace simple code formatting with :py:meth: markup
1 parent 087e42f commit 87de783

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

docs/reference/ImageDraw.rst

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,15 @@ Methods
280280

281281
:param xy: Top left corner of the text.
282282
:param text: Text to be drawn. If it contains any newline characters,
283-
the text is passed on to ``multiline_text()``
283+
the text is passed on to
284+
:py:meth:`~PIL.ImageDraw.ImageDraw.multiline_text`
284285
:param fill: Color to use for the text.
285286
:param font: An :py:class:`~PIL.ImageFont.ImageFont` instance.
286-
:param spacing: If the text is passed on to ``multiline_text()``,
287+
:param spacing: If the text is passed on to
288+
:py:meth:`~PIL.ImageDraw.ImageDraw.multiline_text`,
287289
the number of pixels between lines.
288-
:param align: If the text is passed on to ``multiline_text()``,
290+
:param align: If the text is passed on to
291+
:py:meth:`~PIL.ImageDraw.ImageDraw.multiline_text`,
289292
"left", "center" or "right".
290293
:param direction: Direction of the text. It can be ``"rtl"`` (right to
291294
left), ``"ltr"`` (left to right) or ``"ttb"`` (top to bottom).
@@ -365,9 +368,10 @@ Methods
365368
Return the size of the given string, in pixels.
366369

367370
:param text: Text to be measured. If it contains any newline characters,
368-
the text is passed on to ``multiline_textsize()``
371+
the text is passed on to :py:meth:`~PIL.ImageDraw.ImageDraw.size`
369372
:param font: An :py:class:`~PIL.ImageFont.ImageFont` instance.
370-
:param spacing: If the text is passed on to ``multiline_textsize()``,
373+
:param spacing: If the text is passed on to
374+
:py:meth:`~PIL.ImageDraw.ImageDraw.multiline_textsize`,
371375
the number of pixels between lines.
372376
:param direction: Direction of the text. It can be ``"rtl"`` (right to
373377
left), ``"ltr"`` (left to right) or ``"ttb"`` (top to bottom).

0 commit comments

Comments
 (0)