6fe58c66 |
1 | puts "============" |
2 | puts "OCC28099: handle DIMENSION and SUBTITLE styles within Core Profile" |
3 | puts "Test case prints overlay labels with different subtitle styles" |
4 | puts "============" |
5 | puts "" |
6 | |
7 | pload MODELING VISUALIZATION |
8 | |
9 | vclear |
10 | vcaps -core 1 |
11 | vinit View1 |
12 | vaxo |
13 | vfont add [locate_data_file DejaVuSans.ttf] SansFont |
14 | |
15 | vdrawtext t1 "Overlay Test Blend" -2d -perspos -1 1 -pos 100 -50 0 -height 16 -font SansFont -color 1 1 0 -disptype blend -subcolor 0 0 1 |
16 | vdrawtext t2 "Overlay Test Decal" -2d -perspos -1 1 -pos 100 -100 0 -height 16 -font SansFont -color 1 1 0 -disptype decal -subcolor 0 0 1 |
17 | vdrawtext t3 "Overlay Test Subtitle" -2d -perspos -1 1 -pos 100 -150 0 -height 16 -font SansFont -color 1 1 0 -disptype subtitle -subcolor 0 0 1 |
18 | vdrawtext t4 "Overlay Test Normal" -2d -perspos -1 1 -pos 100 -200 0 -height 16 -font SansFont -color 0 1 1 -disptype normal -subcolor 0 0 1 |
19 | |
20 | vdrawtext t5 " Overlay Test Normal \n Second line" -2d -perspos -1 1 -pos 100 -250 0 -height 16 -font SansFont -color 0 1 1 -disptype normal -subcolor 0 0 1 |
21 | vdrawtext t6 " Overlay Test Subtitle\n Second line" -2d -perspos -1 1 -pos 100 -300 0 -height 16 -font SansFont -color 1 1 0 -disptype subtitle -subcolor 0 0 1 |
22 | vdrawtext t7 " Overlay Test Decal \n Second line" -2d -perspos -1 1 -pos 100 -350 0 -height 16 -font SansFont -color 1 1 0 -disptype decal -subcolor 0 0 1 |
23 | vdrawtext t8 " Overlay Test Blend \n Second line" -2d -perspos -1 1 -pos 100 -400 0 -height 16 -font SansFont -color 1 1 0 -disptype blend -subcolor 0 0 1 |
24 | |
25 | box b 50 50 50 |
26 | vdisplay -dispMode 1 b |
27 | |
28 | vpoint lengthP1 0 50 50 |
29 | vpoint lengthP2 50 50 50 |
30 | vdimension dim1 -length -plane xoy -shapes lengthP1 lengthP2 -font SansFont |
31 | vfit |
32 | |
33 | vdump $::imagedir/${::casename}.png |