Class TFontStyleNode
Unit
X3DNodes
Declaration
type TFontStyleNode = class(TAbstractFontStyleNode)
Description
Defines the size, family, style and other properties used for TTextNode.
Hierarchy
Overview
Internal Types
Fields
Methods
Properties
Description
Internal Types
Fields
 |
internal const DefaultSize = 1.0; |
|
 |
internal const DefaultSpacing = 1.0; |
|
 |
internal const DefaultFamily = ffSerif; |
|
 |
internal const DefaultBold = false; |
|
 |
internal const DefaultItalic = false; |
|
 |
internal const DefaultJustify = fjBegin; |
|
 |
internal const DefaultJustifyMinor = fjFirst; |
|
 |
internal const DefaultBlending = true; |
|
 |
class var OnFont: TFontEvent; |
Adjust the font used for a given FontStyle node. Assign here a callback which can modify a font. You can look at any font style properties to decide how to adjust the font, like Bold, Italic, Family.
You can always decide to leave the given "Font" instance at the default value, or to modify it.
The font instance set here is a TTextureFontData instance. You can load it from a TTF file by TTextureFontData.Create, or you can assign here a TTextureFontData instance defined by a unit generated by texture-font-to-pascal. See http://castle-engine.sourceforge.net/tutorial_text.php about using texture-font-to-pascal. In the first case, remember that it is your resposibility to free this font later, but only after all possible Text nodes using this font are destroyed.
|
Methods
 |
procedure CreateNode; override; |
|
 |
class function ClassX3DType: string; override; |
|
 |
class function URNMatching(const URN: string): boolean; override; |
|
 |
class function ForVRMLVersion(const Version: TX3DVersion): boolean; override; |
|
Properties
 |
property FdHorizontal: TSFBool read FFdHorizontal; |
|
 |
property FdJustify: TMFString read FFdJustify; |
|
 |
property JustifyMinor: TX3DFontJustify read GetJustifyMinor write SetJustifyMinor; |
|
 |
property FdLanguage: TSFString read FFdLanguage; |
|
 |
property FdLeftToRight: TSFBool read FFdLeftToRight; |
|
 |
property FdSpacing: TSFFloat read FFdSpacing; |
|
 |
property Bold: boolean read GetBold write SetBold; |
|
 |
property Italic: boolean read GetItalic write SetItalic; |
|
 |
property FdTopToBottom: TSFBool read FFdTopToBottom; |
|
 |
property FdBlending: TSFBool read FFdBlending; |
|
 |
property Blending: boolean read GetBlending write SetBlending; |
|
 |
property Horizontal: boolean read GetHorizontal write SetHorizontal; |
|
 |
property Language: string read GetLanguage write SetLanguage; |
|
 |
property LeftToRight: boolean read GetLeftToRight write SetLeftToRight; |
|
 |
property Size: Single read GetSize write SetSize; |
|
 |
property Spacing: Single read GetSpacing write SetSpacing; |
|
 |
property TopToBottom: boolean read GetTopToBottom write SetTopToBottom; |
|
Generated by PasDoc 0.15.0.
|