#VRML V2.0 utf8 #VRML 2.0 by Examples - Bfontstyle.html # #
#[return] #

#ex-fontstyle.wrl
# examples of FontStyles

 

# Camera
Viewpoint {
   position    0 5 35
   orientation 1 0 0 -0.24
   fieldOfView 0.785398
}

# Illumination
PointLight{
           location 0 10 0
           }


# Italic Centralized Text
Transform {
       translation 0 5 0
       children [
             Shape {
                 geometry Text {
                                 string [" Italic Centralized "]
                                 fontStyle FontStyle {
                                          style "ITALIC"
                                          justify "MIDDLE"
                                                      }
                                 length [15]
                                 maxExtent 20
                                }
                    }
                  ]
            }

# Bold Typewriter Text
Transform {
       translation 0 2 0
       children [
             Shape {
                 geometry Text {
                                 string [" Bold Typewriter "]
                                 fontStyle FontStyle {
                                          style "BOLD"
                                          family "TYPEWRITER"
                                                      }
                                 length [15]
                                 maxExtent 20
                                }
                    }
                  ]
            }

# Plain Vertical and SansSerif Text
Transform {
       translation -3 -16 0
       children [
             Shape {
                 geometry Text {
                                 string [" VERTICAL "]
                                 fontStyle FontStyle {
					  horizontal FALSE
                                          family "SANS"
					  justify ["END" "BEGIN"]
                                                      }
                                 length [15]
                                 maxExtent 20
                                }
                    }
                  ]
            }

# Right to Left Text
# Right to left is not yet implemented by Liquid Reality
Transform {
       translation 0 -20 0
       children [
             Shape {
                 geometry Text {
                                 string [" Right to Left "]
                                 fontStyle FontStyle {
                                          style "BOLDITALIC"
					  justify ["BEGIN" "END"]
 					  leftToRight FALSE
                                                      }
                                 length [15]
                                 maxExtent 20
                                }
                    }
                  ]
            }




#