mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
switched font handling to only work with external fonts
now you can use a environment variable, FONTDIR, to point to a font dir. Otherwise, "./fonts" is used by default. Subdirectories are indexed.
This commit is contained in:
@@ -117,9 +117,9 @@ Screen.native_rotation_mode = Screen.cur_rotation_mode
|
||||
|
||||
-- set up reader's setting: font
|
||||
reader_settings = DocSettings:open(".reader")
|
||||
r_cfont = reader_settings:readSetting("cfont")
|
||||
if r_cfont ~=nil then
|
||||
Font.cfont = r_cfont
|
||||
fontmap = reader_settings:readSetting("fontmap")
|
||||
if fontmap ~= nil then
|
||||
Font.fontmap = fontmap
|
||||
end
|
||||
|
||||
-- initialize global settings shared among all readers
|
||||
@@ -157,7 +157,7 @@ end
|
||||
|
||||
|
||||
-- save reader settings
|
||||
reader_settings:savesetting("cfont", Font.cfont)
|
||||
reader_settings:savesetting("fontmap", Font.fontmap)
|
||||
reader_settings:close()
|
||||
|
||||
-- @TODO dirty workaround, find a way to force native system poll
|
||||
|
||||
Reference in New Issue
Block a user