Measures the area occupied by a text string with the specified alignments, flag, and the specified font, on the canvas.
MeasureText is implemented by the TCanvas descendants to determine the rectangle area occupied by a text string with the specified wrapping, alignments, flag, and specified font. The string text is framed in a rectangle.
The ARect parameter specifies the bounding rectangle of the text. ARect is the return variable. If ARect is not initialized, the returned rectangle is centered in (0,0).
Bounding rectangle of the text.
Text to measure.
Word wrapping option. If it is True, it indicates that words are broken across lines to avoid text overflowing the layout box. If it is set to False, it indicates that words are kept within the same line even when the text overflows the layout box.
Reading direction of AText. For more information, see FMX.Graphics.TFillTextFlag.
Font of text to measure
Horizontal alignment of the text within ARect.
Vertical alignment of the text within ARect. AVTextAlign is optional. By default, it is set to Center.