1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/demo/draw/bug23745
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
655 B
Plaintext

puts "============"
puts "OCC23745"
puts "============"
puts ""
######################################################
# Draw Harness, ViewerText - vdrawtext command should not modify global text aspect
######################################################
pload QAcommands
pload VISUALIZATION
vfont add [locate_data_file DejaVuSans.ttf] SansFont
vinit
vdrawtext text0 "ANOTHERBUG" -pos 100 100 100 -color 1.0 0.0 0.0 -halign left -valign bottom -angle 0 -zoom 1 -height 50 -aspect SansFont
vtrihedron trihedron
set x 239
set y 216
set R 1
set G 1
set B 0
checkcolor ${x} ${y} ${R} ${G} ${B}
vdump ${imagedir}/${casename}.png
puts "TEST COMPLETED"