Explain that encoding does not alter text

This commit is contained in:
Andrew Murray 2019-07-16 19:28:54 +10:00
parent 0427170db5
commit c76369ce87

View File

@ -529,7 +529,8 @@ def truetype(font=None, size=10, index=0, encoding="", layout_engine=None):
:param size: The requested size, in points. :param size: The requested size, in points.
:param index: Which font face to load (default is first available face). :param index: Which font face to load (default is first available face).
:param encoding: Which font encoding to use (default is Unicode). Possible :param encoding: Which font encoding to use (default is Unicode). Possible
encodings include: encodings include (see the FreeType documentation for more
information):
* "unic" (Unicode) * "unic" (Unicode)
* "symb" (Microsoft Symbol) * "symb" (Microsoft Symbol)
@ -544,7 +545,8 @@ def truetype(font=None, size=10, index=0, encoding="", layout_engine=None):
* "joha" (Johab) * "joha" (Johab)
* "lat1" (Latin-1) * "lat1" (Latin-1)
See the FreeType documentation for more information. This specifies the character set to use. It does not alter the
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:
`ImageFont.LAYOUT_BASIC` or `ImageFont.LAYOUT_RAQM`. `ImageFont.LAYOUT_BASIC` or `ImageFont.LAYOUT_RAQM`.
:return: A font object. :return: A font object.