RichText doesn't wrap properly

When using RichText, text wrapping does not work properly (text wraps in the middle of a word)

Here’s an example of it not working properly:
image

and here’s what it should look like (RichText disabled)
image

9 Likes

I would like to point out to Roblox staff that as minor as this is, it does create complications in UI design, and does slow down development enough to make note of it.

This might have to do with not reading the string properly, where it may be trying to get wrap data with the modifiers, such as font color in your case, albeit this is just a theory and I have nothing solid to back it.

4 Likes

You could simply just fix it by adding some spaces so instead of putting “Would you like to purchase Basic Stand for $129?” change it to “Would you like to purchase Basic Stand for [more than 1 space] $129?” the extra spaces may make the $129 go on the bottom line entirely. Of course it sounds like (and is) a cheap fix.

This isn’t a solution because TextScaled makes the formatting different on everyone’s screen.

3 Likes

Thanks for the report! We’ve filed a ticket to our internal database and we’ll follow up when we have an update for you.

7 Likes

Thanks for your report~ We already did a fix for this layout issue and make things always wrap against spaces if possible. This change will be shipped with the textScaled support we newly added for rich text.
Currently the release is planned around December 10th according to adjusted end-of-year release schedule.

10 Likes

This issue should now be resolved! If this issue is still occurring, please create a new topic for us to look into.

2 Likes

This topic was automatically closed after 7 days. New replies are no longer allowed.