add fallback_font option in G_reader_settings
This commit is contained in:
1 parent
21b0b24b14
commit
560444c168
1 file changed
+3
-13
@@ -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