[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 559

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). Changed is called to signal the OnChange event handler (when assigned).

Use Size to read or write the height for the font as a number of Points (1/72 inch).

The latest version of this document can be found at lazarus-ccr.sourceforge.net.