mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-13 17:43:29 +03:00
Change wording from 'stream' to 'file-like object.
This commit is contained in:
parent
8293fe0aa7
commit
e3e6da5e35
|
@ -233,14 +233,14 @@ def load(filename):
|
||||||
def truetype(font=None, size=10, index=0, encoding="",
|
def truetype(font=None, size=10, index=0, encoding="",
|
||||||
layout_engine=None):
|
layout_engine=None):
|
||||||
"""
|
"""
|
||||||
Load a TrueType or OpenType font from a file or stream, and create
|
Load a TrueType or OpenType font from a file or file-like object,
|
||||||
a font object.
|
and create a font object.
|
||||||
This function loads a font object from the given file or stream,
|
This function loads a font object from the given file or file-like
|
||||||
and creates a font object for a font of the given size.
|
object, and creates a font object for a font of the given size.
|
||||||
|
|
||||||
This function requires the _imagingft service.
|
This function requires the _imagingft service.
|
||||||
|
|
||||||
:param font: A filename or binary stream containing a TrueType font.
|
:param font: A filename or file-like object containing a TrueType font.
|
||||||
Under Windows, if the file is not found in this filename,
|
Under Windows, if the file is not found in this filename,
|
||||||
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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user