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

TCanvas.DoCreateDefaultFont

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

Declaration

Source position: graphics.pp line 1033

protected function TCanvas.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

TCanvas.Font

  

Contains the Font used to render text on the drawing surface.

TFont

  

Represents a font used to draw text in an application.


Version 3.2 Generated 2024-02-25 Home