From RAD Studio API Documentation
Jump to: navigation, search


property Size: Integer read GetSize write SetSize;


__property int Size = {read=GetSize, write=SetSize, nodefault};


Type Visibility Source Unit Parent
property public
Vcl.ComCtrls TTextAttributes


Specifies the height of the font in points.

To specify a font height in points, use the Size property. To specify the size of the font in pixels instead, use the Height property. Users usually specify font size in points within an application, while programmers are usually concerned with the actual size of the font in pixels when displaying a font on the screen.

The relationship between the Height and Size properties is expressed by the formula:

Size = Height * 72 / ScreenPixelsPerInch

Note: Unlike the Size property of a TFont object, the Size property of a TTextAttributes object always omits the internal leading that appears at the top of the font.

See Also