set crengine cache size in lua code

This commit is contained in:
Qingping Hou
2012-09-10 21:45:05 +08:00
parent 275e94c7a3
commit 1eb7162796
2 changed files with 11 additions and 2 deletions

View File

@@ -18,6 +18,9 @@ CREReader = UniReader:new{
function CREReader:init()
self:addAllCommands()
self:adjustCreReaderCommands()
-- 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