Sign in Join
FPDoc Onlineexperiment

GetFontData function

In unit Graphics

Gets font data for the specified font handle.

Declaration

pascal
function GetFontData(Font: HFont): TFontData

Arguments

Font

Font handle with the logical font data read in the routine.

Function result

TFontData structure with values read in the routine.

Description

Values from DefFontData are assigned as the default return value for the routine. No additional actions are performed in the routine when Font contains 0 (for an unassigned font handle). When the font handle is valid, the following members in the return value are updated:

  • Name
  • Height
  • Style
  • CharSet
  • Pitch
  • Orientation
  • Handle

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.