Recommend raqm for non-English text

Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
This commit is contained in:
Andrew Murray 2022-10-10 09:11:41 +11:00 committed by GitHub
parent 74f47d8c1a
commit 397167569a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -948,8 +948,8 @@ def truetype(font=None, size=10, index=0, encoding="", layout_engine=None):
If it is available, Raqm layout will be used by default. If it is available, Raqm layout will be used by default.
Otherwise, basic layout will be used. Otherwise, basic layout will be used.
If complex text layout is not required, basic layout will have Raqm layout is recommended for all non-English text. If Raqm layout
better performance. is not required, basic layout will have better performance.
You can check support for Raqm layout using You can check support for Raqm layout using
:py:func:`PIL.features.check_feature` with ``feature="raqm"``. :py:func:`PIL.features.check_feature` with ``feature="raqm"``.