Click or drag to resize

CanvasItemDrawChar Method

Draws a string character using a custom font. Returns the advance, depending on the character width and kerning with an optional next character.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public float DrawChar(
	Font font,
	Vector2 position,
	string char,
	string next,
	Color? modulate = null
)

Parameters

font
Type: GodotFont

[Missing <param name="font"/> documentation for "M:Godot.CanvasItem.DrawChar(Godot.Font,Godot.Vector2,System.String,System.String,System.Nullable{Godot.Color})"]

position
Type: GodotVector2

[Missing <param name="position"/> documentation for "M:Godot.CanvasItem.DrawChar(Godot.Font,Godot.Vector2,System.String,System.String,System.Nullable{Godot.Color})"]

char
Type: SystemString

[Missing <param name="char"/> documentation for "M:Godot.CanvasItem.DrawChar(Godot.Font,Godot.Vector2,System.String,System.String,System.Nullable{Godot.Color})"]

next
Type: SystemString

[Missing <param name="next"/> documentation for "M:Godot.CanvasItem.DrawChar(Godot.Font,Godot.Vector2,System.String,System.String,System.Nullable{Godot.Color})"]

modulate (Optional)
Type: SystemNullableColor
If the parameter is null, then the default value is new Color(1, 1, 1, 1)

Return Value

Type: Single

[Missing <returns> documentation for "M:Godot.CanvasItem.DrawChar(Godot.Font,Godot.Vector2,System.String,System.String,System.Nullable{Godot.Color})"]

See Also