CRE: add "CJK width scaling" option

The setting is handled like all other bottom menu options
but, as it's really not useful and its target audience is
very limited, make it not shown in the bottom menu, but
available via another button in the (also quite not useful)
Word Expansion fine tuning widget.
This commit is contained in:
poire-z
2022-06-05 12:36:33 +02:00
parent f29ee8475e
commit c825d50c8f
4 changed files with 74 additions and 0 deletions

View File

@@ -1124,6 +1124,11 @@ function CreDocument:setWordExpansion(value)
self._document:setIntProperty("crengine.style.max.added.letter.spacing.percent", value or 0)
end
function CreDocument:setCJKWidthScaling(value)
logger.dbg("CreDocument: set cjk width scaling", value)
self._document:setIntProperty("crengine.style.cjk.width.scale.percent", value or 100)
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",