Rich text on TextLabel with TextScaled enabled is visible when label is size 0

Recently, TextScaled support for RichText was enabled. It works fine; however, when the label is set to size 0 on either axis the text will still be visible on a thin strip (1-2px it looks like)

Configuration of TextLabel:

After setting the size of the label to 0, 0:
image
image

This bug has been happening since TextScaled support for RichText was enabled.

4 Likes

I am also able to reproduce this issue. I think part of this issue is caused by RichText having a minimum size of 2px.

Image showcasing it

2 Likes

Hi, thanks for your report! We are looking into fixing rendering the zero size rich text. While there is a side note if you plan to use scaled to animate/dynamically fit rich text into certain area:
Our system has minimum text size limit and for the rich text feature we removed the restriction that it only display the glyph within the bounding area of TextLabel/Button. Which means it renders text at the minimum size with displaying all the out of bounds glyphs when scale-to-fit area is too small. If you still expect only rendering lines within the bound, you could manually check ClipsDescendants on RichText enabled text objects, which should give you same result with scaled non-rich text labels.

2 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 7 days after the last reply. New replies are no longer allowed.