Titania X3D Editor

Bring Colours to Your Life.

Titania v4.6.10

Bring Colours to Your Life.

X3D Reference



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

See Also

Relates to Internationalization (i18n)

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.



  • Full internationalization (i18n) and localization (l10n) features are available for any written language.
  • Insert a Shape node before adding geometry or Appearance.
  • You can also substitute a type-matched ProtoInstance node for contained content.


screenshot Text

XML Encoding

Classic Encoding

JSON Encoding

Browser Compatibility

Titania X_ITE
yes yes

Cookies and other Technologies

By clicking »Accept« or continuing to use the site, you agree to the use of CREATE3000 and third-party cookies and other similar technologies to enhance your browsing experience, analyze and measure your engagement with our content, and provide more relevant ads on CREATE3000 websites and others. Learn more about cookies. You can withdraw your consent at any time.

create3000.de is going to be shut down next year, but we have a new clean and slick web site for you, go to new X_ITE web site, consider updating your X_ITE URL's, or go to new Titania web site or continue reading.