mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add floating punctuation option for crereader
Luckily after disabling floating punctuation left/right margin are able to be same now (with large enough margins, should be more than 1em). So I also changed the default page margins for crereader and removed the dirty hack.
This commit is contained in:
@@ -273,6 +273,10 @@ function CreDocument:setPageMargins(left, top, right, bottom)
|
||||
self._document:setIntProperty("crengine.page.margin.bottom", bottom)
|
||||
end
|
||||
|
||||
function CreDocument:setFloatingPunctuation(enabled)
|
||||
self._document:setIntProperty("crengine.style.floating.punctuation.enabled", enabled)
|
||||
end
|
||||
|
||||
function CreDocument:setVisiblePageCount(new_count)
|
||||
self._document:setVisiblePageCount(new_count)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user