Styling Your Text
Node
Font Style • Attributes
Description
A styled two-line Text string (FontStyle enclosed).
VRIGNETTE Notes
FontStyle is similar in concept to CSS where you style the look of your HTML text.
Example
Rotate the vrignette to view the geometry.
Code
<x3d> <scene> <worldInfo title="X3D Text Example"> </worldInfo> <navigationInfo headlight="true"> </navigationInfo> <viewpoint position="0.0 0.0 15.0" orientation="0 0 1 0.15" centerOfRotation="0.0 0.0 0.0"> </viewpoint> <shape> <appearance> <material diffuseColor="0.15 0.30 0.90" specularColor="0.25 0.25 .025" shininess="0.15"> </material> </appearance> <text maxExtent="20" length="15.0 10.0" string='"X3D Text" "Example"' solid="false"> <fontStyle family="SANS" horizontal="true" justify="MIDDLE" style="PLAIN" size="1.5" spacing="1.0"> </fontStyle> </text> </shape> <background skyColor="0.20 0.20 0.20" groundColor="0.20 0.20 0.20"> </background> </scene> </x3d>