[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Graphics' (#lcl)

# TFont.Height

Height for the font (in pixels).

## Declaration

Source position: graphics.pp line 577

`published property TFont.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

TFont.Size |  | Vertical size for the font in Points.
TFont.Reference |  | Reference - References made to this Font.
TFont.PixelsPerInch |  | Display density for the font.