mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-13 09:15:46 +03:00
Merge 763be8614d
into 5d158097da
This commit is contained in:
commit
d12fdc9505
|
@ -245,7 +245,7 @@ def truetype(font=None, size=10, index=0, encoding="", filename=None):
|
|||
windir = os.environ.get("WINDIR")
|
||||
if windir:
|
||||
filename = os.path.join(windir, "fonts", font)
|
||||
return FreeTypeFont(font, size, index, encoding)
|
||||
return FreeTypeFont(filename, size, index, encoding)
|
||||
raise
|
||||
|
||||
##
|
||||
|
|
Loading…
Reference in New Issue
Block a user