Rearranged text

This commit is contained in:
Andrew Murray 2024-09-18 23:58:23 +10:00 committed by GitHub
parent 9ba4e10a16
commit 9adb476f37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -808,10 +808,10 @@ def truetype(
) -> FreeTypeFont: ) -> FreeTypeFont:
""" """
Load a TrueType or OpenType font from a file or file-like object, Load a TrueType or OpenType font from a file or file-like object,
and create a font object. For loading bitmap fonts instead, and create a font object. This function loads a font object from the given
see :py:func:`~PIL.ImageFont.load` and :py:func:`~PIL.ImageFont.load_path`. file or file-like object, and creates a font object for a font of the given
This function loads a font object from the given file or file-like size. For loading bitmap fonts instead, see :py:func:`~PIL.ImageFont.load`
object, and creates a font object for a font of the given size. and :py:func:`~PIL.ImageFont.load_path`.
Pillow uses FreeType to open font files. On Windows, be aware that FreeType Pillow uses FreeType to open font files. On Windows, be aware that FreeType
will keep the file open as long as the FreeTypeFont object exists. Windows will keep the file open as long as the FreeTypeFont object exists. Windows