mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
Merge pull request #21 from nulano/font
Fix documentation link to PIL.ImageFont.Layout
This commit is contained in:
commit
ea680d98a5
|
@ -70,21 +70,20 @@ Methods
|
||||||
Constants
|
Constants
|
||||||
---------
|
---------
|
||||||
|
|
||||||
.. data:: PIL.ImageFont.Layout.BASIC
|
.. class:: Layout
|
||||||
|
|
||||||
Use basic text layout for TrueType font.
|
.. py:attribute:: BASIC
|
||||||
Advanced features such as text direction are not supported.
|
|
||||||
|
|
||||||
.. data:: PIL.ImageFont.Layout.RAQM
|
Use basic text layout for TrueType font.
|
||||||
|
Advanced features such as text direction are not supported.
|
||||||
|
|
||||||
Use Raqm text layout for TrueType font.
|
.. py:attribute:: RAQM
|
||||||
Advanced features are supported.
|
|
||||||
|
|
||||||
Requires Raqm, you can check support using
|
Use Raqm text layout for TrueType font.
|
||||||
:py:func:`PIL.features.check_feature` with ``feature="raqm"``.
|
Advanced features are supported.
|
||||||
|
|
||||||
Constants
|
Requires Raqm, you can check support using
|
||||||
---------
|
:py:func:`PIL.features.check_feature` with ``feature="raqm"``.
|
||||||
|
|
||||||
.. data:: MAX_STRING_LENGTH
|
.. data:: MAX_STRING_LENGTH
|
||||||
|
|
||||||
|
|
|
@ -787,7 +787,7 @@ def truetype(font=None, size=10, index=0, encoding="", layout_engine=None):
|
||||||
This specifies the character set to use. It does not alter the
|
This specifies the character set to use. It does not alter the
|
||||||
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`.
|
:attr:`.ImageFont.Layout.BASIC` or :attr:`.ImageFont.Layout.RAQM`.
|
||||||
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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user