|
|
|
@ -80,6 +80,7 @@ CreDocument = Document:new{
|
|
|
|
|
|
|
|
|
|
line_space_percent = 100,
|
|
|
|
|
default_font = "Droid Sans Fallback",
|
|
|
|
|
header_font = "Droid Sans Fallback",
|
|
|
|
|
options = CreOptions,
|
|
|
|
|
configurable = Configurable,
|
|
|
|
|
}
|
|
|
|
@ -120,6 +121,11 @@ function CreDocument:engineInit()
|
|
|
|
|
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
|
|
|
|
@ -253,6 +259,12 @@ function CreDocument:setViewMode(new_mode)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function CreDocument:setHeaderFont(new_font)
|
|
|
|
|
if new_font then
|
|
|
|
|
self._document:setHeaderFont(new_font)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function CreDocument:zoomFont(delta)
|
|
|
|
|
self._document:zoomFont(delta)
|
|
|
|
|
end
|
|
|
|
|