Text.Size

static Vec2 Size(string text, TextStyle style)

   
string text Text you want to find the size of.
TextStyle style The visual style of the text, see Text.MakeStyle or the TextStyle object for more details.
RETURNS: Vec2 The width and height of the text in meters.

Sometimes you just need to know how much room some text takes up! This finds the size of the text in meters, when using the indicated style!

static Vec2 Size(string text)

   
string text Text you want to find the size of.
RETURNS: Vec2 The width and height of the text in meters.

Sometimes you just need to know how much room some text takes up! This finds the size of the text in meters, when using the indicated style!