a174a3c5 |
1 | puts "============" |
2 | puts "OCC23457 Text rendering performance" |
3 | puts "Test case prints 3D labels with different text alignment styles" |
4 | puts "============" |
5 | puts "" |
6 | |
6fb1a930 |
7 | vfont add [locate_data_file DejaVuSans.ttf] SansFont |
8 | |
a174a3c5 |
9 | vtrihedron trihedr |
10 | |
11 | vpoint pTL -700 100 600 |
6fb1a930 |
12 | vdrawtext Text0 "Top-Left\nFirst line\nLion The Second\n3rd" -pos -700 100 600 -color 0.0 1.0 1.0 -halign left -valign top -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont |
a174a3c5 |
13 | |
14 | vpoint pTC 0 100 600 |
6fb1a930 |
15 | vdrawtext Text1 "Top-Center\nFirst line\nLion The Second\n3rd" -pos 0 100 600 -color 0.0 1.0 1.0 -halign center -valign top -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont |
a174a3c5 |
16 | |
17 | vpoint pTR 700 100 600 |
6fb1a930 |
18 | vdrawtext Text2 "Top-Right\nFirst line\nLion The Second\n3rd" -pos 700 100 600 -color 0.0 1.0 1.0 -halign right -valign top -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont |
a174a3c5 |
19 | |
20 | vpoint pCL -700 100 -100 |
6fb1a930 |
21 | vdrawtext Text3 "Center-Left\nFirst line\nLion The Second\n3rd" -pos -700 100 -100 -color 1.0 1.0 1.0 -halign left -valign center -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont |
a174a3c5 |
22 | |
23 | vpoint pCC 0 100 -100 |
6fb1a930 |
24 | vdrawtext Text4 "Center-Center\nFirst line\nLion The Second\n3rd" -pos 0 100 -100 -color 1.0 1.0 1.0 -halign center -valign center -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont |
a174a3c5 |
25 | |
26 | vpoint pCR 700 100 -100 |
6fb1a930 |
27 | vdrawtext Text5 "Center-Right\nFirst line\nLion The Second\n3rd" -pos 700 100 -100 -color 1.0 1.0 1.0 -halign right -valign center -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont |
a174a3c5 |
28 | |
29 | vpoint pBL -700 100 -700 |
6fb1a930 |
30 | vdrawtext Text6 "Bottom-Left\nFirst line\nLion The Second\n3rd" -pos -700 100 -700 -color 1.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont |
a174a3c5 |
31 | |
32 | vpoint pBC 0 100 -700 |
6fb1a930 |
33 | vdrawtext Text7 "Bottom-Center\nFirst line\nLion The Second\n3rd" -pos 0 100 -700 -color 1.0 1.0 0.0 -halign center -valign bottom -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont |
a174a3c5 |
34 | |
35 | vpoint pBR 700 100 -700 |
6fb1a930 |
36 | vdrawtext Text8 "Bottom-Right\nFirst line\nLion The Second\n3rd" -pos 700 100 -700 -color 1.0 1.0 0.0 -halign right -valign bottom -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont |
a174a3c5 |
37 | |
38 | vfit |
39 | |
40 | vfps |