FabGL
ESP32 Display Controller and Graphics Library

◆ textExtent() [1/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 445 of file canvas.cpp.