Label automatic font-size

Hi, I’ve been learning about UI Toolkit and it seems like label can resize depending on its contents, but I couldn’t find an easy way to do the opposite (i.e.: fix the size of the label element and have font-size dynamically change to fit the content). Is there a way to do this? Thanks!

Hi @FVortex !

It is on the roadmap, but unfortunately, we haven’t gotten to it yet. The plan is to add an “Auto-Size” feature to UITK similar to what TMP offers. It will allow rendering the text to the size that best fits the container.

Note that the first implementation will likely only work with fix size containers.

Hi folks,
I’ve created a tool for auto-sizing labels if you need it, check it out on GitHub.