From 55aea0e8f2cc1def8076f99068f86390048cff5b Mon Sep 17 00:00:00 2001 From: gerald1248 Date: Sun, 11 Dec 2016 02:12:36 +0100 Subject: [PATCH] WIP disabled default font cache --- font.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/font.go b/font.go index cd0ec1b..38117bd 100644 --- a/font.go +++ b/font.go @@ -144,11 +144,14 @@ 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 = defaultFonts + fontCache FontCache = nil )