diff --git a/PIL/ImageFont.py b/PIL/ImageFont.py index f0575d7a8..5851c90fc 100644 --- a/PIL/ImageFont.py +++ b/PIL/ImageFont.py @@ -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 ##