0024387: Tests - use system-independent fonts in test cases
[occt.git] / tests / bugs / vis / bug22879
CommitLineData
3bea4c16 1puts "============"
2puts "OCC22879"
3puts "============"
4puts ""
5#######################################################################
6# Possible bug in Opengl_togl_begin_layer_mode.cxx
7#######################################################################
8
6fb1a930 9vfont add [locate_data_file DejaVuSans.ttf] SansFont
10
3bea4c16 11set BugNumber OCC22879
12
13vinit
14
6fb1a930 15vdrawtext t1 "Text Height=14" -2d -perspos -1 1 -pos 10 -10 0 -height 14 -color 1 1 1 -font SansFont
16vdrawtext t2 "Text Height=25" -2d -perspos -1 1 -pos 10 -40 0 -height 25 -color 1 1 1 -font SansFont
17vdrawtext t3 "Arial" -2d -perspos -1 1 -pos 10 -60 0 -height 18 -font SansFont -color 1 0 0
18vdrawtext t4 "Times New Roman" -2d -perspos -1 1 -pos 10 -80 0 -height 18 -font SansFont -color 0 0 1
19vdrawtext t5 "Subtitle" -2d -perspos -1 1 -pos 10 -110 0 -height 20 -font SansFont -color 0 1 0 -disptype subtitle -subcolor 0.3 0.3 0.3
20vdrawtext t6 "Decal" -2d -perspos -1 1 -pos 10 -140 0 -height 20 -font SansFont -color 0 0 1 -disptype decal -subcolor 1 0 0
21vdrawtext t7 "Blend" -2d -perspos -1 1 -pos 10 -170 0 -height 20 -font SansFont -color 1 0 0 -disptype blend
3bea4c16 22box b 50 -700 450 50 50 50
23vdisplay b
24vsetdispmode 1
25vsetcolor b ANTIQUEWHITE
26
44c7c33e 27checkcolor 24 55 0.753 0.000 0.000
28checkcolor 16 76 0.000 0.000 1.000
29checkcolor 25 107 0.000 1.000 0.000
30checkcolor 34 114 0.298 0.298 0.298
31checkcolor 24 131 0.922 0.000 0.000
32checkcolor 18 139 0.145 0.000 0.855
33checkcolor 56 160 1.000 0.000 0.000
34checkcolor 30 160 0.188 0.761 0.698
3bea4c16 35
36set only_screen 1
37