From f5ef2c01542df06ad3edc2a37319fbee849938f5 Mon Sep 17 00:00:00 2001 From: Stani Date: Fri, 10 Jul 2015 02:06:47 +0200 Subject: [PATCH] use clean path for font folder --- font.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/font.go b/font.go index e62ef28..cdc1c18 100644 --- a/font.go +++ b/font.go @@ -7,6 +7,7 @@ import ( "io/ioutil" "log" "path" + "path/filepath" "code.google.com/p/freetype-go/freetype/truetype" ) @@ -80,7 +81,7 @@ func GetFontFolder() string { } func SetFontFolder(folder string) { - fontFolder = folder + fontFolder = filepath.Clean(folder) } func loadFont(fontFileName string) *truetype.Font {