how to scale the text in a Label to fit it while the text gets longer?

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

how to scale the text in a Label to fit it while the text gets longer?

So I have a big Problem, I have a fixed size Label and I want to scale text in it based of how much text is in it. The Label is an EXP counter for my project. After the amount of reaching the next level is to high the text is out of bounds, not scaling(shrinking) to stay in the HBox it’s in.

Thanks for your help!

:bust_in_silhouette: Reply From: kidscancode

You can use the get_string_size() Font method to find out the size of your text, and reduce size until it fits in your required space.