Use default font if settings.reader.lua does not provide one. Provide a Toggle button if readerfooter gesture actions are disabled.

This commit is contained in:
Zijie He
2016-04-25 19:45:55 -07:00
committed by Hzj_jie
parent 4a934e97f5
commit 882a815f6c
2 changed files with 44 additions and 20 deletions

View File

@@ -101,7 +101,9 @@ local Font = require("ui/font")
-- font
local fontmap = G_reader_settings:readSetting("fontmap")
if fontmap ~= nil then
Font.fontmap = fontmap
for k, v in pairs(fontmap) do
Font.fontmap[k] = v
end
end
-- last file
local last_file = G_reader_settings:readSetting("lastfile")