348ff753 |
1 | puts "========" |
2 | puts "OCC25732" |
3 | puts "========" |
4 | puts "" |
5 | ######################################################################################### |
6 | # Visualization, TKOpenGl - back face culling should not affect textured font rendering |
7 | ######################################################################################### |
8 | |
6fb1a930 |
9 | vfont add [locate_data_file DejaVuSans.ttf] SansFont |
10 | |
348ff753 |
11 | box b 1 2 3 |
12 | explode b F |
13 | |
14 | vinit |
15 | vsetdispmode 1 |
16 | |
17 | vdisplay b_1 b_2 |
18 | vfit |
19 | |
6fb1a930 |
20 | vdrawtext text "SAMPLE TEXT" -pos 1 0 3 -color 1.0 0.0 0.0 -halign left -valign bottom -angle 0 -zoom 0 -height 30 -aspect regular -font SansFont |
348ff753 |
21 | |
22 | set bug_info [vreadpixel 260 137 rgb name] |
23 | if {$bug_info != "RED"} { |
24 | puts "ERROR: OCC25732 is reproduced. Text is missed." |
25 | } |
26 | |
5747059b |
27 | checkview -screenshot -3d -path ${imagedir}/${test_image}.png |