X3D FontStyle
Tag Name
FontStyle • Example
Tag Description
Describes the font family, size and direction for a Text node.
Component
Text
Tag Attributes
family
Field Type: MFString
Access Type: initializeOnly
Default Value: SERIF
Value Range: ...
Description: List of font family names in order of preference.
The following families are supported:
- SERIF
- SANS
- TYPEWRITER
horizontal
Field Type: SFBool
Access Type: initializeOnly
Default Value: TRUE
Value Range: ...
Description: Characters advance in a positve or negative direction along the X axis (TRUE) or Y axis (FALSE).
justify
Field Type: MFString
Access Type: initializeOnly
Default Value: BEGIN
Value Range: BEGIN END FIRST MIDDLE ""
Description: Sets the alignment of the text layout (horizontal, leftToRight, topToBottom) relative to the origin of the object coordinate system.
language
Field Type: SFString
Access Type: initializeOnly
Default Value: ""
Value Range: ...
Description: Sets the context of the language for the text string in the form of a language and a country (RFC3066).
leftToRight
Field Type: SFBool
Access Type: initializeOnly
Default Value: TRUE
Value Range: ...
Description: Indicate direction of text advance in the major (characters within a single string) and minor (successive strings) axes of layout, depending on the value of the horizontal field.
size
Field Type: SFFloat
Access Type: initializeOnly
Default Value: 1.0
Value Range: 0, ∞
Description: Sets the nominal height of a Text node and determines the spacing of adjacent lines.
spacing
Field Type: SFFloat
Access Type: initializeOnly
Default Value: 1.0
Value Range: 0, ∞
Description: Set the line spacing between adjacent lines of text (spacing * size).
style
Field Type: SFString
Access Type: initializeOnly
Default Value: PLAIN
Value Range: PLAIN BOLD ITALIC BOLDITALIC ""
Description: Case-sensitive value.
topToBottom
Field Type: SFBool
Access Type: initializeOnly
Default Value: TRUE
Value Range: ...
Description: Indicate direction of text advance in the major (characters within a single string) and minor (successive strings) axes of layout, depending on the value of the horizontal field.
metadata
Field Type: SFNode
Access Type: inputOutput
Default Value: NULL
Value Range: X3DMetadataObject
Description: Information about this node.