2
0
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:
HW 2012-06-03 02:20:19 +02:00
parent 054c63704c
commit 942ab0d3d4

View File

@ -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