Fixed windows fallback (wasn't using correct file in windows/fonts)

This commit is contained in:
lmollea 2013-07-22 14:44:40 +02:00
parent 5d158097da
commit 763be8614d

View File

@ -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
##