Merge pull request #1708 from chrox/fix_1701

fix hold-to-set font size not effective
This commit is contained in:
Qingping Hou
2015-11-06 09:13:39 -08:00
2 changed files with 2 additions and 1 deletions

View File

@@ -76,7 +76,7 @@ and cross compiling.
Users of Debian and Ubuntu can install the required packages using:
```
sudo apt-get install build-essential git patch wget unzip \
autoconf cmake libtool nasm luarocks \
gettext autoconf cmake libtool nasm luarocks \
libssl-dev libffi-dev libsdl2-dev linux-libc-dev:i386
```
Note that the `linux-libc-dev:i386` package is only necessary for x86_64 machines.

View File

@@ -80,6 +80,7 @@ function ReaderFont:onReadSettings(config)
self.ui.document:setHeaderFont(self.header_font_face)
self.font_size = config:readSetting("font_size")
or G_reader_settings:readSetting("copt_font_size")
or DCREREADER_CONFIG_DEFAULT_FONT_SIZE or 22
self.ui.document:setFontSize(Screen:scaleBySize(self.font_size))