Click or drag to resize

FontGetStringSize Method

Returns the size of a string, taking kerning and advance into account. Note that the height returned is the font height (see GetHeight) and has no relation to the string.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector2 GetStringSize(
	string string
)

Parameters

string
Type: SystemString

[Missing <param name="string"/> documentation for "M:Godot.Font.GetStringSize(System.String)"]

Return Value

Type: Vector2

[Missing <returns> documentation for "M:Godot.Font.GetStringSize(System.String)"]

See Also