Skip to content

Commit

Permalink
Merge 0427170 into 1c57a41
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jul 15, 2019
2 parents 1c57a41 + 0427170 commit b66eb30
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions src/PIL/ImageFont.py
Expand Up @@ -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.
:param size: The requested size, in points.
:param index: Which font face to load (default is first available face).
:param encoding: Which font encoding to use (default is Unicode). Common
encodings are "unic" (Unicode), "symb" (Microsoft
Symbol), "ADOB" (Adobe Standard), "ADBE" (Adobe Expert),
and "armn" (Apple Roman). See the FreeType documentation
for more information.
:param encoding: Which font encoding to use (default is Unicode). Possible
encodings include:
* "unic" (Unicode)
* "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:
`ImageFont.LAYOUT_BASIC` or `ImageFont.LAYOUT_RAQM`.
:return: A font object.
Expand Down

0 comments on commit b66eb30

Please sign in to comment.