TFont.Height property
Height for the font (in pixels).
Declaration
property Height: Integer read GetHeight write SetHeight stored IsHeightStored;Description
Height is an
Integer property which contains the height
for the font in pixels. The property value is not stored during LCL streaming
operations when its value is the same as the value in
DefFontData.
Setting a new value for the property causes the font handle in
Reference to be re-created. Size is also updated with
the new property value converted to Points (1/72 of an inch). The formula for
the conversion is:
Size := -MulDiv(AValue, 72, FPixelsPerInch);
Changed is called to signal the
OnChange event handler
(when assigned).
When a value is assigned to Height, the value in Size is represented as a negative number. Conversely, when a value is assigned to Size, the value in Height is represented as a negative number.
Use Size to read or write the height for the font as a number of Points (1/72 inch).
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
