Revert "WIP disabled default font cache"
This reverts commit 55aea0e8f2
.
This commit is contained in:
parent
55aea0e8f2
commit
f44aa1eae0
1 changed files with 1 additions and 4 deletions
5
font.go
5
font.go
|
@ -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
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue