1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00
occt/tests/bugs/vis/bug24133_1
isk 6fb1a930e2 0024387: Tests - use system-independent fonts in test cases
Add a new parameter "-font FontName" to the command "vdimension".
Tuning of test-cases
2015-08-27 15:30:18 +03:00

28 lines
680 B
Plaintext

puts "============"
puts "CR24133"
puts "============"
puts ""
#######################################################################
# Development of improvement of dimensions implementation
# Length dimension
#######################################################################
pload VISUALIZATION
vfont add [locate_data_file DejaVuSans.ttf] SansFont
vinit
vpoint lengthP1 0 0 0
vpoint lengthP2 50 50 50
vdimension dim1 -length -plane xoy -shapes lengthP1 lengthP2 -font SansFont
vfit
vmoveto 82 254
set x_coord 362
set y_coord 102
checkcolor $x_coord $y_coord 0 1 1
if { $stat != 1 } {
puts "Error : Highlighting of length dimension is wrong."
}
set only_screen 1