FabGL
ESP32 Display Controller and Graphics Library

◆ setGlyphOptions()

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.

Parameters
optionsA 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.