0024387: Tests - use system-independent fonts in test cases
[occt.git] / tests / bugs / vis / bug24288_1
CommitLineData
938d4544 1puts "============"
2puts "CR24288"
3puts "============"
4puts ""
5#######################################################################
6# Provide a text flipping
7# Test for text flipping after X rotation
8#######################################################################
9pload VISUALIZATION
10
6fb1a930 11vfont add [locate_data_file DejaVuSans.ttf] SansFont
12
938d4544 13set m_pi 3,14
14set m_pi2 1,57
15vinit
16vpoint radP1 0 0 0
17vpoint radP2 50 50 0
18vpoint radP3 100 0 0
19vcircle circle radP1 radP2 radP3 0
20vrotate 0 -$m_pi2 0
21verase radP1 radP2 radP3
6fb1a930 22vdimension dim -radius -text 3d -shapes circle -font SansFont
938d4544 23vfit
d7bffd44 24vmoveto 110 111
938d4544 25
d7bffd44 26set x_coord 196
27set y_coord 196
938d4544 28checkcolor $x_coord $y_coord 0 1 1
29
30if { $stat != 1 } {
31 puts "Error : Highlighting of radius dimension with 3d text before flipping is wrong."
32}
33
34# X axis rotation
35vrotate $m_pi 0 0
36vfit
d7bffd44 37vmoveto 208 200
938d4544 38
d7bffd44 39set x_coord 295
40set y_coord 113
938d4544 41checkcolor $x_coord $y_coord 0 1 1
42
43if { $stat != 1 } {
44 puts "Error : Highlighting of radius dimension with 3d text with flipping after x rotation is wrong."
45}
46
47set only_screen 1