mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Merge pull request #1708 from chrox/fix_1701
fix hold-to-set font size not effective
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user