mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
show line spacing in CREReader
This might be very slow operation on device because it seems to invoke whole reflow of document
This commit is contained in:
@@ -274,6 +274,7 @@ function CREReader:adjustCreReaderCommands()
|
||||
if self.line_space_percent > 200 then
|
||||
self.line_space_percent = 200
|
||||
end
|
||||
InfoMessage:show("line spacing "..self.line_space_percent.."%", 0)
|
||||
print("line spacing set to", self.line_space_percent)
|
||||
cr.doc:setDefaultInterlineSpace(self.line_space_percent)
|
||||
cr:redrawCurrentPage()
|
||||
@@ -286,6 +287,7 @@ function CREReader:adjustCreReaderCommands()
|
||||
if self.line_space_percent < 100 then
|
||||
self.line_space_percent = 100
|
||||
end
|
||||
InfoMessage:show("line spacing "..self.line_space_percent.."%", 0)
|
||||
print("line spacing set to", self.line_space_percent)
|
||||
cr.doc:setDefaultInterlineSpace(self.line_space_percent)
|
||||
cr:redrawCurrentPage()
|
||||
|
||||
Reference in New Issue
Block a user