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

TFont

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

The Font to be used for drawing Text

Declaration

Source position: graphics.pp line 459

type TFont = class(TFPCustomFont)

protected

  function GetCharSet;

  

  function GetHeight;

  

  function GetName;

  

  function GetPitch;

  

  function GetSize;

  

  function GetStyle;

  

  procedure Changed; override;

  

  procedure DoAllocateResources; override;

  

  procedure DoCopyProps(); override;

  

  procedure DoDeAllocateResources; override;

  

  procedure SetCharSet();

  

  procedure SetColor();

  

  procedure SetFlags(); override;

  

  procedure SetFPColor(); override;

  

  procedure SetHeight();

  

  procedure SetName(); override;

  

  procedure SetPitch();

  

  procedure SetSize(); override;

  

  procedure SetStyle();

  

public

  constructor Create; override;

  

Font constructor

  destructor Destroy; override;

  

Font destructor

  procedure Assign();

  

  procedure BeginUpdate;

  

  procedure EndUpdate;

  

  function HandleAllocated;

  

  property Handle: HFONT; [rw]

  

  function IsDefault;

  

  function IsEqual(); virtual;

  

  property IsMonoSpace: Boolean; [r]

  

  procedure SetDefault;

  

  property CanUTF8: Boolean; [r]

  

  property PixelsPerInch: Integer; [rw]

  

  property Reference: TWSFontReference; [r]

  

published

  property CharSet: TFontCharSet; [rw]

  

The Character Set to be used by the currentFont

  property Color: TColor; [rw]

  

Colour of the current Font

  property Height: Integer; [rw]

  

The Height of the current Font

  property Name: String; [rws]

  

Name of the Font

  property Pitch: TFontPitch; [rw]

  

Pitch type of the Font

  property Size: Integer; [rws]

  

FontSize in pixels

  property Style: TFontStyles; [rw]

  

Style of the Font

end;

Inheritance

TFont

  

The Font to be used for drawing Text

|

TFPCustomFont

?

TObject

Description

Most of the data about the font are dealt with by the protected procedures GetData and SetData which operate on TFontData

Individual properties such as Character Set, colour and size can be accessed in the public area

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