Click or drag to resize

FontGetCharSize Method

Returns the size of a character, optionally taking kerning into account if the next character is provided. Note that the height returned is the font height (see GetHeight) and has no relation to the glyph height.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector2 GetCharSize(
	int char,
	int next = 0
)

Parameters

char
Type: SystemInt32

[Missing <param name="char"/> documentation for "M:Godot.Font.GetCharSize(System.Int32,System.Int32)"]

next (Optional)
Type: SystemInt32

[Missing <param name="next"/> documentation for "M:Godot.Font.GetCharSize(System.Int32,System.Int32)"]

Return Value

Type: Vector2

[Missing <returns> documentation for "M:Godot.Font.GetCharSize(System.Int32,System.Int32)"]

See Also