mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
call cre.initCache() in CreDocument:engineInit()
This commit is contained in:
@@ -25,6 +25,9 @@ end
|
||||
|
||||
function CreDocument:engineInit()
|
||||
if not engine_initilized then
|
||||
-- initialize cache
|
||||
cre.initCache(1024*1024*64)
|
||||
|
||||
-- we need to initialize the CRE font list
|
||||
local fonts = Font:getFontList()
|
||||
for _k, _v in ipairs(fonts) do
|
||||
|
||||
Reference in New Issue
Block a user