1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00
Files
occt/tests/bugs/vis/bug23652
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

35 lines
1.1 KiB
Plaintext
Executable File

puts "========"
puts "OCC23652"
puts "========"
###############################################################################
# Non zoomable text with alignment slides away when zooming view
###############################################################################
vfont add [locate_data_file DejaVuSans.ttf] SansFont
vinit
vtrihedron tri
vdrawtext text0 Default -pos 0.0 0.0 0.0 -color 1.0 1.0 1.0 -halign left -valign bottom -angle 0 -zoom 1 -height 20 -aspect regular -font SansFont
vdrawtext text1 Right_Align -pos 0.0 0.0 0.0 -color 1.0 1.0 1.0 -halign right -valign bottom -angle 0 -zoom 1 -height 20 -aspect regular -font SansFont
set scale 3.1783114563761763
set proj_X 0.57735025882720947
set proj_Y -0.57735025882720947
set proj_Z 0.57735025882720947
set up_X -0.40824827551841736
set up_Y 0.40824827551841736
set up_Z 0.81649655103683472
set at_X 0
set at_Y 0
set at_Z 0
vviewparams -scale ${scale} -proj ${proj_X} ${proj_Y} ${proj_Z} -up ${up_X} ${up_Y} ${up_Z} -at ${at_X} ${at_Y} ${at_Z}
set x_coord 210
set y_coord 204
checkcolor $x_coord $y_coord 0.6 0.6 0.6
set only_screen 1