|
FabGL2 2.0.0
ESP32 Display Controller and Graphics Library for ESP-IDF
|
| void drawText | ( | FontInfo const * | fontInfo, |
| int | X, | ||
| int | Y, | ||
| char const * | text, | ||
| bool | wrap = false ) |
Draws a string at the specified position, using the specified font.
drawText() uses the specified font and the glyph options set with setGlyphOptions().
| fontInfo | Pointer to the font structure containing font information and glyph data. |
| X | Horizontal position of the left side of the first character. |
| Y | Vertical position of the top side of the first character. |
| text | String to draw (indexes into the font glyph set). |
| wrap | If true, text wraps at the end of the line. |
Example:
// Draw a 'Hello World!' at position 100, 100 Canvas.drawText(&fabgl::FONT_8x8, 100, 100, "Hello World!");
Definition at line 409 of file canvas.cpp.