FabGL
ESP32 Display Controller and Graphics Library

◆ textExtent() [2/2]

int 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).

Definition at line 453 of file canvas.cpp.