Table of contents Chapter index Previous slide Next slide 38
Syntax: Text

Building primitive shapes
Syntax: Text
  • A Text geometry node builds text
  • string - text to build
  • fontStyle - font control

  • [ text.wrl ]
    Shape {
    
        appearance Appearance {
    
            material Material { }
    
        }
    
        geometry Text {
    
            string [ "Text",
    
                     "Shape" ]
    
            fontStyle FontStyle {
    
                style "BOLD"
    
            }
    
        }
    
    }