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

RichTextLabel - BBcode separates words for purpose of text-wrapping #31089

Closed
Tracked by #39144
Schazzwozzer opened this issue Aug 5, 2019 · 0 comments · Fixed by #45440 · May be fixed by #64540
Closed
Tracked by #39144

RichTextLabel - BBcode separates words for purpose of text-wrapping #31089

Schazzwozzer opened this issue Aug 5, 2019 · 0 comments · Fixed by #45440 · May be fixed by #64540

Comments

@Schazzwozzer
Copy link

Godot version:
Godot 3.1.1 64-bit, both Standard and Mono

OS/device including version:
Windows 10 Home 64-bit, build 18362

Issue description:
While working on a solution for the gradual reveal of GUI text (an example), it's become apparent that the RichTextLabel node treats bbcode tags as white space when it comes to text wrapping.

TextReveal

In the above example, a color tag is programmatically moved forward within the text string. The text should not be shifting around at all.

Steps to reproduce:
Create a RichTextLabel node, enable BBCode, and insert some text, with bbcode tags in the middle of words. Play with the width of the control rect, and the issue should become apparent. Alternately, download the repro project, which was used to produce the above gif.

Minimal reproduction project:
Text Reveal Bug.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants