Skip to content

Commit 17a33fc

Browse files
committed
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.
1 parent c4dd90b commit 17a33fc

File tree

9 files changed

+4
-0
lines changed

9 files changed

+4
-0
lines changed

doc/lua_api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,10 @@ In the future, having multiple custom fonts and the ability to switch between th
359359
but for now this feature is limited to the ability to override Luanti's default fonts via mods.
360360
It is recommended that this only be used by game mods to set a look and feel.
361361

362+
Warning: Currently the Luanti client does not support reading kerning information
363+
from the OpenType `GPOS` table, but only the older `kern` table. This can cause
364+
modern fonts not to render correctly in Luanti.
365+
362366
The stems (file names without extension) are self-explanatory:
363367

364368
* Regular variants:

fonts/Arimo-Bold.ttf

48 KB
Binary file not shown.

fonts/Arimo-BoldItalic.ttf

49.3 KB
Binary file not shown.

fonts/Arimo-Italic.ttf

49.2 KB
Binary file not shown.

fonts/Arimo-Regular.ttf

48 KB
Binary file not shown.

fonts/Cousine-Bold.ttf

3.42 KB
Binary file not shown.

fonts/Cousine-BoldItalic.ttf

3.41 KB
Binary file not shown.

fonts/Cousine-Italic.ttf

3.41 KB
Binary file not shown.

fonts/Cousine-Regular.ttf

3.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)