You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on #63590 and the documentation for text_highlight_h_padding and text_highlight_v_padding, changes to these values should affect the width and height of the color box created from highlighting text, but this is not the case as the size of the color box remains the same.
Note that these values do affect the size of the color box created by the [bgcolor] bbcode.
This image depicts a RichTextLabel with both text_highlight_h_padding and text_highlight_v_padding set to 10, a magenta bgcolor, and the text being highlighted.
Steps to reproduce
Add a RichTextLabel and enable text selection.
Change the values of text_highlight_h_padding or text_highlight_v_padding to something non-zero.
Run the project and highlight the text.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered:
danny88881
changed the title
RichTextLabel text padding options do affect highlighted text
RichTextLabel text padding options do not affect highlighted text
Jul 16, 2023
I think this is by design. Text selection is generally expected to always look the same, regardless of the RichTextLabel you're performing the selection in. This is for visual consistency within the project.
"Highlighting" in the documentation is referring to [fgcolor], which is actually probably better known as redacting (since it occludes text if opaque). Either way, I'd reword the class reference to mention the [bgcolor] and [fgcolor] tags by name.
Godot version
v4.1.stable.official [9704596]
System information
Godot v4.1.stable - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3080 (NVIDIA; 31.0.15.3598) - 11th Gen Intel(R) Core(TM) i5-11400 @ 2.60GHz (12 Threads)
Issue description
Based on #63590 and the documentation for text_highlight_h_padding and text_highlight_v_padding, changes to these values should affect the width and height of the color box created from highlighting text, but this is not the case as the size of the color box remains the same.
Note that these values do affect the size of the color box created by the [bgcolor] bbcode.
This image depicts a RichTextLabel with both text_highlight_h_padding and text_highlight_v_padding set to 10, a magenta bgcolor, and the text being highlighted.
Steps to reproduce
Add a RichTextLabel and enable text selection.
Change the values of text_highlight_h_padding or text_highlight_v_padding to something non-zero.
Run the project and highlight the text.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: