Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/reference/ImageDraw.rst
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,15 @@ Methods

Draw a shape.

.. note::

When libraqm is available, Pillow performs complex text layout, including
shaping and bidirectional text handling, itself. Do not pre-process text
with ``arabic_reshaper`` and ``python-bidi`` in this case, as applying the
same processing twice produces incorrect results. Use
:py:func:`PIL.features.check` with ``"raqm"`` to determine whether
libraqm is available before deciding whether pre-processing is needed.

.. py:method:: ImageDraw.text(xy, text, fill=None, font=None, anchor=None, spacing=4, align="left", direction=None, features=None, language=None, stroke_width=0, stroke_fill=None, embedded_color=False, font_size=None)

Draws the string at the given position.
Expand Down