0032208: Tests - refactor visualization tests to cover several graphic drivers
[occt.git] / tests / opengl / data / text / bug24555
1 puts "============"
2 puts "OCC24555: Visualization - the same text is rendered with shift at second time"
3 puts "============"
4 puts ""
5
6 pload VISUALIZATION
7 vfont add [locate_data_file DejaVuSans.ttf] SansFont
8
9 vinit View1
10 vclear
11 vaxo
12 vdrawtext text0 "This program" -pos 0 0 0 -color GREEN -halign left -valign bottom -angle 0 -zoom 0 -height 50 -aspect regular -font SansFont
13
14 vdrawtext text1 "This program" -pos 0 0 0 -color RED   -halign left -valign bottom -angle 0 -zoom 0 -height 50 -aspect regular -font SansFont
15
16 set x 346
17 set y 190
18
19 set R 0
20 set G 0.9843137264251709
21 set B 0
22
23 if {"[vreadpixel $x $y rgb]" == "$R $G $B" } {
24   puts "Error : color is bad"
25 } else {
26   puts "OK : color is good"
27 }
28
29 vdump $imagedir/${casename}.png