mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-18 11:14:46 +03:00
Use "file path" or "path" instead of "filepath" which isn't used much
By @hugovk. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
39f3913b9d
commit
d788682afe
|
@ -2156,7 +2156,7 @@ class Image:
|
||||||
def save(self, fp, format=None, **params):
|
def save(self, fp, format=None, **params):
|
||||||
"""
|
"""
|
||||||
Saves this image under the given file path. If no format is
|
Saves this image under the given file path. If no format is
|
||||||
specified, the format to use is determined from the filepath's
|
specified, the format to use is determined from the path's
|
||||||
file extension, if possible.
|
file extension, if possible.
|
||||||
|
|
||||||
Keyword options can be used to provide additional instructions
|
Keyword options can be used to provide additional instructions
|
||||||
|
|
|
@ -811,7 +811,7 @@ def truetype(font=None, size=10, index=0, encoding="", layout_engine=None):
|
||||||
This function requires the _imagingft service.
|
This function requires the _imagingft service.
|
||||||
|
|
||||||
:param font: A file path or file-like object containing a TrueType font.
|
:param font: A file path or file-like object containing a TrueType font.
|
||||||
If the file is not found at this filepath, the loader may also
|
If the file is not found at this path, the loader may also
|
||||||
search in other directories, such as the :file:`%WINDIR%\fonts\`
|
search in other directories, such as the :file:`%WINDIR%\fonts\`
|
||||||
directory on Windows or :file:`/Library/Fonts/`,
|
directory on Windows or :file:`/Library/Fonts/`,
|
||||||
:file:`/System/Library/Fonts/` and :file:`~/Library/Fonts/`
|
:file:`/System/Library/Fonts/` and :file:`~/Library/Fonts/`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user