InitialObjectDescriptor {
 objectDescriptorID 1
 audioProfileLevelIndication 255
 visualProfileLevelIndication 254
 sceneProfileLevelIndication 1
 graphicsProfileLevelIndication 1
 ODProfileLevelIndication 1
 esDescr [
  ES_Descriptor {
   ES_ID 1
   decConfigDescr DecoderConfigDescriptor {
    streamType 3
    decSpecificInfo BIFSConfig {
     isCommandStream true
     pixelMetric true
     pixelWidth 350
     pixelHeight 450
    }
   }
  }
 ]
}

OrderedGroup {
 children [
  Background2D {
   backColor 1 1 1
  }
  WorldInfo {
   info ["This shows Text with and without max Extent" "All texts use the same font and size" "" "GPAC Regression Tests" "$Date: 2007-07-27 09:46:10 $ - $Revision: 1.2 $" "(C) 2002-2004 GPAC Team"]
   title "Text maxExtend Test"
  }
  Shape {
   geometry IndexedLineSet2D {
    coord Coordinate2D {
     point [0 200 0 -160]
    }
   }
  }
  Transform2D {
   translation -80 160
   children [
    Shape {
     appearance DEF TEXTAPP Appearance {
      material Material2D {
       emissiveColor 0 0 0
       filled TRUE
      }
     }
     geometry Text {
      string ["maxExtent off"]
      fontStyle FontStyle {
       justify ["MIDDLE"]
       size 20
      }
     }
    }
   ]
  }
  Transform2D {
   translation 80 160
   children [
    Shape {
     appearance USE TEXTAPP
     geometry Text {
      string ["maxExtent on"]
      fontStyle FontStyle {
       justify ["MIDDLE"]
       size 20
      }
     }
    }
   ]
  }
  Transform2D {
   translation -80 100
   children [
    DEF SQUARE Shape {
     appearance DEF APP Appearance {
      material Material2D {
       emissiveColor 1 1 0
       filled TRUE
      }
     }
     geometry Rectangle {
      size 90 80
     }
    }
    Shape {
     appearance USE TEXTAPP
     geometry Text {
      string ["Some Text" "to test extent"]
      fontStyle FontStyle {
       justify ["MIDDLE"]
       size 20
      }
     }
    }
   ]
  }
  Transform2D {
   translation 80 100
   children [
    USE SQUARE
    Shape {
     appearance USE TEXTAPP
     geometry Text {
      string ["Some Text" "to test extent"]
      maxExtent 90
      fontStyle FontStyle {
       justify ["MIDDLE"]
       size 20
      }
     }
    }
   ]
  }
  Transform2D {
   translation -80 -60
   children [
    DEF VSQUARE Shape {
     appearance USE APP
     geometry Rectangle {
      size 80 100
     }
    }
    Shape {
     appearance USE TEXTAPP
     geometry Text {
      string ["Extent" "Text"]
      fontStyle FontStyle {
       horizontal FALSE
       justify ["MIDDLE" "MIDDLE"]
       size 20
      }
     }
    }
   ]
  }
  Transform2D {
   translation 80 -60
   children [
    USE VSQUARE
    Shape {
     appearance USE TEXTAPP
     geometry Text {
      string ["Extent" "Text"]
      maxExtent 100
      fontStyle FontStyle {
       horizontal FALSE
       justify ["MIDDLE" "MIDDLE"]
       size 20
      }
     }
    }
   ]
  }
  Transform2D {
   translation 0 -180
   children [
    Shape {
     appearance USE TEXTAPP
     geometry Text {
      string ["Horizontal Rectangles: 100x80 pixels" "Vertical Rectangles: 80x100 pixels" "MaxExtent: longest dimension"]
      fontStyle FontStyle {
       justify ["MIDDLE"]
       size 20
      }
     }
    }
   ]
  }
 ]
}


