mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
cre: use 'best' (Harfbuzz) as the default kerning method (#5553)
It might be slower, but is needed to properly display books in arabic, indic... Also bump crengine: use FreeType "light" hinting algorithm, which hints on the y-axis only (and so avoid messing with advances and kerning on the x-axis).
This commit is contained in:
@@ -25,7 +25,7 @@ describe("Readertoc module", function()
|
||||
title = toc:getTocTitleByPage(60)
|
||||
DEBUG("toc", toc.toc)
|
||||
assert.is.equal("SCENE V. A hall in Capulet's house.", title)
|
||||
title = toc:getTocTitleByPage(187)
|
||||
title = toc:getTocTitleByPage(177)
|
||||
assert.is.equal("SCENE I. Friar Laurence's cell.", title)
|
||||
end)
|
||||
describe("getTocTicks API", function()
|
||||
@@ -68,12 +68,12 @@ describe("Readertoc module", function()
|
||||
end)
|
||||
it("should get page left of chapter", function()
|
||||
assert.truthy(toc:getChapterPagesLeft(10, 0) > 10)
|
||||
assert.truthy(toc:getChapterPagesLeft(97, 0) > 10)
|
||||
assert.truthy(toc:getChapterPagesLeft(90, 0) > 10)
|
||||
assert.are.same(nil, toc:getChapterPagesLeft(290, 0))
|
||||
end)
|
||||
it("should get page done of chapter", function()
|
||||
assert.truthy(toc:getChapterPagesDone(11, 0) < 5)
|
||||
assert.truthy(toc:getChapterPagesDone(95, 0) < 5)
|
||||
assert.truthy(toc:getChapterPagesDone(83, 0) < 5)
|
||||
assert.truthy(toc:getChapterPagesDone(290, 0) > 10)
|
||||
end)
|
||||
describe("collasible TOC", function()
|
||||
|
||||
Reference in New Issue
Block a user