From f44aa1eae098e1c79b32acc4d75da3754c0ead4f Mon Sep 17 00:00:00 2001 From: gerald1248 Date: Tue, 13 Dec 2016 20:23:52 +0100 Subject: [PATCH] Revert "WIP disabled default font cache" This reverts commit 55aea0e8f2cc1def8076f99068f86390048cff5b. --- font.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/font.go b/font.go index 38117bd..cd0ec1b 100644 --- a/font.go +++ b/font.go @@ -144,14 +144,11 @@ func (cache *defaultFontCache) Store(fontData FontData, font *truetype.Font) { } var ( - /* defaultFonts = &defaultFontCache{ fonts: make(map[string]*truetype.Font), folder: "../resource/font", namer: FontFileName, } - */ - //fontCache FontCache = defaultFonts - fontCache FontCache = nil + fontCache FontCache = defaultFonts )