Commit Graph

14 Commits (fdc05b066cfedb133ca94fa1a17dc09710d8a0ff)

Author SHA1 Message Date
Qingping Hou fdc05b066c add readerconfig to document supported by crengine
* now font size can be changed by readerconfig
12 years ago
Qingping Hou 93abd2fee7 add page status to readerrolling for better page view_mode support
* now when rendering in page view mode, we only keep track of page
number instead of pos inside document. Because using pos inside
document for page view mode is really a bad idea and will lead to
many unsovlabe bugs...
12 years ago
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