-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
\t not worked for string in the Label #4327
Comments
Very close to #2967 |
Indeed, closing as duplicate of #2967. I'll add a mention about |
Apparently \t still doesnt work for Labels in 3.4.2 🤨 |
You can generally replace it with four spaces to get a similar appearance (or 1-3 spaces if there's already text before the tab character): $SomeLabel.text = "\tHello world".replace("\t", " ") |
This was closed but was not fixed by the linked PR. Issue still present in Godot 4 |
It's not a bug as such, tab width is context dependent, and by default, tab character in most of the fonts is zero width. But I guess adding an option to enable tab stops for the |
Operating system or device:
Windows 10
Issue description (what happened, and what was expected):
\t not worked in the method set_text() for Label object
Example:
get_node("Label").set_text('tab test**\t**wwww')
Steps to reproduce:
Link to minimal example project (optional but very welcome):
See screenshot: http://i.imgur.com/Dw6y6YE.png
The text was updated successfully, but these errors were encountered: