60f7b225 |
1 | puts "===========" |
2 | puts "0030537: Visualization - wrapping text in font text formatter" |
3 | puts "" |
4 | puts "===========" |
5 | |
6 | pload MODELING VISUALIZATION |
7 | vinit View1 |
8 | vclear |
9 | vaxo |
10 | |
11 | box b1 10 0 360 10 180 40 |
12 | vdisplay b1 |
13 | vdrawtext t1 "Top text on plane yOz\n(not wrapped)" -pos 10 5 400 -color green -plane 1 0 0 0 1 0 -valign top -font SansFont -zoom 1 |
14 | |
15 | box b2 10 0 240 10 130 60 |
16 | vdisplay b2 |
17 | vdrawtext t2 "Top text on plane yOz\n(wrapping=120)" -pos 10 5 300 -color green -wrapping 120 -plane 1 0 0 0 1 0 -valign top -font SansFont -zoom 1 |
18 | |
19 | box b3 10 0 60 10 60 150 |
20 | vdisplay b3 |
21 | vdrawtext t3 "Top text on plane yOz\n(wrapping=50)" -pos 10 5 200 -color green -wrapping 50 -plane 1 0 0 0 1 0 -valign top -font SansFont -zoom 1 |
22 | |
23 | vright |
24 | vfit |
25 | vzoom 0.9 |
26 | |
27 | vdump $imagedir/${casename}.png |