Documented more encoding values

This commit is contained in:
Andrew Murray 2019-07-15 19:04:35 +10:00
parent 1c57a41ece
commit 0427170db5

View File

@ -528,11 +528,23 @@ def truetype(font=None, size=10, index=0, encoding="", layout_engine=None):
the loader also looks in Windows :file:`fonts/` directory. the loader also looks in Windows :file:`fonts/` directory.
: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). Common :param encoding: Which font encoding to use (default is Unicode). Possible
encodings are "unic" (Unicode), "symb" (Microsoft encodings include:
Symbol), "ADOB" (Adobe Standard), "ADBE" (Adobe Expert),
and "armn" (Apple Roman). See the FreeType documentation * "unic" (Unicode)
for more information. * "symb" (Microsoft Symbol)
* "ADOB" (Adobe Standard)
* "ADBE" (Adobe Expert)
* "ADBC" (Adobe Custom)
* "armn" (Apple Roman)
* "sjis" (Shift JIS)
* "gb " (PRC)
* "big5"
* "wans" (Extended Wansung)
* "joha" (Johab)
* "lat1" (Latin-1)
See the FreeType documentation for more information.
: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.