mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
@@ -82,7 +82,7 @@ function ReaderFont:init()
|
||||
end
|
||||
end,
|
||||
callback = function()
|
||||
self:setFont(v)
|
||||
self:onSetFont(v)
|
||||
end,
|
||||
hold_callback = function(touchmenu_instance)
|
||||
self:makeDefault(v, touchmenu_instance)
|
||||
@@ -283,7 +283,7 @@ function ReaderFont:onSaveSettings()
|
||||
self.ui.doc_settings:saveSetting("gamma_index", self.gamma_index)
|
||||
end
|
||||
|
||||
function ReaderFont:setFont(face)
|
||||
function ReaderFont:onSetFont(face)
|
||||
if face and self.font_face ~= face then
|
||||
self.font_face = face
|
||||
self.ui.document:setFontFace(face)
|
||||
|
||||
Reference in New Issue
Block a user