mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
bump crengine: round FT metrics, split text drawing by script (#5628)
Includes: - Fonts: round FT metrics instead of floor'ing them - Fonts: switch to no hinting when native hinting fails - Fonts: fix issue with Harfbuzz fallback font drawing - Text: split measuring and word drawing by unicode script - Page splitting: fix small memory leak - Fix "background-color: black" ignored on inline elements - Fix decoding of recent MOBI files - Hardcoded elements list: add <font> base/xtext.cpp: small cleanup, no logic change
This commit is contained in:
@@ -186,13 +186,13 @@ describe("Readerrolling module", function()
|
||||
it("should show pages for different word gap", function()
|
||||
readerui.document:setSpaceCondensing(100)
|
||||
readerui:handleEvent(Event:new("ChangeScreenMode", "portrait"))
|
||||
assert.are.same(231, readerui.document:getPageCount())
|
||||
assert.are.same(252, readerui.document:getPageCount())
|
||||
readerui.document:setSpaceCondensing(75)
|
||||
readerui:handleEvent(Event:new("ChangeScreenMode", "portrait"))
|
||||
assert.are.same(229, readerui.document:getPageCount())
|
||||
assert.are.same(248, readerui.document:getPageCount())
|
||||
readerui.document:setSpaceCondensing(50)
|
||||
readerui:handleEvent(Event:new("ChangeScreenMode", "portrait"))
|
||||
assert.are.same(225, readerui.document:getPageCount())
|
||||
assert.are.same(235, readerui.document:getPageCount())
|
||||
end)
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user