mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-14 13:46:57 +03:00
Update docs for ImageFont.truetype [ci skip]
This commit is contained in:
parent
1175e53d53
commit
00161099c7
|
@ -775,10 +775,15 @@ def truetype(
|
||||||
|
|
||||||
:param font: A filename or file-like object containing a TrueType font.
|
:param font: A filename or file-like object containing a TrueType font.
|
||||||
If the file is not found in this filename, the loader may also
|
If the file is not found in this filename, the loader may also
|
||||||
search in other directories, such as the :file:`fonts/`
|
search in other directories, such as:
|
||||||
directory on Windows or :file:`/Library/Fonts/`,
|
|
||||||
:file:`/System/Library/Fonts/` and :file:`~/Library/Fonts/` on
|
* The :file:`fonts/` directory on Windows,
|
||||||
macOS.
|
* :file:`/Library/Fonts/`, :file:`/System/Library/Fonts/`
|
||||||
|
and :file:`~/Library/Fonts/` on macOS.
|
||||||
|
* :file:`~/.local/share/fonts`, :file:`/usr/local/share/fonts`,
|
||||||
|
and :file:`/usr/share/fonts` on Linux; or those specified by
|
||||||
|
the ``XDG_DATA_HOME`` and ``XDG_DATA_DIRS`` environment variables
|
||||||
|
for user-installed and system-wide fonts, respectively.
|
||||||
|
|
||||||
:param size: The requested size, in pixels.
|
:param size: The requested size, in pixels.
|
||||||
:param index: Which font face to load (default is first available face).
|
:param index: Which font face to load (default is first available face).
|
||||||
|
|
Loading…
Reference in New Issue
Block a user