Commit Graph

12 Commits (efa37c97ab29685feea14f0c0bc8b61a19d51f27)

Author SHA1 Message Date
Qingping Hou efa37c97ab bug fix in readerfont
After set font in ReaderFont:onReadSettings, we have to send UpdatePos
event in order to set m_is_rendered(member of LVDocView) to true.

Otherwise position inside document will be reset to 0 on first view
render, this makes the first page of document is always displayed on
document open.

So far, I don't know why this call will alter the value of m_is_rendered.
It just works...
12 years ago
Qingping Hou 5a57ef84d3 remove default_font in readerfont because it is defined in credocument. 12 years ago
Qingping Hou e27b99f770 read font_face and font_size from document settings
This is done in readerfont.lua
12 years ago
Qingping Hou dbd27cd600 rename ReaderMenu:addToMainMenuCallback to registerToMainMenu
since we are actully inserting widgets, not callbacks
12 years ago
Qingping Hou 9a439f5dc4 register ReaderFont's font menu in ReaderMenu 12 years ago
Qingping Hou 476733dc87 register font menu to main reader menu for touch device 12 years ago
Qingping Hou 59592e862e read font settings on readsettings event 12 years ago
Qingping Hou 45e9198ab2 add document fontface and fontsize settings support 12 years ago
Qingping Hou 51ed793d14 add screen rotate support 12 years ago
Qingping Hou bad329811d add line space control feature for credocument 12 years ago
Qingping Hou b3cdbeee19 add font size control feature for credocument
also rename getFont to getFontFace
12 years ago
Qingping Hou 0ddc9f6e99 add back readerfont.lua 12 years ago