UIStroke does not apply outline to the text

I am trying to apply an outline to the text by parenting UIStroke to the semi-transparent TextLabel, setting the ApplyStrokeMode to Contextual and Thickness to 5. I was expecting this to happen (left example picture):

instead, I get this:


aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.rbxm (4.1 KB)

2 Likes

Try disabling the RichText property on the TextLabel.

After importing the rbxm file and disabling RichText, the UIStroke was visible for me.

forgot to add, is there a way to disable stroke rendering from inset where the original text is transparent?

just like the right picture:

this is what I get now

1 Like

From what I know, there’s not a way to get rid of the ‘inset’.

The picture from the documentation just says that the TextTransparency is 1 and that the Transparency on the UIStroke is 0. I’d assume different fonts have differing results for ‘overlap’ with the UIStroke.

I think the only thing you can do is lower the UIStroke Thickness until it no longer overlaps.