Debian Codegraph @

examples/fonts/text_tests/data/gameviewmain.castle-user-interface

raw
1 {
2 "$$ClassName" : "TCastleUserInterface",
3 "FullSize" : true,
4 "Name" : "Group1",
5 "$Children" : [
6 {
7 "$$ClassName" : "TCastleRectangleControl",
8 "ColorPersistent" : {
9 "$$ClassName" : "TCastleColorPersistent",
10 "Blue" : 2.1568627655506134E-001,
11 "Green" : 2.1568627655506134E-001,
12 "Red" : 2.1568627655506134E-001
13 },
14 "FullSize" : true,
15 "Name" : "RectangleControl1"
16 },
17 {
18 "$$ClassName" : "TCastleLabel",
19 "ColorPersistent" : {
20 "$$ClassName" : "TCastleColorPersistent",
21 "Green" : 1.0000000000000000E+000,
22 "Red" : 1.0000000000000000E+000
23 },
24 "FontSize" : 2.0000000000000000E+001,
25 "HorizontalAnchorParent" : "hpRight",
26 "HorizontalAnchorSelf" : "hpRight",
27 "Name" : "LabelFps",
28 "Text" : [
29 "FPS: xxx"
30 ],
31 "TranslationPersistent" : {
32 "$$ClassName" : "TCastleVector2Persistent",
33 "X" : -2.0000000000000000E+001,
34 "Y" : -2.0000000000000000E+001
35 },
36 "VerticalAnchorParent" : "vpTop",
37 "VerticalAnchorSelf" : "vpTop"
38 },
39 {
40 "$$ClassName" : "TCastleVerticalGroup",
41 "Alignment" : "hpMiddle",
42 "HorizontalAnchorParent" : "hpMiddle",
43 "HorizontalAnchorSelf" : "hpMiddle",
44 "Name" : "VerticalGroup1",
45 "Spacing" : 1.0000000000000000E+001,
46 "VerticalAnchorParent" : "vpMiddle",
47 "VerticalAnchorSelf" : "vpMiddle",
48 "$Children" : [
49 {
50 "$$ClassName" : "TCastleLabel",
51 "Alignment" : "hpMiddle",
52 "ColorPersistent" : {
53 "$$ClassName" : "TCastleColorPersistent",
54 "Blue" : 1.0000000000000000E+000,
55 "Green" : 1.0000000000000000E+000,
56 "Red" : 1.0000000000000000E+000
57 },
58 "CustomFont" : "FontSonic",
59 "HorizontalAnchorParent" : "hpMiddle",
60 "HorizontalAnchorSelf" : "hpMiddle",
61 "Name" : "LabelSonicFont",
62 "Text" : [
63 "A simple test of a bitmap font (characters from an image).",
64 "Do cats eat bats?",
65 "and sometimes, Do bats eat cats?"
66 ],
67 "VerticalAnchorParent" : "vpTop",
68 "VerticalAnchorSelf" : "vpTop",
69 "$NonVisualComponents" : [
70 {
71 "$$ClassName" : "TCastleBitmapFont",
72 "ImageMargin" : 2,
73 "ImageRows" : 12,
74 "ImageUrl" : "castle-data:/fonts/sonic_asalga_0.png",
75 "Name" : "FontSonic"
76 }
77 ]
78 },
79 {
80 "$$ClassName" : "TCastleLabel",
81 "ColorPersistent" : {
82 "$$ClassName" : "TCastleColorPersistent",
83 "Green" : 1.0000000000000000E+000,
84 "Red" : 1.0000000000000000E+000
85 },
86 "CustomFont" : "FontNullTerminator",
87 "FontSize" : 2.0000000000000000E+001,
88 "HorizontalAnchorParent" : "hpMiddle",
89 "HorizontalAnchorSelf" : "hpMiddle",
90 "Name" : "LabelNullTerminator",
91 "Text" : [
92 "Another label, with different bitmap font."
93 ],
94 "TranslationPersistent" : {
95 "$$ClassName" : "TCastleVector2Persistent",
96 "Y" : -6.1999996185302734E+001
97 },
98 "VerticalAnchorParent" : "vpTop",
99 "VerticalAnchorSelf" : "vpTop",
100 "$NonVisualComponents" : [
101 {
102 "$$ClassName" : "TCastleBitmapFont",
103 "DisplayMargin" : 1.0000000000000000E+000,
104 "ImageMargin" : 1,
105 "ImageRows" : 12,
106 "ImageUrl" : "castle-data:/fonts/null_terminator_0.png",
107 "Name" : "FontNullTerminator"
108 }
109 ]
110 },
111 {
112 "$$ClassName" : "TCastleLabel",
113 "Alignment" : "hpMiddle",
114 "ColorPersistent" : {
115 "$$ClassName" : "TCastleColorPersistent",
116 "Blue" : 1.0000000000000000E+000,
117 "Green" : 1.0000000000000000E+000,
118 "Red" : 1.0000000000000000E+000
119 },
120 "CustomFont" : "FontDejaVuSans",
121 "FontSize" : 3.0000000000000000E+001,
122 "HorizontalAnchorParent" : "hpMiddle",
123 "HorizontalAnchorSelf" : "hpMiddle",
124 "Name" : "LabelDejaVu",
125 "Padding" : 5.0000000000000000E+000,
126 "Text" : [
127 "DejaVuSans font (from TTF file)",
128 "with anti-aliasing."
129 ],
130 "TranslationPersistent" : {
131 "$$ClassName" : "TCastleVector2Persistent",
132 "Y" : -9.4857139587402344E+001
133 },
134 "VerticalAnchorParent" : "vpTop",
135 "VerticalAnchorSelf" : "vpTop",
136 "$NonVisualComponents" : [
137 {
138 "$$ClassName" : "TCastleFont",
139 "Name" : "FontDejaVuSans",
140 "URL" : "castle-data:/fonts/DejaVuSans.ttf"
141 }
142 ]
143 },
144 {
145 "$$ClassName" : "TCastleLabel",
146 "Alignment" : "hpMiddle",
147 "ColorPersistent" : {
148 "$$ClassName" : "TCastleColorPersistent",
149 "Blue" : 1.0000000000000000E+000,
150 "Green" : 1.0000000000000000E+000,
151 "Red" : 1.0000000000000000E+000
152 },
153 "CustomFont" : "FontDejaVuSansLarger",
154 "FontSize" : 3.0000000000000000E+001,
155 "HorizontalAnchorParent" : "hpMiddle",
156 "HorizontalAnchorSelf" : "hpMiddle",
157 "Name" : "LabelDejaVuLarger",
158 "Padding" : 5.0000000000000000E+000,
159 "Text" : [
160 "DejaVuSans font",
161 "with anti-aliasing and larger OptimalSize, looks sharper at larger sizes."
162 ],
163 "TranslationPersistent" : {
164 "$$ClassName" : "TCastleVector2Persistent",
165 "Y" : -1.7835713195800781E+002
166 },
167 "VerticalAnchorParent" : "vpTop",
168 "VerticalAnchorSelf" : "vpTop",
169 "$NonVisualComponents" : [
170 {
171 "$$ClassName" : "TCastleFont",
172 "Name" : "FontDejaVuSansLarger",
173 "OptimalSize" : 30,
174 "URL" : "castle-data:/fonts/DejaVuSans.ttf"
175 }
176 ]
177 },
178 {
179 "$$ClassName" : "TCastleLabel",
180 "Alignment" : "hpMiddle",
181 "ColorPersistent" : {
182 "$$ClassName" : "TCastleColorPersistent",
183 "Blue" : 1.0000000000000000E+000,
184 "Green" : 1.0000000000000000E+000,
185 "Red" : 1.0000000000000000E+000
186 },
187 "CustomFont" : "FontDejaVuSansLarger",
188 "FontSize" : 3.0000000000000000E+001,
189 "HorizontalAnchorParent" : "hpMiddle",
190 "HorizontalAnchorSelf" : "hpMiddle",
191 "Name" : "LabelDejaVuLargerOutline",
192 "Outline" : 1,
193 "OutlineColorPersistent" : {
194 "$$ClassName" : "TCastleColorPersistent",
195 "Green" : 5.0196081399917603E-001
196 },
197 "OutlineHighQuality" : true,
198 "Padding" : 5.0000000000000000E+000,
199 "Text" : [
200 "DejaVuSans font",
201 "with anti-aliasing and larger OptimalSize and Outline."
202 ],
203 "TranslationPersistent" : {
204 "$$ClassName" : "TCastleVector2Persistent",
205 "Y" : -2.6135711669921875E+002
206 },
207 "VerticalAnchorParent" : "vpTop",
208 "VerticalAnchorSelf" : "vpTop"
209 },
210 {
211 "$$ClassName" : "TCastleLabel",
212 "Alignment" : "hpMiddle",
213 "ColorPersistent" : {
214 "$$ClassName" : "TCastleColorPersistent",
215 "Blue" : 1.0000000000000000E+000,
216 "Green" : 1.0000000000000000E+000,
217 "Red" : 1.0000000000000000E+000
218 },
219 "CustomFont" : "FontDejaVuSansNoAa",
220 "FontSize" : 2.0000000000000000E+001,
221 "HorizontalAnchorParent" : "hpMiddle",
222 "HorizontalAnchorSelf" : "hpMiddle",
223 "Name" : "LabelDejaVuNoAa",
224 "Padding" : 5.0000000000000000E+000,
225 "Text" : [
226 "DejaVuSans font",
227 "without anti-aliasing."
228 ],
229 "TranslationPersistent" : {
230 "$$ClassName" : "TCastleVector2Persistent",
231 "Y" : -3.5177310180664062E+002
232 },
233 "VerticalAnchorParent" : "vpTop",
234 "VerticalAnchorSelf" : "vpTop",
235 "$NonVisualComponents" : [
236 {
237 "$$ClassName" : "TCastleFont",
238 "AntiAliased" : false,
239 "Name" : "FontDejaVuSansNoAa",
240 "URL" : "castle-data:/fonts/DejaVuSans.ttf"
241 }
242 ]
243 },
244 {
245 "$$ClassName" : "TCastleLabel",
246 "ColorPersistent" : {
247 "$$ClassName" : "TCastleColorPersistent",
248 "Blue" : 1.0000000000000000E+000,
249 "Green" : 1.0000000000000000E+000,
250 "Red" : 1.0000000000000000E+000
251 },
252 "CustomFont" : "FontParpg",
253 "FontSize" : 3.0000000000000000E+001,
254 "HorizontalAnchorParent" : "hpMiddle",
255 "HorizontalAnchorSelf" : "hpMiddle",
256 "Name" : "LabelParpg",
257 "Padding" : 5.0000000000000000E+000,
258 "Text" : [
259 "Stylish \"old typewriter\" font (from TTF file)."
260 ],
261 "TranslationPersistent" : {
262 "$$ClassName" : "TCastleVector2Persistent",
263 "Y" : -4.1477310180664062E+002
264 },
265 "VerticalAnchorParent" : "vpTop",
266 "VerticalAnchorSelf" : "vpTop",
267 "$NonVisualComponents" : [
268 {
269 "$$ClassName" : "TCastleFont",
270 "Name" : "FontParpg",
271 "OptimalSize" : 30,
272 "URL" : "castle-data:/fonts/PARPG.ttf"
273 }
274 ]
275 },
276 {
277 "$$ClassName" : "TCastleLabel",
278 "Border" : {
279 "$$ClassName" : "TBorder",
280 "AllSides" : 2.0000000000000000E+000
281 },
282 "BorderColorPersistent" : {
283 "$$ClassName" : "TCastleColorPersistent",
284 "Alpha" : 1.0000000000000000E+000,
285 "Green" : 1.0000000000000000E+000,
286 "Red" : 1.0000000000000000E+000
287 },
288 "ColorPersistent" : {
289 "$$ClassName" : "TCastleColorPersistent",
290 "Blue" : 1.0000000000000000E+000,
291 "Green" : 1.0000000000000000E+000,
292 "Red" : 1.0000000000000000E+000
293 },
294 "CustomFont" : "FontDejaVuSans",
295 "FontSize" : 3.0000000000000000E+001,
296 "HorizontalAnchorParent" : "hpMiddle",
297 "HorizontalAnchorSelf" : "hpMiddle",
298 "MaxWidth" : 9.0000000000000000E+002,
299 "Name" : "LabelDejaVuLongLong",
300 "Padding" : 5.0000000000000000E+000,
301 "Text" : [
302 "This is a long long long text to test how is the label automatically broken into multiple lines. This is a long long long text to test how is the label automatically broken into multiple lines. This is a long long long text to test how is the label automatically broken into multiple lines.",
303 "",
304 "Note that explicit line breaks will be correctly preserved in the broken text.",
305 "",
306 "Use MaxWidth to set the width limit, at which text is broken."
307 ],
308 "TranslationPersistent" : {
309 "$$ClassName" : "TCastleVector2Persistent",
310 "Y" : -4.6577310180664062E+002
311 },
312 "VerticalAnchorParent" : "vpTop",
313 "VerticalAnchorSelf" : "vpTop"
314 }
315 ]
316 }
317 ]
318 }