0030679: Attached model hangs most of OCCT common functionality
[occt.git] / tests / 3rdparty / fonts / A6
CommitLineData
a174a3c5 1puts "============"
2puts "OCC23457 Text rendering performance"
3puts "Test case prints 3D labels with different text alignment styles and extra spaces in it"
4puts "============"
5puts ""
6
5b377041 7set THE_FONT_NAME sans-serif
8dtracelevel trace
9vfont -verbose 1
6fb1a930 10
a174a3c5 11vtrihedron trihedr
12
13vpoint pTL -700 100 600
5b377041 14vdrawtext Text0 " Top-Left\nFirst line \nLion The Second\n 3rd " -pos -700 100 600 -color 0.0 1.0 1.0 -halign left -valign top -angle 000 -zoom 0 -height 14 -aspect bold -font $THE_FONT_NAME
a174a3c5 15
16vpoint pTC 0 100 600
5b377041 17vdrawtext Text1 " Top-Center\nFirst line \nLion The Second\n 3rd " -pos 0 100 600 -color 0.0 1.0 1.0 -halign center -valign top -angle 000 -zoom 0 -height 14 -aspect bold -font $THE_FONT_NAME
a174a3c5 18
19vpoint pTR 700 100 600
5b377041 20vdrawtext Text2 " Top-Right\nFirst line \nLion The Second\n 3rd " -pos 700 100 600 -color 0.0 1.0 1.0 -halign right -valign top -angle 000 -zoom 0 -height 14 -aspect bold -font $THE_FONT_NAME
a174a3c5 21
22vpoint pCL -700 100 -100
5b377041 23vdrawtext Text3 " Center-Left\nFirst line \nLion The Second\n 3rd " -pos -700 100 -100 -color 1.0 1.0 1.0 -halign left -valign center -angle 000 -zoom 0 -height 14 -aspect bold -font $THE_FONT_NAME
a174a3c5 24
25vpoint pCC 0 100 -100
5b377041 26vdrawtext Text4 " Center-Center\nFirst line \nLion The Second\n 3rd " -pos 0 100 -100 -color 1.0 1.0 1.0 -halign center -valign center -angle 000 -zoom 0 -height 14 -aspect bold -font $THE_FONT_NAME
a174a3c5 27
28vpoint pCR 700 100 -100
5b377041 29vdrawtext Text5 " Center-Right\nFirst line \nLion The Second\n 3rd " -pos 700 100 -100 -color 1.0 1.0 1.0 -halign right -valign center -angle 000 -zoom 0 -height 14 -aspect bold -font $THE_FONT_NAME
a174a3c5 30
31vpoint pBL -700 100 -700
5b377041 32vdrawtext Text6 " Bottom-Left\nFirst line \nLion The Second\n 3rd " -pos -700 100 -700 -color 1.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 14 -aspect bold -font $THE_FONT_NAME
a174a3c5 33
34vpoint pBC 0 100 -700
5b377041 35vdrawtext Text7 " Bottom-Center\nFirst line \nLion The Second\n 3rd " -pos 0 100 -700 -color 1.0 1.0 0.0 -halign center -valign bottom -angle 000 -zoom 0 -height 14 -aspect bold -font $THE_FONT_NAME
a174a3c5 36
37vpoint pBR 700 100 -700
5b377041 38vdrawtext Text8 " Bottom-Right\nFirst line \nLion The Second\n 3rd " -pos 700 100 -700 -color 1.0 1.0 0.0 -halign right -valign bottom -angle 000 -zoom 0 -height 14 -aspect bold -font $THE_FONT_NAME
a174a3c5 39
40vfit
a174a3c5 41vfps
5747059b 42
43vglinfo
44checkview -screenshot -3d -path ${imagedir}/${test_image}.png