This component defines nodes for rendering 3D text.
See also X3D specification of the Text component.
Contents:
For complete demos and tests of these features,
see the text
subdirectory inside our VRML/X3D demo models.
Text displayed in a scene. The text may be multi-line, it can be textured, displayed with various size, justification, and font styles. While the text is a flat object, it can be rotated in 3D scene, like any other plane in 3D.
The Text
is also "clickable" within
Anchor
and TouchSensor
nodes.
A whole line of text is just a simple quad, when considered for collision
detection.
FontStyle
(Pascal API: TFontStyleNode
)
Style of the font used by the Text
node.
Most important properties (size, spacing, justify (horizontal and vertical), family, style) are supported.
TODO: Properties not implemented yet:
FontStyle: From section 6.22.3 Direction and justification: fields horizontal, leftToRight, topToBottom (we always behave like they had default values, TRUE, TRUE, TRUE). From section 6.22.4 Language: language field is ignored.
Text
: length, maxExtent are
ignored (and handled like they had
default values, which means that the text is not stretched).
Copyright Michalis Kamburelis and Castle Game Engine Contributors.
This webpage is also open-source and we welcome pull requests to improve it.
We use cookies for analytics. See our privacy policy.