This commit is contained in:
Qingping Hou
2019-02-10 17:07:50 -08:00
committed by Frans de Jonge
parent e29c2275ef
commit 4d8da96177
14 changed files with 23 additions and 15 deletions

View File

@@ -39,9 +39,6 @@ local Runtimectl = require("runtimectl")
local Device = require("device")
Runtimectl:init(Device)
local Font = require("ui/font")
Font:setScreen(Device.screen)
if G_reader_settings:has("color_rendering") then
Runtimectl:setColorRenderingEnabled(G_reader_settings:isTrue("color_rendering"))
else
@@ -139,6 +136,7 @@ end
-- font
local fontmap = G_reader_settings:readSetting("fontmap")
if fontmap ~= nil then
local Font = require("ui/font")
for k, v in pairs(fontmap) do
Font.fontmap[k] = v
end