Scaled text without wrapping

I want my text to scale to fit its container, but it is only one word. I do not want the single word to be wrapped over multiple lines, I simply want the text to become smaller so that the word fits on a single line.

image

Currently the only way to achieve this is to manually configure the TextSize with TextScaled off until TextFits is true, or, calculate the undocumented properties of different fonts and derive some formula.

76 Likes

Support, i run into this issue all the time.

1 Like

This would be awesome!

The most irritating issue for GUI creation
Support!

1 Like

Iirc this used to be a thing but it was removed because it wasn’t intended behaviour - I’d definitely like to see it return though

I’d love to have this added. When I’m making UIs, I usually spent up to 25 minutes trying to make text scale without wrapping. It is an absolute pain to deal with every time I go to make a new UI.

I’ve had issues with this in the past. We definitely need this:

2 Likes

I’ve always been puzzled as to why this feature wasn’t already in existance. Shouldn’t be ridiculously hard to implement, and would be useful to the community. Support.

It’d probably make sense to have a property to specify what axis the text scaling should be based on (i.e. fitting horizontally or vertically) :thinking: Not sure if there’s many cases where it’s useful for dynamic text to scale to fit its container in both directions (which is too unpredictable stylewise), which seems to be what .TextScaled currently does

Text scaling is still a mess. Cutting words in half and splitting them in multiple lines should be treated as a bug because there is no way this is supposed to be intentional. It isn’t good UX and turning TextScaled off is not a viable option.

(TextScaled on, small screen)
image
(TextScaled off, big screen)
image

5 Likes

Support
The current behavior makes it unnecessarily difficult to properly make guis that scale well across platforms. This would be a real improvement to gui creation

2 Likes

Going to bump this because it’s an important subject.

This is so frustrating when developing UI and I would love the option to scale text with out it being wrapped.

@Tiffblocks is this going to be supported in your re-design of the UI system?

3 Likes

The update you’re referring to shipped in October of last year. I’m planning on adding additional ways to set the size of text besides just setting the size in pixels, such as being able to set it to a Scale value. I don’t know when I’ll have time to do that though.

2 Likes

Ah, I’m referring to the fact that you can’t scale text without automatically having text wrapping turned on.

2 Likes

Still waiting??? Text scaled without wrapping should have been a feature since the begin of studio. Sadly we are still waiting :confused:
image

1 Like

Why isn’t this fixed yet? Very odd.

2 Likes

One “Solution” I found was to just set the line height to the max which is 3. this should word as long as the text item doesn’t have automatic scaling enabled, and the text item isn’t too vertically enlarged.