RichTextLabel padding/margin to prevent text outline cutoff?

Godot Version

Godot 4.5.1 stable

Question

I’m using a RichTextLabel with a font that has a pretty thick outline, using the left alignment.
However, as you can see in the image, the outline gets cut-off in a very ugly way.

I’m currently unable to figure out how to work around this in an elegant way, as it does not appear that RichTextLabel has some kind of padding or margin option.

What do I do to deal with this?

You can add padding by setting a StyleBoxEmpty in its RichTextLabel.normal theme property and change its StyleBox.content_margin_* values.

Also, if you aren’t using its scrolling behavior you can disable Control.clip_contents but the outline will spill out of the control’s rect.

1 Like

Ahh, I knew I was overlooking something! Thank you so much!