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:
poire-z
2019-11-01 23:07:41 +01:00
committed by GitHub
parent 16c021a76a
commit 6baa2af5fb
8 changed files with 17 additions and 17 deletions

View File

@@ -385,7 +385,7 @@ Note that your selected font size is not affected by this setting.]]),
name_text = S.FONT_KERNING,
toggle = {S.OFF, S.FAST, S.GOOD, S.BEST},
values = {0, 1, 2, 3},
default_value = 1,
default_value = 3,
args = {0, 1, 2, 3},
event = "SetFontKerning",
name_text_hold_callback = optionsutil.showValues,
@@ -394,7 +394,7 @@ Note that your selected font size is not affected by this setting.]]),
- off: no kerning.
- fast: use FreeType's kerning implementation (no ligatures).
- good: use HarfBuzz's light kerning implementation (faster than full but no ligatures and limited support for non-western scripts)
- best: use HarfBuzz's full kerning implementation (slower, but may support ligatures with some fonts).
- best: use HarfBuzz's full kerning implementation (slower, but may support ligatures with some fonts; also needed to properly display joined arabic glyphs and some other scripts).
(Font Hinting may need to be adjusted for the best result with either kerning implementation.)]]),
},