-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic font kerning bug #30014
Comments
It seems to be the problem of the font, I tried it in unity and it overlaps too. And I get the font graph of 'P' and 'l' and put them together, then I got an image like this: |
It is an aspect of the standard that FreeType does not handle. For the curious: many recent fonts store the kerning information in |
It's possible to process the font before use. Import the font into FontForge GUI, choose File → Generate Fonts, select the TrueType format, click Options, tick Old style 'kern' and generate. The |
Since this is something we can't solve on our end, we should probably add a quick note in the DynamicFont documentation about FreeType limitations and document the workaround given by @kawa-yoiko. |
Having just seen the workaround suggested in the docs and recently discovering that currently |
Godot version: 3.1.1
OS/device including version: Windows 10
Issue description: The dynamic font uses incorrect kerning values for a Google Font which renders correctly in Photoshop and in a browser.
Steps to reproduce: Open the demo project and observe the indicated visual problems, then compare with the included texture which shows the expected result.
Minimal reproduction project: https://github.com/sszigeti/godot-3.1.1-kerning-bug
The text was updated successfully, but these errors were encountered: