0024387: Tests - use system-independent fonts in test cases
[occt.git] / tests / bugs / vis / bug24555
CommitLineData
6788f423 1puts "============"
2puts "OCC24555"
3puts "============"
4puts ""
5#######################################################################
6# Visualization - the same text is rendered with shift at second time
7#######################################################################
8
6fb1a930 9vfont add [locate_data_file DejaVuSans.ttf] SansFont
10
6788f423 11vinit
12vclear
13vaxo
6fb1a930 14vdrawtext text0 "This program" -pos 0 0 0 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 0 -zoom 0 -height 50 -aspect regular -font SansFont
6788f423 15
6fb1a930 16vdrawtext text1 "This program" -pos 0 0 0 -color 1.0 0.0 0.0 -halign left -valign bottom -angle 0 -zoom 0 -height 50 -aspect regular -font SansFont
6788f423 17
18set x 346
19set y 190
20
21set R 0
22set G 0.9843137264251709
23set B 0
24
ccadc126 25if {"[vreadpixel $x $y rgb]" == "$R $G $B" } {
6788f423 26 puts "Error : color is bad"
27} else {
28 puts "OK : color is good"
29}
30
31set only_screen 1