Font.draw

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 CanvasItem.drawString.

struct Font
@nogc nothrow const
void
draw
(,
in Vector2 position
,
in String string
,
in Color modulate = Color(1, 1, 1, 1)
,
in long clip_w = -1
,
in Color outline_modulate = Color(1, 1, 1, 1)
)

Meta