0026298: Visualization, OpenGl_Text - make font resolution configurable.
[occt.git] / tests / 3rdparty / fonts / C1
CommitLineData
4b1c8733 1puts "============"
2puts "OCC26298 make font resolution configurable"
3puts "============"
4puts ""
5pload VISUALIZATION
6
7vfont add [locate_data_file DejaVuSans.ttf] SansFont
8
9vclear
10vclose all
11
12vinit
13vtop
14
15vrenderparams -resolution 72
16
17vdrawtext t0 TopLeftText -pos -100 100 0 -font SansFont -color yellow -valign top -halign left
18vdrawtext t1 CenterText -pos 0 0 0 -font SansFont -color green -valign center -halign center
19vdrawtext t2 BottomRightText -pos 100 -100 0 -font SansFont -color red -valign bottom -halign right
20
21vfit
22
23vdump $imagedir/${casename}_1.png
24
25vrenderparams -resolution 96
26
27vdump $imagedir/${casename}_2.png
28
29vrenderparams -resolution 144
30
31vdump $imagedir/${casename}_3.png