0030537: Visualization - wrapping text in font text formatter
[occt.git] / tests / 3rdparty / text3d / text_wrapped
CommitLineData
60f7b225 1puts "==========="
2puts "0030537: Visualization - wrapping text in font text formatter"
3puts ""
4puts "==========="
5
6pload MODELING VISUALIZATION
7vinit View1
8vclear
9vaxo
10
11box b1 10 0 360 10 180 40
12vdisplay b1
13vdrawtext 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
15box b2 10 0 240 10 130 60
16vdisplay b2
17vdrawtext 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
19box b3 10 0 60 10 60 150
20vdisplay b3
21vdrawtext 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
23vright
24vfit
25vzoom 0.9
26
27vdump $imagedir/${casename}.png