How to get RichTextLabel to resize properly on window resize?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By arispan-rgb

I’m making a 2d top-down RPG with a dialog system. In my Dialog Box scene I have a RichTextLabel that loads the text from a json. Font is a custom DynamicFont.

My problem is that, while the text looks fine if I don’t mess with the window size, it gets wonky when I maximize or resize it (looks like the text is somehow moved up inside its label). My window stretch settings are Mode: 2D and Aspect: Keep.

(If I change Aspect to “Ignore” the problem goes away! But then the aspect gets messed up on window resize so I can’t use that. All other Aspect options result in the problem.)

Before resize:

After resize:

Do you still have the problem if you use the default font?

timothybrentwood | 2021-05-02 21:54

Huh, no, I don’t. This prompted me to check more fonts and some had this problem, while others didn’t. I hadn’t even thought it could be the fonts’ fault, this means that I can at least look for a different font and solve my problem this way. Thank you!

arispan-rgb | 2021-05-02 22:56