InitialObjectDescriptor { objectDescriptorID 1 audioProfileLevelIndication 1 visualProfileLevelIndication 1 sceneProfileLevelIndication 1 graphicsProfileLevelIndication 1 ODProfileLevelIndication 1 esDescr [ ES_Descriptor { ES_ID 2 decConfigDescr DecoderConfigDescriptor { streamType 3 decSpecificInfo BIFSv2Config { isCommandStream true pixelMetric true pixelWidth 480 pixelHeight 360 } } } ] } OrderedGroup { children [ Background2D { backColor 1 1 1 } WorldInfo { info ["This shows VRML text basline alignment" "" "GPAC Regression Tests" "(C) 2002-2004 GPAC Team"] title "VRML Text alignmentSRT importing Test" } Transform2D { translation -200 150 children [ Shape { appearance Appearance { material Material2D { emissiveColor 0 0 0 filled TRUE } } geometry Text { string ["Conformance Test"] fontStyle FontStyle { family ["Courier"] justify ["BEGIN" "MIDDLE"] size 15 style "BOLD" } } } ] } Transform2D { translation -200 40 children [ Shape { appearance Appearance { material Material2D { emissiveColor 0 0 0 filled TRUE } } geometry Text { string ["Sample from VRML 97 Spec (Section 6.20.1)" "FontStyle Parameters:" " family \"Courier\"" " size 20" " spacing 1.5" " justify [ \"BEGIN\" \"FIRST\" ]" "Text Position is (0,0)" "Thin lines are drawn at Y = 20, Y = -10, Y =-40." "Thick lines are drawn at Y = 0, Y = -30, Y =-60." "According to VRML, thick lines should match baseline."] fontStyle FontStyle { family ["Courier"] justify ["BEGIN" "MIDDLE"] size 15 } } } ] } Transform2D { translation -215 -80 children [ Shape { appearance Appearance { material Material2D { emissiveColor 1 0 0 filled TRUE } } geometry Text { string ["(0,0)"] fontStyle FontStyle { justify ["MIDDLE" "MIDDLE"] size 15 } } } ] } Transform2D { translation -200 -80 children [ Shape { appearance Appearance { material Material2D { lineProps LineProperties { width 2 } } } geometry IndexedLineSet2D { coordIndex [0 1 -1 2 3 -1 4 5 -1] coord Coordinate2D { point [0 0 400 0 0 -30 400 -30 0 -60 400 -60] } } } Shape { appearance Appearance { material Material2D { lineProps LineProperties {} } } geometry IndexedLineSet2D { coordIndex [0 1 -1 2 3 -1 4 5 -1 6 7 -1 8 9 -1] coord Coordinate2D { point [0 20 400 20 0 -10 400 -10 0 -40 400 -40 0 20 0 -60 400 20 400 -60] } } } Shape { appearance Appearance { material Material2D { emissiveColor 0 0 1 filled TRUE } } geometry Text { string ["This is a line of text." "This is the 2nd line of text." "This is the third."] fontStyle FontStyle { family ["Courier"] justify ["BEGIN" "FIRST"] size 20 spacing 1.5 } } } Shape { appearance Appearance { material Material2D { emissiveColor 1 0 0 filled TRUE } } geometry Circle { radius 2 } } ] } ] }