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

Kerning Pairs property for Monospace Image Font Data does not support spaces #93066

Closed
DarkMarmot opened this issue Jun 12, 2024 · 0 comments · Fixed by #93119
Closed

Kerning Pairs property for Monospace Image Font Data does not support spaces #93066

DarkMarmot opened this issue Jun 12, 2024 · 0 comments · Fixed by #93119

Comments

@DarkMarmot
Copy link

Tested versions

  • Reproducible in: Godot v4.3.beta1.official [a4f2ea9]

System information

Godot v4.3.beta1 - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3050 (NVIDIA; 31.0.15.5176) - AMD Ryzen 7 2700 Eight-Core Processor (16 Threads)

Issue description

When creating monospace image fonts, the new kerning_pairs property allows character combo kerning settings to be applied, which is awesome. From the tooltip, though, these settings are made using two strings and an integer with [space] as the delimiter.

This seems to preclude the use of kerning settings for the [space] character itself, which causes problems with text layout (large gaps in my case).

The current "latest" docs do not seem to have information, so it's very possible I am missing something in the intended usage.

As an aside, a way to define a wildcard so that a character has the same kerning for all subsequent characters would be handy.

image

Image of the settings window for quick reference.

Steps to reproduce

  1. Import a text PNG as monospace font data as seen with example here: https://docs.godotengine.org/en/latest/tutorials/ui/gui_using_fonts.html#doc-gui-using-fonts
  2. Add a label node to a scene and set the font data in its LabelSettings.
  3. Add text and try to modify the kerning of the [space] character in the scene.

Minimal reproduction project (MRP)

kerning_issue.zip

@DarkMarmot DarkMarmot changed the title Kerning Pairs for Monospace Image Font Data does not support spaces Kerning Pairs property for Monospace Image Font Data does not support spaces Jun 12, 2024
@bruvzg bruvzg self-assigned this Jun 12, 2024
@akien-mga akien-mga added this to the 4.3 milestone Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants