Why does rich text render at completely wrong sizes sometimes?

I can’t for the life of me understand why enabling rich text makes the text render in weird, undeterministic sizes. While I am using TextScaled and TextWrapped, this behaviour isn’t observed when rich text is off and I don’t know if it’s a bug or the way I’m configuring it.

I’m trying to change a perk selection menu’s text to be more readable for players but it doesn’t want to cooperate, even if I try changing the text size for example (which doesn’t mean much because it’ll get overwritten by TextScaled).

Problematic size for one paragraph:

This one seems to be okay and accurately reflect what I want:

This is on my live servers without rich text (notice how it’s not egregiously wasting space):

How can I get rich text-enabled text labels to not waste copious amounts of space per figure 1?

…it decided to fix itself after I posted this, so I have a feeling like it’s some kind of edge case behaviour I’m running into related to how it’s rendering. I won’t consider this resolved though because I’d prefer not to rely on a dice roll on if my text renders with proper size.

Appearance when I checked just now:

1 Like