feat(font): add option to disable kerning (#4725)

This commit is contained in:
Niklas Fiekas
2023-10-30 13:23:20 +01:00
committed by GitHub
parent d197d73d62
commit 8fabcc6853
9 changed files with 177 additions and 8 deletions

View File

@@ -208,6 +208,20 @@ because
- they can be compressed better
- and probably they are used less frequently then the medium-sized fonts, so the performance cost is smaller.
Kerning
-------
Fonts may provide kerning information to adjust the spacing between specific
characters.
- The online converter generates kerning tables.
- The offline converter generates kerning tables unless ``--no-kerning`` is
specified.
- FreeType integration does not currently support kerning.
- The Tiny TTF font engine supports GPOS and Kern tables.
To configure kerning at runtime, use :cpp:func:`lv_font_set_kerning`.
.. _add_font:
Add a new font