|
FabGL
ESP32 Display Controller and Graphics Library
|
| void setGlyphOptions | ( | GlyphOptions | options | ) |
Sets drawing options for the next glyphs.
Setting glyph options allows to slightly change how a glyph is rendered, applying effects like Bold, Italic, Inversion, double width or height and so on.
Because Canvas draws text using glyphs these options affects also how text is rendered.
| options | A bit field to specify multiple options |
Example:
// Draw "Hello World!" Canvas.setGlyphOptions(GlyphOptions().FillBackground(true).DoubleWidth(1)); Canvas.drawText(20, 20, "Hello World!");
Definition at line 358 of file canvas.cpp.