FabGL
ESP32 Display Controller and Graphics Library

◆ drawTextWithEllipsis()

void drawTextWithEllipsis ( FontInfo const *  fontInfo,
int  X,
int  Y,
char const *  text,
int  maxX 
)

Draws a string at specified position. Add ellipses before truncation.

Parameters
fontInfoPointer to font structure containing font info and glyphs data.
XHorizontal position of first character left side.
YVertical position of first character top side.
textString to draw (indexes in the character font glyphs set).
maxXMaximum horizontal coordinate allowed.

Definition at line 430 of file canvas.cpp.