Font.drawChar

Draw character "char" into a canvas item using the font at a given position, with "modulate" color, and optionally kerning if "next" is passed. clipping the width. "position" specifies the baseline, not the top. To draw from the top, ascent must be added to the Y axis. The width used by the character is returned, making this function useful for drawing strings character by character.

struct Font
@nogc nothrow const
double
drawChar
(,
in Vector2 position
,
in long _char
,
in long next = -1
,
in Color modulate = Color(1, 1, 1, 1)
,
in bool outline = false
)

Meta