Text is a 2D (flat) geometry node that can contain multiple lines of string values. Layout and styling is controlled by a contained FontStyle node.
The Text node belongs to the Text component and its container field is geometry. It is available since X3D version 3.0 or later.
SFNode [in, out] metadata NULL [X3DMetadataObject]
Metadata are not part of the X3D world and not interpreted by the X3D browser, but they can be accessed via the ECMAScript interface.
MFString [in, out] string [ ]
Single or multiple string values to present as Text. Each value in the string array (including empty strings) gets displayed on a separate line.
MFString arrays can have multiple values, so separate each individual string by quote marks. Strings can contain quote marks by first escaping them with a backslash example: "say "hello" please" Many XML tools substitute XML character references automatically if needed (such as & for & ampersand, or " for " quotation mark).
MFFloat [in, out] length [ ] [0,∞)
Array of length values for each text string in the local coordinate system. Each string is stretched or compressed to fit.
SFFloat [in, out] maxExtent [0,∞)
Limits/compresses all text strings if max string length is longer than maxExtent, as measured in local coordinate system.
SFBool [ ] solid FALSE
Setting solid true means draw only one side of polygons (backface culling on), setting solid false means draw both sides of polygons (backface culling off).
If in doubt, use solid='false' for maximum visibility.
Default value true can completely hide geometry if viewed from wrong side! Solid false not supported in VRML97.
SFVec3f [out] origin
Origin of the text local coordinate system, in units of the coordinate system in which the Text node is embedded. The value of the origin field represents the upper left corner of the textBounds.
SFVec2f [out] textBounds
2D bounding box value for all lines of text in the local coordinate system.
MFVec2f [out] lineBounds
Array of 2D bounding box values for each line of text in the local coordinate system.
SFNode [in, out] fontStyle NULL [X3DFontStyleNode]
Input/Output field fontStyle.