The space font provider allows the definition of floats for advances. This is generally very useful, because many players play on gui-scales larger than 1 and this allows for more precise control over spaces between characters. However, when an advance translates to a space that is smaller than 1px, the following character is stretched in a weird way.
Observed behavior:
In the following example, I've configured the character 'a' to be a space of 0.5 units:
{
"providers": [
{
"type": "space",
"advances": {
"a": 0.5
}
}
]
}
When playing on gui-scale 1 and writing `AaA` in the chat, it looks like this:
[media]
This always happens when `advance * guiScale` is not an integer.
Expected behavior:
I'd expect that `advance * guiScale` would either rounded or truncated to an integer, or that they stack and a space is rendered once they've reached 1px
Attachments
Comments 4
Thank you for your report!
After consideration, the issue is being closed as Won't Fix.
Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Please attach any necessary data packs or resource packs required to reproduce this issue.