From 066faeb21134fa531ab0a49876ea9ed6fa560402 Mon Sep 17 00:00:00 2001 From: Robin Lewis Date: Mon, 23 Feb 2015 12:00:52 +0000 Subject: [PATCH 1/2] Reference non-deprecated argument in truetype documentation --- PIL/ImageFont.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/ImageFont.py b/PIL/ImageFont.py index afbae372f..37a3fd175 100644 --- a/PIL/ImageFont.py +++ b/PIL/ImageFont.py @@ -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. From 7fafd09bf5a51886033d9e3c1332c3d6b159c2a7 Mon Sep 17 00:00:00 2001 From: Robin Lewis Date: Mon, 23 Feb 2015 12:23:01 +0000 Subject: [PATCH 2/2] Document filename parameter as deprecated in truetype() --- PIL/ImageFont.py | 1 + 1 file changed, 1 insertion(+) diff --git a/PIL/ImageFont.py b/PIL/ImageFont.py index 37a3fd175..cf1922c9e 100644 --- a/PIL/ImageFont.py +++ b/PIL/ImageFont.py @@ -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. """