mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Merge pull request #295 from lmollea/master
Fixed windows fallback (wasn't using correct file in windows/fonts)
This commit is contained in:
commit
159c4f9fa3
|
@ -245,7 +245,7 @@ def truetype(font=None, size=10, index=0, encoding="", filename=None):
|
||||||
windir = os.environ.get("WINDIR")
|
windir = os.environ.get("WINDIR")
|
||||||
if windir:
|
if windir:
|
||||||
filename = os.path.join(windir, "fonts", font)
|
filename = os.path.join(windir, "fonts", font)
|
||||||
return FreeTypeFont(font, size, index, encoding)
|
return FreeTypeFont(filename, size, index, encoding)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
Loading…
Reference in New Issue
Block a user