-
Notifications
You must be signed in to change notification settings - Fork 334
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
Wire text editor doesn't support non-monospaced fonts #2944
Comments
This is way too much work and would significantly bog down the editor for very little reason. So I don't see this ever happening. It's like all the trouble of supporting unicode, but with even less benefit. I'll leave it open for other people to give their inputs for a bit. |
To me, it looks like this is mainly just a problem of trying to calculate the position of the next text draw of the same line, you can see that the Though, this also affects the text cursor's position... |
If the issue itself won't get fixed then the least that can be done is to remove Fixedsys from the default fonts list, so users are less likely to run into the above behavior. |
I also encounter this issue when I try to use a font which is not present on my system (for example the Monaco font or a custom one which does not exist). It seems to use a fallback font which is also non-monospaced. |
Describe the bug
At present, attempting to use a font that isn't monospaced will cause the text editor to print text over other text.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The text editor should be capable of supporting fonts where certain characters are wider or slimmer than others.
Screenshots
Example using the default font Fixedsys
Example using a known monospaced custom font, Cascadia Mono
Test was performed with only wiremod loaded, in singleplayer, and on gm_construct.
The text was updated successfully, but these errors were encountered: