Sign in Join
FPDoc Onlineexperiment

TCanvas.DoCreateDefaultFont function

Member of TCanvasprotectedIn unit Graphics

Creates the TFont instance used as the default font for the canvas.

Declaration

pascal
function DoCreateDefaultFont: TFPCustomFont; override

Function result

TFont instance created in the method.

Description

DoCreateDefaultFont is an overridden method in TCanvas used to create the TFont instance used as the default font for the canvas. The return value contains the TFont instance created in the method.

DoCreateDefaultFont implements the abstract method defined in the TFPCustomCanvas ancestor. It is called from the inherited CreateDefaultFont method, and ensures that a font resource has been allocated for the Font property.

See also

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