FontDraw Method |
Draw string into a canvas item using the font at a given position, with modulate color, and optionally clipping the width. position specifies the baseline, not the top. To draw from the top, ascent must be added to the Y axis.
See also DrawString(Font, Vector2, String, NullableColor, Int32).
Namespace: Godot
public void Draw( RID canvasItem, Vector2 position, string string, Color? modulate = null, int clipW = -1, Color? outlineModulate = null )
[Missing <param name="canvasItem"/> documentation for "M:Godot.Font.Draw(Godot.RID,Godot.Vector2,System.String,System.Nullable{Godot.Color},System.Int32,System.Nullable{Godot.Color})"]
[Missing <param name="position"/> documentation for "M:Godot.Font.Draw(Godot.RID,Godot.Vector2,System.String,System.Nullable{Godot.Color},System.Int32,System.Nullable{Godot.Color})"]
[Missing <param name="string"/> documentation for "M:Godot.Font.Draw(Godot.RID,Godot.Vector2,System.String,System.Nullable{Godot.Color},System.Int32,System.Nullable{Godot.Color})"]
[Missing <param name="clipW"/> documentation for "M:Godot.Font.Draw(Godot.RID,Godot.Vector2,System.String,System.Nullable{Godot.Color},System.Int32,System.Nullable{Godot.Color})"]