mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
remove default_font in readerfont because it is defined in credocument.
This commit is contained in:
@@ -4,7 +4,6 @@ ReaderFont = InputContainer:new{
|
||||
line_space_percent = 100,
|
||||
font_menu_title = "Font Menu",
|
||||
face_table = nil,
|
||||
default_font = "DroidSansFallback",
|
||||
}
|
||||
|
||||
function ReaderFont:init()
|
||||
@@ -52,7 +51,7 @@ end
|
||||
function ReaderFont:onReadSettings(config)
|
||||
self.font_face = config:readSetting("font_face")
|
||||
if not self.font_face then
|
||||
self.font_face = self.default_font
|
||||
self.font_face = self.ui.document.default_font
|
||||
end
|
||||
self.ui.document:setFontFace(self.font_face)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user