UIScale does not apply scale to text strokes in rich text

Reproduction Steps

1. Create a TextLabel that has any text and a text stroke applied using RichText
2. Insert a UIScale object into the TextLabel and set it to any value (e.g. 0.5 or 2)
3. Observe how the text stroke’s thickness is not scaled with the rest of the TextLabel



Expected Behavior

The text stroke’s thickness should be scaled with the rest of the TextLabel

Note: Other RichText tags like font size do scale properly, so it should be expected that text strokes have the same behavior.

Actual Behavior

The text stroke’s thickness is not scaled with the rest of the TextLabel


Workaround

Using UIStroke objects instead will scale properly, however UIStroke objects do not work on TextLabels with RichText enabled, so if you need to change part of the text’s color or other properties, you cannot work around this issue.

Issue Area: Engine
Issue Type: Display
Impact: High
Frequency: Constantly

5 Likes

Thanks for the report. A ticket was filed to our internal database.

1 Like

Hi, I’m an engineer on the UI team, and we’ve added this to our backlog of issues to look into. Thanks for reporting!

2 Likes

This should now be fixed in the latest update. RichText stroke scales with UIScale in the same way as UIStroke with UIScale. Please let us know if you continue to have issues and we can investigate further!

While you’re here, are there any plans to add UDim to UIStrokes? So we can have scaling for different resolutions?

Thanks!

2 Likes

Thanks for bumping this feature! This is something that we are aware of and are planning to add in the future.

3 Likes

The original bug is fixed! Thanks again for the report.

1 Like