mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add fallback_font option in G_reader_settings
This commit is contained in:
@@ -18,9 +18,9 @@ local CreDocument = Document:new{
|
||||
engine_initilized = false,
|
||||
|
||||
line_space_percent = 100,
|
||||
default_font = "FreeSerif",
|
||||
header_font = "FreeSans",
|
||||
fallback_font = "Droid Sans Fallback",
|
||||
default_font = G_reader_settings:readSetting("cre_font") or "FreeSerif",
|
||||
header_font = G_reader_settings:readSetting("header_font") or "FreeSans",
|
||||
fallback_font = G_reader_settings:readSetting("fallback_font") or "Droid Sans Fallback",
|
||||
default_css = "./data/cr3.css",
|
||||
options = CreOptions,
|
||||
}
|
||||
@@ -56,16 +56,6 @@ function CreDocument:engineInit()
|
||||
end
|
||||
end
|
||||
|
||||
local default_font = G_reader_settings:readSetting("cre_font")
|
||||
if default_font then
|
||||
self.default_font = default_font
|
||||
end
|
||||
|
||||
local header_font = G_reader_settings:readSetting("header_font")
|
||||
if header_font then
|
||||
self.header_font = header_font
|
||||
end
|
||||
|
||||
engine_initilized = true
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user