Revert "WIP disabled default font cache"

This reverts commit 55aea0e8f2.
This commit is contained in:
gerald1248 2016-12-13 20:23:52 +01:00
parent 55aea0e8f2
commit f44aa1eae0

View file

@ -144,14 +144,11 @@ func (cache *defaultFontCache) Store(fontData FontData, font *truetype.Font) {
} }
var ( var (
/*
defaultFonts = &defaultFontCache{ defaultFonts = &defaultFontCache{
fonts: make(map[string]*truetype.Font), fonts: make(map[string]*truetype.Font),
folder: "../resource/font", folder: "../resource/font",
namer: FontFileName, namer: FontFileName,
} }
*/
//fontCache FontCache = defaultFonts fontCache FontCache = defaultFonts
fontCache FontCache = nil
) )