Text.Size

static Vec2 Size(string text, TextStyle style)

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!

   
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.
static Vec2 Size(string text)

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 default style!

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




Found an issue with these docs, or have some additional questions? Create an Issue on Github!