FabGL
ESP32 Display Controller and Graphics Library

◆ textExtent() [1/2]

int fabgl::Canvas::textExtent ( FontInfo const *  fontInfo,
char const *  text 
)

Calculates text extension in pixels.

Parameters
fontInfoPointer to font structure containing font info and glyphs data.
textString to calculate length (indexes in the character font glyphs set).