Problems with rich text (probably bug)

Hello, I’m making GUI for my plugin. But I noticed 1 very bad thing with rich text - it ABSOLUTELY BREAKS TextSize property:


Look at the text “replace with”. At the left, you see manually created GUI, at the right - Gui created with script. The only diffirence that should be here is text color diffirence, but as you can notice, right text much bigger than left one. You can notice same thing with “Material settings” text.
But the most interesting thing that here EVERY property exept text color is the same.
Can someone tell me, why I receive so strange result with RichText usage?

1 Like

Do you have TextScaled on?

If not, since the GUI is made with code, could you provide related code here?

1 Like

No, TextScaled is off. Here’s that code part:

local Text = Instance.new("TextLabel")
Text.RichText = true
Text.Text = "<b>Add replacement link</b>" -- any text
Text.TextSize = 10
Text.Size = UDim2.new(1, -100, 0, 40)
Text.AnchorPoint = Vector2.new(0.5, 0)
Text.Position = UDim2.new(0.5, 0, 0, 5)
Text.ZIndex = 200
GUIforRecoloring[Text] = "Basic"
Text.Parent = AddLink
1 Like

I’ve tested your code, and nothing in it seems to be off. It works as expected for me, so maybe it is just on you? Maybe check the properties of the code-generated TextLabel and see if the TextSize property is all right?

1 Like