Class TCustomizedFont

Unit

Declaration

type TCustomizedFont = class(TCastleFont)

Description

Font that uses another TCastleFont for rendering and sizing, but modifies the underlying font size (by simple scaling). Simply set the Size property of this instance to non-zero to force the specific size.

The underlying font properties remain unchanged (so it can be still used for other purposes, directly or by other TCustomizedFont wrappers).

Do not get / set the Scale property of this instance, it will not do anything in current implementation and should always stay equal to 1.

Hierarchy

Overview

Methods

Protected procedure Notification(AComponent: TComponent; Operation: TOperation); override;
Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure PrepareResources; override;
Public procedure Print(const X, Y: Integer; const Color: TCastleColor; const S: string); override;
Public function TextWidth(const S: string): Integer; override;
Public function TextHeight(const S: string): Integer; override;
Public function TextHeightBase(const S: string): Integer; override;
Public function TextMove(const S: string): TVector2Integer; override;
Public function RealSize: Single; override;

Properties

Public property SourceFont: TCastleFont read FSourceFont write SetSourceFont;

Description

Methods

Protected procedure Notification(AComponent: TComponent; Operation: TOperation); override;
 
Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public procedure PrepareResources; override;
 
Public procedure Print(const X, Y: Integer; const Color: TCastleColor; const S: string); override;
 
Public function TextWidth(const S: string): Integer; override;
 
Public function TextHeight(const S: string): Integer; override;
 
Public function TextHeightBase(const S: string): Integer; override;
 
Public function TextMove(const S: string): TVector2Integer; override;
 
Public function RealSize: Single; override;
 

Properties

Public property SourceFont: TCastleFont read FSourceFont write SetSourceFont;
 

Generated by PasDoc 0.15.0.