RichText causing increased text bounds for commas and dots

When RichText is enabled, putting commas and dots next to quotation marks will increase the TextBounds.

I am creating a stylized code editor feature for an update to SCP: Roleplay and noticed this issue. I first thought this could be a bug with my code, but when I compared the text of both texts they matched correctly and I could even repro this in a separate place.

image
image

You can see that the text looks “blurry” once you put them both together. This is due to the slightly increased spacing that shouldn’t be there.

richtext gui bug repro.rbxm (4.7 KB)

2 Likes

Hi @MetatableIndex, we reviewed this case. The underlying problem seems to be that we process each rich text “group” as a single entity, so we are not finding the ligature connection between the last " and the , that follows, hence, the spacing is different than non-rich text. This is a design decision at the moment that we do not intend to change. We will consider this as a requirement for the future.

1 Like