0032203: Draw Harness, ViewerTest - drop dependency from OpenGL
[occt.git] / tests / bugs / vis / bug28099_text_core
CommitLineData
6fe58c66 1puts "============"
2puts "OCC28099: handle DIMENSION and SUBTITLE styles within Core Profile"
3puts "Test case prints overlay labels with different subtitle styles"
4puts "============"
5puts ""
6
7pload MODELING VISUALIZATION
b8db9379 8pload OPENGL
6fe58c66 9
10vclear
11vcaps -core 1
12vinit View1
13vaxo
14vfont add [locate_data_file DejaVuSans.ttf] SansFont
15
aaf8d6a9 16vdrawtext t1 "Overlay Test Blend" -2d -perspos -1 1 -pos 100 -50 0 -height 16 -font SansFont -color YELLOW -disptype blend -subcolor BLUE
17vdrawtext t2 "Overlay Test Decal" -2d -perspos -1 1 -pos 100 -100 0 -height 16 -font SansFont -color YELLOW -disptype decal -subcolor BLUE
18vdrawtext t3 "Overlay Test Subtitle" -2d -perspos -1 1 -pos 100 -150 0 -height 16 -font SansFont -color YELLOW -disptype subtitle -subcolor BLUE
19vdrawtext t4 "Overlay Test Normal" -2d -perspos -1 1 -pos 100 -200 0 -height 16 -font SansFont -color CYAN -disptype normal -subcolor BLUE
6fe58c66 20
aaf8d6a9 21vdrawtext t5 " Overlay Test Normal \n Second line" -2d -perspos -1 1 -pos 100 -250 0 -height 16 -font SansFont -color CYAN -disptype normal -subcolor BLUE
22vdrawtext t6 " Overlay Test Subtitle\n Second line" -2d -perspos -1 1 -pos 100 -300 0 -height 16 -font SansFont -color YELLOW -disptype subtitle -subcolor BLUE
23vdrawtext t7 " Overlay Test Decal \n Second line" -2d -perspos -1 1 -pos 100 -350 0 -height 16 -font SansFont -color YELLOW -disptype decal -subcolor BLUE
24vdrawtext t8 " Overlay Test Blend \n Second line" -2d -perspos -1 1 -pos 100 -400 0 -height 16 -font SansFont -color YELLOW -disptype blend -subcolor BLUE
6fe58c66 25
26box b 50 50 50
27vdisplay -dispMode 1 b
28
29vpoint lengthP1 0 50 50
30vpoint lengthP2 50 50 50
31vdimension dim1 -length -plane xoy -shapes lengthP1 lengthP2 -font SansFont
32vfit
33
34vdump $::imagedir/${::casename}.png