Table of contents Chapter index Previous slide Next slide 39
Syntax: FontStyle

Building primitive shapes
Syntax: FontStyle
  • A FontStyle node describes a font
  • family - SERIF, SANS, or TYPEWRITER
  • style - BOLD, ITALIC, BOLDITALIC, or PLAIN

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