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