Title says it all
local Success, err = pcall(function()
local TextBoundParams = Instance.new("GetTextBoundsParams")
TextBoundParams.Text = word
TextBoundParams.Font = Font.fromName(Properties.Font)
TextBoundParams.Size = TextSize
TextBoundParams.Width = Camera.ViewportSize.X
local WordLength = TextService:GetTextBoundsAsync(TextBoundParams)
return WordLength
end)
if not Success then
warn(err)
end
20:53:23.422 Font family rbxasset://fonts/families/BungeeInline.json failed to load: Temp read failed. - Studio
20:53:23.423 Temp read failed. - Client - RichText:455
Please note I NEED this to work from the name, not Ids. I don’t wanna have to go looking for Ids manually everytime I try this with fonts. Unless there’s a way to get id from name?