chrox
83eb90cd47
add font size fine tuning for crereader
2014-01-18 03:11:04 +08:00
chrox
71ddd8aa91
make default font size consistent
2014-01-03 11:12:26 +08:00
chrox
ee8838960b
add auto save settings option
2013-12-27 23:18:16 +08:00
chrox
01046fe478
fix font size change when reopening the same credocument
2013-12-26 02:00:48 +08:00
Qingping Hou
d3979ff72d
call scaleByDPI from screen module fixes #343
2013-10-24 13:47:22 -04:00
HW
2154e7e852
Further refactoring
...
This should finish the work to make all globals to local variables.
That allows LuaJIT to properly compile things by interning the
references to the relevant parts (rather than looking up globals
all the time which stops a trace).
2013-10-22 17:11:31 +02:00
HW
ef111b99c6
Refactored to use strictly locals
2013-10-18 22:38:07 +02:00
chrox
cd2ee14b91
various fixes on Device:hasKeyboard check
2013-10-16 20:56:18 +08:00
chrox
32ffacdf77
adjust font sizes in credocument according to screen dpi
...
and font sizes list is moved to defaults.lua
2013-10-16 17:06:28 +08:00
Qingping Hou
f36279ed53
wrap text with gettext in readercropping and readerfont
2013-04-08 15:00:46 +08:00
Qingping Hou
28e5907d51
use scaleByDPI in all widgets
2013-03-15 20:03:50 -04:00
Qingping Hou
1fcb5281a0
use touchmenu widget in readermenu
2013-03-14 13:58:42 +08:00
Qingping Hou
22c3043959
add calling item.callback() as default onMenuChoice action
2013-02-03 03:35:25 +08:00
Qingping Hou
69260aaac8
cosmetic changes to menu wording
2013-01-22 06:37:08 +08:00
Qingping Hou
874890aaec
save and restore gamma_index for crengine
2013-01-13 12:07:20 +08:00
Qingping Hou
5abf3cb92d
save header_font_face
2013-01-13 11:38:36 +08:00
Qingping Hou
b7ced36957
read LineSpace from config
2013-01-13 11:37:28 +08:00
Qingping Hou
02ea5f1fbf
read header font from config
2013-01-13 11:23:30 +08:00
Qingping Hou
687aabc173
adapt ui to loadDocument before setFont
2013-01-13 10:22:33 +08:00
Qingping Hou
8c973457a0
save and restore line_space_percent in ReaderFont
2013-01-08 01:06:56 -05:00
Qingping Hou
e03963f4f2
replace InfoMessage with Notification in readerfont.lua
2013-01-07 16:51:37 -05:00
Qingping Hou
61613323fe
add ReaderFont:onChangeFontGamma()
2013-01-07 16:42:23 -05:00
Qingping Hou
204cfb2b17
return true in event handlers
...
we should do that when we know a event handler is only used in
that widget
2013-01-07 12:51:25 -05:00
Qingping Hou
e573fcf2de
add ReaderFont:onToggleFontBolder
2013-01-07 12:17:34 -05:00
Qingping Hou
fdc05b066c
add readerconfig to document supported by crengine
...
* now font size can be changed by readerconfig
2013-01-06 23:21:11 -05:00
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...
2012-12-22 13:27:46 +08:00
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...
2012-12-21 06:00:51 +08:00
Qingping Hou
5a57ef84d3
remove default_font in readerfont because it is defined in credocument.
2012-12-17 15:01:31 +08:00
Qingping Hou
e27b99f770
read font_face and font_size from document settings
...
This is done in readerfont.lua
2012-12-17 14:51:50 +08:00
Qingping Hou
dbd27cd600
rename ReaderMenu:addToMainMenuCallback to registerToMainMenu
...
since we are actully inserting widgets, not callbacks
2012-12-15 09:30:48 +08:00
Qingping Hou
9a439f5dc4
register ReaderFont's font menu in ReaderMenu
2012-12-15 09:23:02 +08:00
Qingping Hou
476733dc87
register font menu to main reader menu for touch device
2012-12-14 02:32:16 +08:00
Qingping Hou
59592e862e
read font settings on readsettings event
2012-06-27 00:59:47 +08:00
Qingping Hou
45e9198ab2
add document fontface and fontsize settings support
2012-06-26 17:05:49 +08:00
Qingping Hou
51ed793d14
add screen rotate support
2012-06-13 00:14:23 +08:00
Qingping Hou
bad329811d
add line space control feature for credocument
2012-06-12 21:12:04 +08:00
Qingping Hou
b3cdbeee19
add font size control feature for credocument
...
also rename getFont to getFontFace
2012-06-12 20:59:56 +08:00
Qingping Hou
0ddc9f6e99
add back readerfont.lua
2012-06-12 18:04:08 +08:00