mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
set crengine cache size in lua code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user