Add 'cre_min_space_condensing_percent' setting (#4023)
Default in crengine is 50%, and this may be too much for some people (words can look too much stuck to each other on some lines). This manual setting may help testing if 70% or 80% is better, with: "cre_min_space_condensing_percent" = 80
This commit is contained in:
1 parent
5909a88765
commit
dd9cd0e87e
1 file changed
+7
@@ -132,6 +132,13 @@ function CreDocument:init()
|
||||
G_reader_settings:readSetting("cre_header_status_font_size"))
|
||||
end
|
||||
|
||||
-- min space condensing percent (how much we can decrease a space width to
|
||||
-- make text fit on a line) default is 50%
|
||||
if G_reader_settings:readSetting("cre_min_space_condensing_percent") then
|
||||
self._document:setIntProperty("crengine.style.space.condensing.percent",
|
||||
G_reader_settings:readSetting("cre_min_space_condensing_percent"))
|
||||
end
|
||||
|
||||
-- set fallback font face
|
||||
self._document:setStringProperty("crengine.font.fallback.face",
|
||||
G_reader_settings:readSetting("fallback_font") or self.fallback_font)
|
||||
|
||||
Reference in new issue
Block a user