Font.drawText

Draw text string to buffer.

class Font
void
drawText
(,
int x
,
int y
,
const dchar[] text
,
uint color
,
int tabSize = 4
,
int tabOffset = 0
,
uint textFlags = 0
)

Parameters

buf DrawBuf

graphics buffer to draw text to

x int

x coordinate to draw first character at

y int

y coordinate to draw first character at

text dchar[]

text string to draw

color uint

color for drawing of glyphs

tabSize int

tabulation size, in number of spaces

tabOffset int

when string is drawn not from left position, use to move tab stops left/right

textFlags uint

set of TextFlag bit fields

Meta