C4 Engine
C4 Engine API Documentation

TextWidget::MeasureText

Defined in:  C4Widgets.h
Returns the rendered width of the text string.
Prototype

float MeasureText(voidconst;

Description
The MeasureText function calculates the width of the string stored in a text widget, in pixels, and returns it. All enabled layout settings and format directives are applied to the string.