FabGL
ESP32 VGA Controller and Graphics Library

◆ drawChar()

void fabgl::CanvasClass::drawChar ( int  X,
int  Y,
char  c 
)

Draw 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');