Skip to content
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

Font Rendering: SDF Kerning and vertical Tracking incorrect #2172

Open
thygrrr opened this issue Mar 4, 2024 · 0 comments
Open

Font Rendering: SDF Kerning and vertical Tracking incorrect #2172

thygrrr opened this issue Mar 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@thygrrr
Copy link

thygrrr commented Mar 4, 2024

Release Type: Official 4.2

Version: 4.2.0.2067 on .NET 8.0.2

Platform(s): Windows 11

Describe the bug
Font kerning/tracking for SDF fonts is incorrect, letters are squished together and letters dance up and down on each line.

To Reproduce

  1. download font Baj Jamjuree from Google Fonts
  2. create SDF font, size 20 or 24
  3. create a text block and zoom in (sometimes easier to see at runtime)

In editor (red annotation to show the vertical issues)
image
image

At runtime:
image

Expected behavior
Kerning is as defined and hinted in the font. Tracking and scanning is as defined and hinted in the font.
image
image

Additional context
Related to #2171 (there's a sample project there)

@thygrrr thygrrr added the bug Something isn't working label Mar 4, 2024
@thygrrr thygrrr changed the title SDF Font Kerning and vertical tracking incorrect Font Rendering: SDF Kerning and vertical Tracking incorrect Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant