Documentation

Get Text Dimensions - Open Dev Kit Documentation

Open Dev Kit Documentation :: GUI :: Get Text Dimensions

GUI.GetTextDimensions(
  Text String,
  Font Font*,
  Wrap Width Integer
) 2D Vector
Returns the dimensions of text with a specified font; not as optimized as the RenderContext version as an internal context must be used anyway

Parameters

Text String
Text to measure
Font Font*
Font used for rendering the text
Wrap Width Integer
Width at which to wrap text; 0 for no wrapping

Return Value

2D Vector

If you think anything is missing, please feel free to: submit documentation feedback on this page