mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Adds Word Expansion: use of letter spacing for justification
Bump crengine: - Text: fix occasional BiDi bad word splitting - Font: fix HB fallback measurement/drawing mismatches - Font: do not add letter spacing on diacritics - Text: tunable use of letter spacing for justification - Text: dont adjust space after initial quotation mark/dash (rework) - Text: fix possible bad widths after collapsed spaces xtext.cpp: pick crengine fix with HB fallback measurement/drawing mismatches Adds "Word Expansion" to bottom Font size menu, and moved "Word Spacing" there too, to balance the panels' heights to 4 items.
This commit is contained in:
@@ -812,6 +812,11 @@ function CreDocument:setWordSpacing(values)
|
||||
self._document:setIntProperty("crengine.style.space.condensing.percent", values[2])
|
||||
end
|
||||
|
||||
function CreDocument:setWordExpansion(value)
|
||||
logger.dbg("CreDocument: set word expansion", value)
|
||||
self._document:setIntProperty("crengine.style.max.added.letter.spacing.percent", value or 0)
|
||||
end
|
||||
|
||||
function CreDocument:setStyleSheet(new_css_file, appended_css_content )
|
||||
logger.dbg("CreDocument: set style sheet:",
|
||||
new_css_file and new_css_file or "no file",
|
||||
|
||||
Reference in New Issue
Block a user