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

23 lines
581 B
Plaintext

puts "============"
puts "OCC23457 Text rendering performance"
puts "Test case performs rendering of single huge text label"
puts "============"
puts ""
vfont add [locate_data_file DejaVuSans.ttf] SansFont
vtrihedron trihedr
set aFileHandle [open [locate_data_file screw.step] r]
set aText [read $aFileHandle]
close $aFileHandle
vpoint p0 0 0 -400
vpoint p1 0 10000 -400
vpoint p2 1000 0 -400
vfit
vdrawtext text "$aText" -pos 100 100 -400 -color 0.0 1.0 1.0 -halign left -valign bottom -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont
vfps