[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Vertical size for the font in Points.
Source position: graphics.pp line 596
published property TFont.Size : Integer |
Size is an Integer property which contains the height for the font in Points (1/72 of an inch). The value in Size is calculated using the logical font height, and is not read or written in LCL component streaming.
Setting a new value for the property causes the font Reference to be re-created for the class instance. The new property value is stored by calling SetSize in the ancestor class. The value is also converted to pixels (using PixelsPerInch) and stored in the Height property. The formula used for the conversion is:
FHeight := -MulDiv(AValue, FPixelsPerInch, 72);
When a value is assigned to Size, the value in Height is represented as a negative number. Conversely, when a value is assigned to Height, the value in Size is represented as a negative number.
Use the Height property to set the vertical size for the font as a number of pixels.
|
Height for the font (in pixels). |
|
|
Display density for the font. |
|
|
Reference - References made to this Font. |
Version 3.2 | Generated 2024-02-25 | Home |