2
0
mirror of https://github.com/koreader/koreader synced 2024-11-13 19:11:25 +00:00

remove default_font in readerfont because it is defined in credocument.

This commit is contained in:
Qingping Hou 2012-12-17 15:01:31 +08:00
parent e27b99f770
commit 5a57ef84d3

View File

@ -4,7 +4,6 @@ ReaderFont = InputContainer:new{
line_space_percent = 100, line_space_percent = 100,
font_menu_title = "Font Menu", font_menu_title = "Font Menu",
face_table = nil, face_table = nil,
default_font = "DroidSansFallback",
} }
function ReaderFont:init() function ReaderFont:init()
@ -52,7 +51,7 @@ end
function ReaderFont:onReadSettings(config) function ReaderFont:onReadSettings(config)
self.font_face = config:readSetting("font_face") self.font_face = config:readSetting("font_face")
if not self.font_face then if not self.font_face then
self.font_face = self.default_font self.font_face = self.ui.document.default_font
end end
self.ui.document:setFontFace(self.font_face) self.ui.document:setFontFace(self.font_face)