Function Font.drawText

Draw text string to buffer.

Prototype

void drawText(
  DrawBuf buf,
  int x,
  int y,
  const(dchar[]) text,
  uint color,
  int tabSize = 4,
  int tabOffset = 0,
  uint textFlags = 0u
);

Parameters

NameDescription
buf graphics buffer to draw text to
x x coordinate to draw first character at
y y coordinate to draw first character at
text text string to draw
color color for drawing of glyphs
tabSize tabulation size, in number of spaces
tabOffset when string is drawn not from left position, use to move tab stops left/right
textFlags set of TextFlag bit fields

Authors

Vadim Lopatin, coolreader.org@gmail.com

Copyright

Vadim Lopatin, 2014

License

Boost License 1.0