mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Fixed formatting
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
8135bd5cfb
commit
520fa19dab
|
@ -31,7 +31,7 @@ Allow default ImageDraw font to be set
|
|||
|
||||
Rather than specifying a font when calling text-related ImageDraw methods, or
|
||||
setting a font on each ImageDraw instance, the default font can now be set for
|
||||
all future ImageDraw operations.
|
||||
all future ImageDraw operations::
|
||||
|
||||
from PIL import ImageDraw, ImageFont
|
||||
ImageDraw.ImageDraw.font = ImageFont.truetype("Tests/fonts/FreeMono.ttf")
|
||||
|
|
Loading…
Reference in New Issue
Block a user