0029993: Visualization - AIS_TextLabel computes selection primitive only for attachme...
[occt.git] / tests / 3rdparty / fonts / A7
CommitLineData
a174a3c5 1puts "============"
2puts "OCC23457 Text rendering performance"
3puts "Test case prints overlay labels with different subtitle styles"
4puts "============"
5puts ""
6
6fb1a930 7vfont add [locate_data_file DejaVuSans.ttf] SansFont
a174a3c5 8
aaf8d6a9 9set aParams "-height 16 -font SansFont -2d -persPos -1 1 -subColor BLUE"
a174a3c5 10
3cbd0a8e 11vclear
12vviewparams -scale 254.5 -proj 0.89 -0.37 0.26 -up -0.21 0.16 0.96 -at 0.69 1.05 1.46
a174a3c5 13
3cbd0a8e 14vdrawtext td "Overlay Test Decal" {*}$aParams -pos 20 -100 0 -color WHITE -dispType decal
15vdrawtext ts "Overlay Test Shadow" {*}$aParams -pos 20 -150 0 -color WHITE -dispType shadow
16vdrawtext tx "Overlay Test XOR" {*}$aParams -pos 20 -200 0 -color YELLOW -dispType blend
17vdrawtext tt "Overlay Test Subtitle" {*}$aParams -pos 20 -250 0 -color WHITE -dispType subtitle
18vdrawtext tw "Overlay Test Normal" {*}$aParams -pos 20 -300 0 -color WHITE -dispType normal
19vdrawtext tb "Overlay Test Normal" {*}$aParams -pos 20 -350 0 -color GRAY33 -dispType normal
a174a3c5 20
3cbd0a8e 21vdrawtext td2 " Overlay Test Decal \n Second line" {*}$aParams -pos 200 -100 0 -color WHITE -dispType decal
22vdrawtext ts2 " Overlay Test Shadow \n Second line" {*}$aParams -pos 200 -150 0 -color WHITE -dispType shadow
23vdrawtext tx2 " Overlay Test XOR \n Second line" {*}$aParams -pos 200 -200 0 -color YELLOW -dispType blend
24vdrawtext tt2 " Overlay Test Subtitle\n Second line" {*}$aParams -pos 200 -250 0 -color WHITE -dispType subtitle
25vdrawtext tw2 " Overlay Test Normal \n Second line" {*}$aParams -pos 200 -300 0 -color WHITE -dispType normal
26vdrawtext tb2 " Overlay Test Normal \n Second line" {*}$aParams -pos 200 -350 0 -color GRAY33 -dispType normal
a174a3c5 27
28box b 1 2 3
3cbd0a8e 29vdisplay -dispMode 1 b
30vselprops localSelHighlight -dispMode 1 -material SILVER -color WHITE
31vselmode b FACE 1
3e9c1d1e 32vselect 190 250
5747059b 33
34vglinfo
3cbd0a8e 35vdump ${imagedir}/${casename}.png