FabGL
ESP32 VGA Controller and Graphics Library
|
void fabgl::CanvasClass::selectFont | ( | FontInfo const * | fontInfo | ) |
Select a font to use for the next text drawings.
fontInfo | Pointer to font structure containing font info and glyphs data. |
Examples:
// Set a font for about 40x14 text screen Canvas.selectFont(Canvas.getPresetFontInfo(40, 14)); // Set the 8x8 predefined font (FONT_8x8 defined in font_8x8.h) Canvas.selectFont(&FONT_8x8);