use clean path for font folder

This commit is contained in:
Stani 2015-07-10 02:06:47 +02:00
parent 903829eb54
commit f5ef2c0154
1 changed files with 2 additions and 1 deletions

View File

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