Class TFontStyleNode
Unit
Declaration
type TFontStyleNode = class(TAbstractFontStyleNode)
Description
Defines the size, family, style and other properties used for TTextNode.
Hierarchy
- TObject
- TPersistent
- TNonRefCountedInterfacedPersistent
- TX3DFileItem
- TX3DNode
- TAbstractNode
- TAbstractFontStyleNode
- TFontStyleNode
Overview
Nested Types
![]() |
TFontEvent = procedure (const FontStyle: TFontStyleNode; var Font: TTextureFontData) of object; |
Fields
![]() |
nested const DefaultSize = 1.0; |
![]() |
nested const DefaultSpacing = 1.0; |
![]() |
nested const DefaultFamily = ffSerif; |
![]() |
nested const DefaultBold = false; |
![]() |
nested const DefaultItalic = false; |
![]() |
nested const DefaultJustify = fjBegin; |
![]() |
nested const DefaultJustifyMinor = fjFirst; |
![]() |
nested const DefaultBlending = true; |
![]() |
class var OnFont: TFontEvent; |
Methods
![]() |
procedure CreateNode; override; |
![]() |
class function ClassX3DType: string; override; |
![]() |
class function ForVRMLVersion(const Version: TX3DVersion): boolean; override; |
![]() |
function Font: TTextureFontData; |
Properties
![]() |
property FdFamily: TMFString read FFdFamily; |
![]() |
property Family: TX3DFontFamily read GetFamily write SetFamily; |
![]() |
property FdHorizontal: TSFBool read FFdHorizontal; |
![]() |
property FdJustify: TMFString read FFdJustify; |
![]() |
property Justify: TX3DFontJustify read GetJustify write SetJustify; |
![]() |
property JustifyMinor: TX3DFontJustify read GetJustifyMinor write SetJustifyMinor; |
![]() |
property FdLanguage: TSFString read FFdLanguage; |
![]() |
property FdLeftToRight: TSFBool read FFdLeftToRight; |
![]() |
property FdSize: TSFFloat read FFdSize; |
![]() |
property FdSpacing: TSFFloat read FFdSpacing; |
![]() |
property FdStyle: TSFString read FFdStyle; |
![]() |
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; |
Description
Nested Types
![]() |
TFontEvent = procedure (const FontStyle: TFontStyleNode; var Font: TTextureFontData) of object; |
Fields
![]() |
nested const DefaultSize = 1.0; |
![]() |
nested const DefaultSpacing = 1.0; |
![]() |
nested const DefaultFamily = ffSerif; |
![]() |
nested const DefaultBold = false; |
![]() |
nested const DefaultItalic = false; |
![]() |
nested const DefaultJustify = fjBegin; |
![]() |
nested const DefaultJustifyMinor = fjFirst; |
![]() |
nested 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 https://castle-engine.io/manual_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 ForVRMLVersion(const Version: TX3DVersion): boolean; override; |
![]() |
function Font: TTextureFontData; |
|
Font used by this node, determined by our fields (like Bold) and OnFont. | |
Properties
![]() |
property FdFamily: TMFString read FFdFamily; |
![]() |
property Family: TX3DFontFamily read GetFamily write SetFamily; |
![]() |
property FdHorizontal: TSFBool read FFdHorizontal; |
![]() |
property FdJustify: TMFString read FFdJustify; |
![]() |
property Justify: TX3DFontJustify read GetJustify write SetJustify; |
![]() |
property JustifyMinor: TX3DFontJustify read GetJustifyMinor write SetJustifyMinor; |
![]() |
property FdLanguage: TSFString read FFdLanguage; |
![]() |
property FdLeftToRight: TSFBool read FFdLeftToRight; |
![]() |
property FdSize: TSFFloat read FFdSize; |
![]() |
property FdSpacing: TSFFloat read FFdSpacing; |
![]() |
property FdStyle: TSFString read FFdStyle; |
![]() |
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.16.0.

