#Inventor V2.1 ascii # Check all aspects of rendering with an SoText2. # # 19990416 mortene Separator { # (ROW 0) check out with different field settings Separator { Cube { } BaseColor { rgb 1 0 0 } Translation { translation +4 0 0 } Text2 { string [ "with", "default", "settings" ] } BaseColor { rgb 1 1 0 } Translation { translation +4 0 0 } Cube { } BaseColor { rgb 0 0 1 } Translation { translation +4 0 0 } Text2 { justification RIGHT string [ "justified", "to the", "right" ] } BaseColor { rgb 1 1 0 } Translation { translation +4 0 0 } Cube { } BaseColor { rgb 1 0 1 } Translation { translation +4 0 0 } Text2 { justification CENTER string [ "i ham", "center", "justified" ] } BaseColor { rgb 0 1 0 } Translation { translation +4 0 0 } Cube { } BaseColor { rgb 1 1 1 } Translation { translation +4 0 0 } Text2 { spacing 2.0 string [ "double", "line", "spacing" ] } BaseColor { rgb 0 1 1 } Translation { translation +4 0 0 } Cube { } BaseColor { rgb 1 1 0 } Translation { translation +4 0 0 } Text2 { spacing 0.5 string [ "half", "line", "spacing" ] } BaseColor { rgb 1 0 0 } Translation { translation +4 0 0 } Cube { } } # (ROW 1) check out with different SoFont settings Translation { translation 0 +8 0 } Separator { Cube { } BaseColor { rgb 1 0 1 } Font { name "times" } Text2 { string [ "font", "is", "times" ] } BaseColor { rgb 0 1 0 } Translation { translation +4 0 0 } Cube { } BaseColor { rgb 0 0 1 } Translation { translation +4 0 0 } Font { name "helvetica" } Text2 { string [ "font", "is", "helvetica" ] } BaseColor { rgb 1 1 0 } Translation { translation +4 0 0 } Cube { } BaseColor { rgb 1 0 1 } Translation { translation +4 0 0 } Font { name "courier" } Text2 { string [ "font", "is", "courier" ] } BaseColor { rgb 0 1 0 } Translation { translation +4 0 0 } Cube { } BaseColor { rgb 1 1 1 } Translation { translation +4 0 0 } Font { size 8 } Text2 { string [ "fontsize", "is 8" ] } BaseColor { rgb 1 1 0 } Translation { translation +4 0 0 } Cube { } BaseColor { rgb 0 1 1 } Translation { translation +4 0 0 } Font { size 25 } Text2 { string [ "fontsize", "is 25" ] } BaseColor { rgb 1 0 0 } Translation { translation +4 0 0 } Cube { } } # (ROW 2) check out with different SoFontStyle settings Translation { translation 0 +8 0 } Separator { Cube { } BaseColor { rgb 1 0 0.5 } Translation { translation +4 0 0 } FontStyle { family SERIF } Text2 { string [ "family", "is", "SERIF" ] } BaseColor { rgb 0 1 0 } Translation { translation +4 0 0 } Cube { } BaseColor { rgb 1 0 0.5 } Translation { translation +4 0 0 } FontStyle { family SANS } Text2 { string [ "family", "is", "SANS" ] } BaseColor { rgb 0 1 0 } Translation { translation +4 0 0 } Cube { } BaseColor { rgb 1 0 0.5 } Translation { translation +4 0 0 } FontStyle { family TYPEWRITER } Text2 { string [ "family", "is", "TYPEWRITER" ] } BaseColor { rgb 0 1 0 } Translation { translation +4 0 0 } Cube { } BaseColor { rgb 0.5 0 1 } Translation { translation +4 0 0 } FontStyle { style BOLD } Text2 { string [ "style", "is", "BOLD" ] } BaseColor { rgb 1 1 0 } Translation { translation +4 0 0 } Cube { } BaseColor { rgb 0.5 0 1 } Translation { translation +4 0 0 } FontStyle { style ITALIC } Text2 { string [ "style", "is", "ITALIC" ] } BaseColor { rgb 1 1 0 } Translation { translation +4 0 0 } Cube { } BaseColor { rgb 0.5 0 1 } Translation { translation +4 0 0 } FontStyle { style (BOLD|ITALIC) } Text2 { string [ "style is", "BOLD and ITALIC" ] } BaseColor { rgb 1 1 0 } Translation { translation +4 0 0 } Cube { } } }