Skip to content

Commit

Permalink
Merge pull request #6633 from radarhere/raqm
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Oct 10, 2022
2 parents 6724b09 + 3971675 commit 91e820f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/PIL/ImageFont.py
Expand Up @@ -955,6 +955,11 @@ def truetype(font=None, size=10, index=0, encoding="", layout_engine=None):
encoding of any text provided in subsequent operations.
:param layout_engine: Which layout engine to use, if available:
:data:`.ImageFont.Layout.BASIC` or :data:`.ImageFont.Layout.RAQM`.
If it is available, Raqm layout will be used by default.
Otherwise, basic layout will be used.
Raqm layout is recommended for all non-English text. If Raqm layout
is not required, basic layout will have better performance.
You can check support for Raqm layout using
:py:func:`PIL.features.check_feature` with ``feature="raqm"``.
Expand Down

0 comments on commit 91e820f

Please sign in to comment.