Table of Contents

TTMSFNCGraphics.CalculateTextWidthInt Method

Returns the single-line rendered width of AText as a whole-pixel integer using the current font.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphics

Syntax

function CalculateTextWidthInt(AText: string): Integer; overload; virtual;

Parameters

Name Description
AText Text string to measure.

Returns

The rendered width in whole pixels.