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/bug25369
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

24 lines
770 B
Plaintext

puts "========"
puts "OCC25369"
puts "========"
puts ""
###################################################################################################
# Visualization, Image_AlienPixMap - handle UTF-8 names in image read/save operations on Windows
###################################################################################################
vfont add [locate_data_file DejaVuSans.ttf] SansFont
box b 1 2 3
vinit View1
vclear
vsetdispmode 0
vdisplay b
vfit
set s [encoding convertfrom unicode "\x3A\x04\x30\x04\x40\x04\x2E\x00\x70\x00\x6E\x00\x67\x00"]
vdrawtext text0 $s -pos 0 0 0 -color 1.0 1.0 1.0 -halign left -valign bottom -angle 0 -zoom 0 -height 50 -aspect regular -font SansFont
vdump $::imagedir/$s
vtexture b $::imagedir/$s
set only_screen 1