Skip to content

Commit

Permalink
Merge pull request #1116 from GotenXiao/fix-truetype-documentation
Browse files Browse the repository at this point in the history
Fix truetype() documentation
  • Loading branch information
wiredfool committed Feb 24, 2015
2 parents 0bc24cb + 7fafd09 commit 7badc01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PIL/ImageFont.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def truetype(font=None, size=10, index=0, encoding="", filename=None):
This function requires the _imagingft service.
:param filename: A truetype font file. Under Windows, if the file
:param font: A truetype font file. Under Windows, if the file
is not found in this filename, the loader also looks in
Windows :file:`fonts/` directory.
:param size: The requested size, in points.
Expand All @@ -224,6 +224,7 @@ def truetype(font=None, size=10, index=0, encoding="", filename=None):
Symbol), "ADOB" (Adobe Standard), "ADBE" (Adobe Expert),
and "armn" (Apple Roman). See the FreeType documentation
for more information.
:param filename: Deprecated. Please use font instead.
:return: A font object.
:exception IOError: If the file could not be read.
"""
Expand Down

0 comments on commit 7badc01

Please sign in to comment.