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

Merge pull request #492 from thotypous/master

One more setting to preserve in floating punctuation workaround
This commit is contained in:
Huang Xin 2014-01-23 05:01:30 -08:00
commit 702d656f8e

View File

@ -119,8 +119,8 @@ function ReaderTypeset:toggleFloatingPunctuation()
self.ui.document:setFloatingPunctuation(self.floating_punctuation) self.ui.document:setFloatingPunctuation(self.floating_punctuation)
--self.ui:handleEvent(Event:new("UpdatePos")) --self.ui:handleEvent(Event:new("UpdatePos"))
-- workaround: set again things unset by crengine after changing floating punctuation -- workaround: set again things unset by crengine after changing floating punctuation
self.ui.document:setFontFace(self.ui.font.font_face or self.ui.document:setFontFace(self.ui.font.font_face)
self.ui.doc_settings:readSetting("font_face")) self.ui.document:setInterlineSpacePercent(self.ui.font.line_space_percent)
cre.setHyphDictionary(self.ui.hyphenation.hyph_alg) cre.setHyphDictionary(self.ui.hyphenation.hyph_alg)
self:_setPageMargins() self:_setPageMargins()
end end