From 763be8614dc8cbe4dac35172f4a7c1223de463c2 Mon Sep 17 00:00:00 2001 From: lmollea Date: Mon, 22 Jul 2013 14:44:40 +0200 Subject: [PATCH] Fixed windows fallback (wasn't using correct file in windows/fonts) --- PIL/ImageFont.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ##