mirror of
https://github.com/koreader/koreader.git
synced 2025-12-18 12:02:09 +01:00
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:
@@ -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