RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTextAttributes.Size Property

Specifies the height of the font in points.

Pascal
property Size: Integer;
C++
__property int Size;

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.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!