FabGL
ESP32 Display Controller and Graphics Library

◆ selectFont()

void selectFont ( FontInfo const *  fontInfo)

Selects a font to use for the next text drawings.

Parameters
fontInfoPointer to font structure containing font info and glyphs data.

Examples:

// Set a font for about 40x14 text screen
Canvas.selectFont(fabgl::getPresetFontInfo(Canvas.getWidth(), Canvas.getHeight(), 40, 14));

// Set the 8x8 predefined font
Canvas.selectFont(&fabgl::FONT_8x8);

Definition at line 381 of file canvas.cpp.