function TextWidth(const Text: String): Integer;

function TextWidthW(const Text: Widestring): Integer;


Returns the width, in pixels, of a string rendered in the current Font.


Please note that the CLX versions of the non-Unicode methods do also default to Widestring because that is the native QT string format.


See Also

RenderText, TextExtent, TextHeight, TextOut, Font