1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-12-22 14:45:27 +01:00

Update default font files to fix kerning after 7570e95

We discovered that the new font versions now rely on the GPOS
table for kerning. However bare freetype (as used by CGUITTFont)
doesn't read this data. This caused kerning for these fonts to
stop working.

The new files were generated by opening the fonts in FontForge
and immediately exporting them again in TrueType format after
enabling Options -> OpenType -> Old style 'kern'.
No other changes made.
This commit is contained in:
sfan5
2025-12-18 13:39:25 +01:00
parent c4dd90b350
commit 17a33fccd7
9 changed files with 4 additions and 0 deletions

View File

@@ -359,6 +359,10 @@ In the future, having multiple custom fonts and the ability to switch between th
but for now this feature is limited to the ability to override Luanti's default fonts via mods.
It is recommended that this only be used by game mods to set a look and feel.
Warning: Currently the Luanti client does not support reading kerning information
from the OpenType `GPOS` table, but only the older `kern` table. This can cause
modern fonts not to render correctly in Luanti.
The stems (file names without extension) are self-explanatory:
* Regular variants:

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.