GetTextWidth
Measure the pixel width of a text string at a given font size.
Syntax
Susano.GetTextWidth(text, size_px) -> numberParameters
Return(s)
Behavior
Example(s)
local w = Susano.GetTextWidth("hello overlay", 18)
Susano.BeginFrame()
Susano.DrawRect(100, 240, w + 10, 24, 1,1,1, 1, 1)
Susano.DrawText(105, 260, "hello overlay", 18, 1,1,1, 1)
Susano.SubmitFrame()Last updated