TTMSFNCGraphicsContextUnix.CalculateText Method
Calculates the bounding rectangle required to render the given text.
API unit family: TMSFNCGraphics.Unix
Declaring type: TTMSFNCGraphicsContextUnix
Syntax
function CalculateText(AText: string; ARect: TRectF; AWordWrapping: Boolean): TRectF; override;
Parameters
| Name | Description |
|---|---|
AText |
The text string to measure. |
ARect |
The available bounding rectangle used as the measurement constraint. |
AWordWrapping |
Set to True to allow the text to wrap across multiple lines. |
Returns
The tightest rectangle that contains the rendered text.