GetTextSize() not returning the same size as TextBounds

I’m curious as to why these two return different values? I’m trying to get how many pixels the text takes up, and while I want to use TextBounds, there’s a bug that prevents me from using it

So I figured GetTextSize would work and return the exact same values, but apparently not.

Code

local GetTextSize = TextService:GetTextSize(Button.Cost.Text, Button.Cost.TextSize, Button.Cost.Font, 
Button.Cost.AbsoluteSize)
local TextBounds = Button.Cost.TextBounds

print(GetTextSize.X) -- returns 5
print(TextBounds.X) -- returns 18

Could you try passing Button.Cost.TextSize * 3 as the text size?

Why would I need to do that tho?

Text size is more like the font size. This is useful if you used text scaled because then you can retrieve the text size. If you just want the text bounds just use TextLabel.TextBounds instead, this is an intended feature.

I did want to use TextBounds