mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
fixed issue that made CREngine default font working after restart only
in the earlier version, the static crereader.default_font wasn't changed, so a new default font only got used after a restart
This commit is contained in:
parent
054c63704c
commit
942ab0d3d4
@ -484,6 +484,7 @@ function CREReader:adjustCreReaderCommands()
|
||||
self.commands:add(KEY_F, MOD_SHIFT, "F",
|
||||
"use document font as default font",
|
||||
function(self)
|
||||
self.default_font = self.font_face
|
||||
G_reader_settings:saveSetting("cre_font", self.font_face)
|
||||
showInfoMsgWithDelay("Default document font set", 2000, 1)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user