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:
1 parent
f29ee8475e
commit
c825d50c8f
4 files changed
+74
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user