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:
@@ -127,7 +127,7 @@ function ReaderFont:onReadSettings(config)
|
||||
self.ui.document:setFontHinting(self.font_hinting)
|
||||
|
||||
self.font_kerning = config:readSetting("font_kerning")
|
||||
or G_reader_settings:readSetting("copt_font_kerning") or 1 -- freetype (default in cre.cpp)
|
||||
or G_reader_settings:readSetting("copt_font_kerning") or 3 -- harfbuzz (slower, but needed for proper arabic)
|
||||
self.ui.document:setFontKerning(self.font_kerning)
|
||||
|
||||
self.space_condensing = config:readSetting("space_condensing")
|
||||
|
||||
Reference in New Issue
Block a user