Feedback on "TextService"

What is GetTextSizeOffsetAsync? It’s undocumented.

Also, it may be helpful to note on GetTextBoundsAsync that it doesn’t localise the text first, so the size may not be correct once localised by a text label (at least that appears to be our experience)

Affected URL: https://create.roblox.com/docs/reference/engine/classes/TextService

1 Like

Hi @Ed_Win5000 , I’ll document this.

Curious also, with your calls to GetTextBoundsAsync(), are you wrapping them in pcall() or just calling them outright?

Just calling it - should we be wrapping it?

I’d recommend wrapping anything async in pcall(), although you might still get the bounds of the pre-localized text. If that’s the case after you test out pcall() wrapping, please file another feedback request (I’ll be closing this one) and I can add a note in the docs.

Aside from that, I’ve also documented GetTextSizeOffsetAsync() which, as stated, basically gets the offset that’s added when a player increases their preferred text size.
https://create.roblox.com/docs/reference/engine/classes/TextService#GetTextSizeOffsetAsync

Hope this helps,
IgnisRBX