Merge pull request #295 from lmollea/master

Fixed windows fallback (wasn't using correct file in windows/fonts)
This commit is contained in:
Alex Clark ☺ 2013-07-22 10:34:27 -07:00
commit 159c4f9fa3

View File

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