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