Godot version:
269145a346bddae5cbbf00fd17b6c8eac4cd4665
OS/device including version:
ArcoLinux
Issue description:
There seems to be a misconception in what's expected of RichTextLabel's [center] and [right] tags. When the user attempts to center-align their text, for example, what they're looking for is precisely what Godot's label does:
This expectation is also supported by this BBCode tester https://infinite-story.com/tools/bbcode.php
When the RTL centers text, however, it winds up looking like this:
It centers the entire block of text to the middle of the control, but doesn't actually center-align. The user wants to center-align, not center the entire contents.
[right] also suffers this same issue:
[right]This is a test. This is only a test. This is a test. This is only a test. This is a test. This is only a test. This is a test. This is only a test. This is a test. This is only a test. This is a test. This is only a test.[/right]
For contrast, here's what the BBCode tester outputs:
According to https://github.com/godotengine/godot/pull/29785 , https://github.com/godotengine/godot/issues/6982 is fixed, but it seems to fix a problem that doesn't actually exist, or missed the point of the issue being raised. The tags are expected to center-align and right-align the text itself, just like Label, and just like the BBCode tester, not shift the entire contents towards the center or the right while keeping the text alignment left.
possibly related to #31089 and #30632 and #27896 and #24570 and #24305
so yeah, someone plz nuke this node and rewrite it :D
Chiming in to say that this is still an issue with 3.2. It seems like Godot doesn't properly handle line wrapping:
Hopefully this will be fixed one day, especially since Godot recently added text effect to the RTL node. But, in its current state, it is unusable.
If I try to nuke it and rewrite it, do we care about backwards compatibility? Or should I just try to patch it here and there UwU?
@Nolkaloid I think for 4.0, there are already lots of changes to break compatibility. But for 3.2, patches should be better.
Godot 3.2 still has problems with wrapping centered text, including this weird edge-case where it overlaps itself. The RichTextArea is tall enough to accommodate four rows of text, and additional rows cause a scroll bar. But, sometimes the textarea will just plop a word on top of other words.
Can we close this if it's fixed by https://github.com/godotengine/godot/pull/39164?
This bug was confirmed to be fixed by @pouleyKetchoupp in https://github.com/godotengine/godot/pull/39164#issuecomment-636312143, closing.
Most helpful comment
Can we close this if it's fixed by https://github.com/godotengine/godot/pull/39164?