TFont.Size property
Vertical size for the font in Points.
Declaration
property Size: stored False;Description
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.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
