0024387: Tests - use system-independent fonts in test cases
[occt.git] / tests / bugs / vis / bug24133_2
1 puts "============"
2 puts "CR24133"
3 puts "============"
4 puts ""
5 #######################################################################
6 #  Development of improvement of dimensions implementation
7 #  Angle dimension
8 #######################################################################
9 pload VISUALIZATION
10
11 vfont add [locate_data_file DejaVuSans.ttf] SansFont
12
13 vinit
14 vpoint angleP1 0 0 0
15 vpoint angleP2 50 50 50
16 vpoint angleP3 50 50 100
17 vdimension dim1 -angle -shapes angleP1 angleP2 angleP3 -font SansFont
18 vfit
19 vmoveto 249 206
20
21 set x_coord 249
22 set y_coord 200
23
24 checkcolor $x_coord $y_coord 0 1 1
25
26 if { $stat != 1 } {
27    puts "Error : Highlighting of angle dimension with 2d text is wrong."
28 }
29 vinit Viewer2/View2
30 vdisplay angleP1 angleP2 angleP3
31 vdimension dim2 -angle -text 3d -shapes angleP1 angleP2 angleP3 -font SansFont
32 vfit
33 vmoveto 263 251
34
35 set x_coord 335
36 set y_coord 319
37
38 checkcolor $x_coord $y_coord 0 1 1
39
40 if { $stat != 1 } {
41    puts "Error : Highlighting of angle dimension with 3d text is wrong."
42 }
43
44 set only_screen 1