mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user