- Home /
How to calculate font size (or scale) for a given area base on how long a string is?
I want to automatically resize (or rescale) a font to best fit a textbox base on the length of a string. I'm currently using TextMeshProUGUI but the docs don't help me much.
Comment
just below font size option, you will find auto size option. that should do the trick
@nanavatidhruvik Thank you! It works! Can you add a reply for me to accept the answer?
Best Answer
Answer by $$anonymous$$ · Aug 05, 2020 at 06:20 PM
just below font size option, you will find auto size option. that should do the trick
Also, remember to change the auto-size options like $$anonymous$$in and $$anonymous$$ax.