Class TFontStyleNode

Unit

Declaration

type TFontStyleNode = class(TAbstractFontStyleNode)

Description

Defines the size, family, style and other properties used for TTextNode.

Hierarchy

Overview

Fields

Public nested const DefaultSize = 1.0;
Public nested const DefaultSpacing = 1.0;
Public nested const DefaultFamily = ffSerif;
Public nested const DefaultBold = false;
Public nested const DefaultItalic = false;
Public nested const DefaultJustify = fjBegin;
Public nested const DefaultJustifyMinor = fjFirst;
Public nested const DefaultBlending = true;

Methods

Public constructor Create(const AX3DName: string = ''; const ABaseUrl: String = ''); override;
Public destructor Destroy; override;
Public class function ForVRMLVersion(const Version: TX3DVersion): boolean; override;
Public function Font: TCastleFont;
Public procedure CreateNode; override;
Public class function ClassX3DType: String; override;

Properties

Public property Family: TX3DFontFamily read GetFamily write SetFamily;
Public property Justify: TX3DFontJustify read GetJustify write SetJustify;
Public property JustifyMinor: TX3DFontJustify read GetJustifyMinor write SetJustifyMinor;
Public property Bold: boolean read GetBold write SetBold;
Public property Italic: boolean read GetItalic write SetItalic;
Public property CustomFont: TCastleFont read FCustomFont write SetCustomFont;
Public property FdFamily: TMFString read FFdFamily;
Public property FdHorizontal: TSFBool read FFdHorizontal;
Public property Horizontal: Boolean read GetHorizontal write SetHorizontal;
Public property FdJustify: TMFString read FFdJustify;
Public property FdLanguage: TSFString read FFdLanguage;
Public property Language: String read GetLanguage write SetLanguage;
Public property FdLeftToRight: TSFBool read FFdLeftToRight;
Public property LeftToRight: Boolean read GetLeftToRight write SetLeftToRight;
Public property FdSize: TSFFloat read FFdSize;
Public property Size: Single read GetSize write SetSize;
Public property FdSpacing: TSFFloat read FFdSpacing;
Public property Spacing: Single read GetSpacing write SetSpacing;
Public property FdStyle: TSFStringEnum read FFdStyle;
Public property Style: TX3DFontStyle read GetStyle write SetStyle;
Public property FdTopToBottom: TSFBool read FFdTopToBottom;
Public property TopToBottom: Boolean read GetTopToBottom write SetTopToBottom;
Public property FdBlending: TSFBool read FFdBlending;
Public property Blending: Boolean read GetBlending write SetBlending;

Description

Fields

Public nested const DefaultSize = 1.0;
 
Public nested const DefaultSpacing = 1.0;
 
Public nested const DefaultFamily = ffSerif;
 
Public nested const DefaultBold = false;
 
Public nested const DefaultItalic = false;
 
Public nested const DefaultJustify = fjBegin;
 
Public nested const DefaultJustifyMinor = fjFirst;
 
Public nested const DefaultBlending = true;
 

Methods

Public constructor Create(const AX3DName: string = ''; const ABaseUrl: String = ''); override;
 
Public destructor Destroy; override;
 
Public class function ForVRMLVersion(const Version: TX3DVersion): boolean; override;
 
Public function Font: TCastleFont;

Font used by this node, determined by our fields (like Bold) and TFontStyleNode.CustomFont.

Public procedure CreateNode; override;

Create node fields and events.

Public class function ClassX3DType: String; override;
 

Properties

Public property Family: TX3DFontFamily read GetFamily write SetFamily;
 
Public property Justify: TX3DFontJustify read GetJustify write SetJustify;
 
Public property JustifyMinor: TX3DFontJustify read GetJustifyMinor write SetJustifyMinor;
 
Public property Bold: boolean read GetBold write SetBold;
 
Public property Italic: boolean read GetItalic write SetItalic;
 
Public property CustomFont: TCastleFont read FCustomFont write SetCustomFont;

Adjust the font.

TODO: Currently this only allows TCastleFont. In the future it should allow any TCastleAbstractFont, like TCastleFontFamily (thus have different options for bold/italic variants) or TCastleBitmapFont.

Public property FdFamily: TMFString read FFdFamily;

Internal wrapper for property Family. This wrapper API may change, we advise to access simpler Family instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property FdHorizontal: TSFBool read FFdHorizontal;

Internal wrapper for property Horizontal. This wrapper API may change, we advise to access simpler Horizontal instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property Horizontal: Boolean read GetHorizontal write SetHorizontal;
 
Public property FdJustify: TMFString read FFdJustify;

Internal wrapper for property Justify. This wrapper API may change, we advise to access simpler Justify instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property FdLanguage: TSFString read FFdLanguage;

Internal wrapper for property Language. This wrapper API may change, we advise to access simpler Language instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property Language: String read GetLanguage write SetLanguage;
 
Public property FdLeftToRight: TSFBool read FFdLeftToRight;

Internal wrapper for property LeftToRight. This wrapper API may change, we advise to access simpler LeftToRight instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property LeftToRight: Boolean read GetLeftToRight write SetLeftToRight;
 
Public property FdSize: TSFFloat read FFdSize;

Internal wrapper for property Size. This wrapper API may change, we advise to access simpler Size instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property Size: Single read GetSize write SetSize;
 
Public property FdSpacing: TSFFloat read FFdSpacing;

Internal wrapper for property Spacing. This wrapper API may change, we advise to access simpler Spacing instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property Spacing: Single read GetSpacing write SetSpacing;
 
Public property FdStyle: TSFStringEnum read FFdStyle;

Internal wrapper for property Style. This wrapper API may change, we advise to access simpler Style instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property Style: TX3DFontStyle read GetStyle write SetStyle;
 
Public property FdTopToBottom: TSFBool read FFdTopToBottom;

Internal wrapper for property TopToBottom. This wrapper API may change, we advise to access simpler TopToBottom instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property TopToBottom: Boolean read GetTopToBottom write SetTopToBottom;
 
Public property FdBlending: TSFBool read FFdBlending;

Internal wrapper for property Blending. This wrapper API may change, we advise to access simpler Blending instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart).

Public property Blending: Boolean read GetBlending write SetBlending;
 

Generated by PasDoc 0.16.0.