FabGL
ESP32 Display Controller and Graphics Library

◆ drawChar()

void drawChar ( int  X,
int  Y,
char  c 
)

Draws a character at specified position.

drawChar() uses currently selected font (selectFont() method) and currently selected glyph options (setGlyphOptions() method).

Parameters
XHorizontal position of character left side.
YVertical position of character top side.
cCharacter to draw (an index in the character font glyphs set).

Example:

// Draw a 'C' at position 100, 100
Canvas.drawChar(100, 100, 'C');

Definition at line 395 of file canvas.cpp.