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
pull/4025/head
poire-z 6 years ago committed by GitHub
parent 5909a88765
commit dd9cd0e87e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save