#VRML V2.0 utf8 # WorldInfo to give some basic information WorldInfo { title "VRML 2.0 FontStyle Example" } # Text with custom FontStyle Transform { translation 0 0 0 children [ Shape { geometry Text { string ["Hello", "VRML World!"] # Text to display (multiline example) fontStyle FontStyle { family "TYPEWRITER" # Font family: "SANS", "SERIF", "TYPEWRITER" style "ITALIC" # Font style: "PLAIN", "BOLD", "ITALIC", "BOLDITALIC" size 1.5 # Font size (scales the text) justify "MIDDLE" # Text alignment: "BEGIN", "MIDDLE", "END" spacing 1.2 # Spacing between lines (line height) } } appearance Appearance { material Material { diffuseColor 0.1 0.5 1 # Light blue color } } } ] }