0029412: Huge Memory leak since I upgraded to OC 6.9.0
[occt.git] / tests / bugs / vis / bug25369
1 puts "========"
2 puts "OCC25369"
3 puts "========"
4 puts ""
5 ###################################################################################################
6 #  Visualization, Image_AlienPixMap - handle UTF-8 names in image read/save operations on Windows
7 ###################################################################################################
8
9 vfont add [locate_data_file DejaVuSans.ttf] SansFont
10
11 box b 1 2 3
12 vinit View1
13 vclear
14 vsetdispmode 0
15 vdisplay b
16 vfit
17 set s [encoding convertfrom unicode "\x3A\x04\x30\x04\x40\x04\x2E\x00\x70\x00\x6E\x00\x67\x00"]
18
19 vdrawtext text0 $s -pos 0 0 0 -color 1.0 1.0 1.0 -halign left -valign bottom -angle 0 -zoom 0 -height 50 -aspect regular -font SansFont
20 vdump $::imagedir/$s
21 vtexture b $::imagedir/$s
22 file delete $::imagedir/$s
23 checkview -screenshot -3d -path ${imagedir}/${test_image}.png