Debian Codegraph @

models/oiv_compliance/text2.iv

raw
1 #Inventor V2.1 ascii
2
3 # Check all aspects of rendering with an SoText2.
4 #
5 # 19990416 mortene
6
7 Separator {
8 # (ROW 0) check out with different field settings
9 Separator {
10 Cube { }
11
12 BaseColor { rgb 1 0 0 }
13 Translation { translation +4 0 0 }
14 Text2 { string [ "with", "default", "settings" ] }
15
16 BaseColor { rgb 1 1 0 }
17 Translation { translation +4 0 0 }
18 Cube { }
19
20 BaseColor { rgb 0 0 1 }
21 Translation { translation +4 0 0 }
22 Text2 {
23 justification RIGHT
24 string [ "justified", "to the", "right" ]
25 }
26
27 BaseColor { rgb 1 1 0 }
28 Translation { translation +4 0 0 }
29 Cube { }
30
31 BaseColor { rgb 1 0 1 }
32 Translation { translation +4 0 0 }
33 Text2 {
34 justification CENTER
35 string [ "i ham", "center", "justified" ]
36 }
37
38 BaseColor { rgb 0 1 0 }
39 Translation { translation +4 0 0 }
40 Cube { }
41
42 BaseColor { rgb 1 1 1 }
43 Translation { translation +4 0 0 }
44 Text2 {
45 spacing 2.0
46 string [ "double", "line", "spacing" ]
47 }
48
49 BaseColor { rgb 0 1 1 }
50 Translation { translation +4 0 0 }
51 Cube { }
52
53 BaseColor { rgb 1 1 0 }
54 Translation { translation +4 0 0 }
55 Text2 {
56 spacing 0.5
57 string [ "half", "line", "spacing" ]
58 }
59
60 BaseColor { rgb 1 0 0 }
61 Translation { translation +4 0 0 }
62 Cube { }
63 }
64
65 # (ROW 1) check out with different SoFont settings
66 Translation { translation 0 +8 0 }
67 Separator {
68 Cube { }
69
70 BaseColor { rgb 1 0 1 }
71 Font { name "times" }
72 Text2 { string [ "font", "is", "times" ] }
73
74 BaseColor { rgb 0 1 0 }
75 Translation { translation +4 0 0 }
76 Cube { }
77
78 BaseColor { rgb 0 0 1 }
79 Translation { translation +4 0 0 }
80 Font { name "helvetica" }
81 Text2 { string [ "font", "is", "helvetica" ] }
82
83 BaseColor { rgb 1 1 0 }
84 Translation { translation +4 0 0 }
85 Cube { }
86
87 BaseColor { rgb 1 0 1 }
88 Translation { translation +4 0 0 }
89 Font { name "courier" }
90 Text2 { string [ "font", "is", "courier" ] }
91
92 BaseColor { rgb 0 1 0 }
93 Translation { translation +4 0 0 }
94 Cube { }
95
96 BaseColor { rgb 1 1 1 }
97 Translation { translation +4 0 0 }
98 Font { size 8 }
99 Text2 { string [ "fontsize", "is 8" ] }
100
101 BaseColor { rgb 1 1 0 }
102 Translation { translation +4 0 0 }
103 Cube { }
104
105 BaseColor { rgb 0 1 1 }
106 Translation { translation +4 0 0 }
107 Font { size 25 }
108 Text2 { string [ "fontsize", "is 25" ] }
109
110 BaseColor { rgb 1 0 0 }
111 Translation { translation +4 0 0 }
112 Cube { }
113 }
114
115 # (ROW 2) check out with different SoFontStyle settings
116 Translation { translation 0 +8 0 }
117 Separator {
118 Cube { }
119
120 BaseColor { rgb 1 0 0.5 }
121 Translation { translation +4 0 0 }
122 FontStyle { family SERIF }
123 Text2 { string [ "family", "is", "SERIF" ] }
124
125 BaseColor { rgb 0 1 0 }
126 Translation { translation +4 0 0 }
127 Cube { }
128
129 BaseColor { rgb 1 0 0.5 }
130 Translation { translation +4 0 0 }
131 FontStyle { family SANS }
132 Text2 { string [ "family", "is", "SANS" ] }
133
134 BaseColor { rgb 0 1 0 }
135 Translation { translation +4 0 0 }
136 Cube { }
137
138 BaseColor { rgb 1 0 0.5 }
139 Translation { translation +4 0 0 }
140 FontStyle { family TYPEWRITER }
141 Text2 { string [ "family", "is", "TYPEWRITER" ] }
142
143 BaseColor { rgb 0 1 0 }
144 Translation { translation +4 0 0 }
145 Cube { }
146
147 BaseColor { rgb 0.5 0 1 }
148 Translation { translation +4 0 0 }
149 FontStyle { style BOLD }
150 Text2 { string [ "style", "is", "BOLD" ] }
151
152 BaseColor { rgb 1 1 0 }
153 Translation { translation +4 0 0 }
154 Cube { }
155
156 BaseColor { rgb 0.5 0 1 }
157 Translation { translation +4 0 0 }
158 FontStyle { style ITALIC }
159 Text2 { string [ "style", "is", "ITALIC" ] }
160
161 BaseColor { rgb 1 1 0 }
162 Translation { translation +4 0 0 }
163 Cube { }
164
165 BaseColor { rgb 0.5 0 1 }
166 Translation { translation +4 0 0 }
167 FontStyle { style (BOLD|ITALIC) }
168 Text2 { string [ "style is", "BOLD and ITALIC" ] }
169
170 BaseColor { rgb 1 1 0 }
171 Translation { translation +4 0 0 }
172 Cube { }
173 }
174 }