|
|
@ -224,7 +224,6 @@ function ReaderFont:onSetFontSize(new_size)
|
|
|
|
UIManager:show(Notification:new{
|
|
|
|
UIManager:show(Notification:new{
|
|
|
|
text = T( _("Font size set to %1."), self.font_size),
|
|
|
|
text = T( _("Font size set to %1."), self.font_size),
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
return true
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
@ -300,10 +299,6 @@ end
|
|
|
|
function ReaderFont:setFont(face)
|
|
|
|
function ReaderFont:setFont(face)
|
|
|
|
if face and self.font_face ~= face then
|
|
|
|
if face and self.font_face ~= face then
|
|
|
|
self.font_face = face
|
|
|
|
self.font_face = face
|
|
|
|
UIManager:show(Notification:new{
|
|
|
|
|
|
|
|
text = T( _("Redrawing with font %1."), face),
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.ui.document:setFontFace(face)
|
|
|
|
self.ui.document:setFontFace(face)
|
|
|
|
-- signal readerrolling to update pos in new height
|
|
|
|
-- signal readerrolling to update pos in new height
|
|
|
|
self.ui:handleEvent(Event:new("UpdatePos"))
|
|
|
|
self.ui:handleEvent(Event:new("UpdatePos"))
|
|
|
|