|
FabGL
ESP32 VGA Controller and Graphics Library
|
| void fabgl::CanvasClass::drawText | ( | int | X, |
| int | Y, | ||
| char const * | text, | ||
| bool | wrap = false |
||
| ) |
Draw a string at specified position.
drawText() uses currently selected font (selectFont() method) and currently selected glyph options (setGlyphOptions() method).
| X | Horizontal position of first character left side. |
| Y | Vertical position of first character top side. |
| text | String to draw (indexes in the character font glyphs set). |
| wrap | If true text is wrapped at the end of line. |
Example:
// Draw a 'Hello World!' at position 100, 100 Canvas.drawText(100, 100, "Hellow World!");