mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 10:16:17 +03:00
Document the default layout engine
This commit is contained in:
parent
d0ff4b5e10
commit
ba78f5d0da
|
@ -945,6 +945,8 @@ def truetype(font=None, size=10, index=0, encoding="", layout_engine=None):
|
||||||
encoding of any text provided in subsequent operations.
|
encoding of any text provided in subsequent operations.
|
||||||
:param layout_engine: Which layout engine to use, if available:
|
:param layout_engine: Which layout engine to use, if available:
|
||||||
:data:`.ImageFont.Layout.BASIC` or :data:`.ImageFont.Layout.RAQM`.
|
: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.
|
||||||
|
|
||||||
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"``.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user