Text component

This component defines nodes for rendering 3D text.

See also X3D specification of the Text component.

Contents:

1. Demos

For complete demos and tests of these features, see the text subdirectory inside our VRML/X3D demo models.

2. Supported nodes

  • Text(Pascal API: TTextNode)

    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.

3. TODOs

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).