0024387: Tests - use system-independent fonts in test cases
[occt.git] / tests / 3rdparty / fonts / A2
CommitLineData
40093367 1puts "============"
2puts "OCC21091"
3puts "OCC21450"
4puts "============"
5puts ""
29e2c6d2 6#vdrawtext: vdrawtext name text [-pos X Y Z] [-color R G B] [-align hor_align ver_align] [-angle angle] [-zoom zoomable]
7# [-height height] [-aspect aspect] [-font font] [-mb isMultiByte]
40093367 8#------------------------------------------------------
9# X\Y\Z - Position Of Text
10#------------------------------------------------------
11# R\G\B - Color Of Text
12#------------------------------------------------------
13# hor_align 0 to 3
14# HorizontalTextAlignment is HTA_LEFT 0
15# HTA_CENTER 1
16# HTA_RIGHT 2
17#
18# ver_align 0 to 4
19# VerticalTextAlignment is VTA_BOTTOM 0
20# VTA_CENTER 1
21# VTA_TOP 2
22#------------------------------------------------------
23# angle - angle turn of text. this variable in degrees
24#------------------------------------------------------
25# zoomable - if this variable "0" text not zoomable
26# if this variable "1" text zoomable as object in DrawCommands
27#------------------------------------------------------
28# height - Font Height
29#------------------------------------------------------
30# Aspect - Aspect Font 0 to 4
31# If in list of textfont, not find font with necessary aspect, will be used default font "Courier" with OSD_FA_Regular aspect
32# FontAspect is FA_Undefined, FA_Regular, FA_Bold, FA_Italic, FA_BoldItalic
33# - 0 - - 1 - - 2 - - 3 - - 4 -
34#------------------------------------------------------
35# FONT - font name of font
36# If in list of textfont, not find font with necessary Name, will be used default font "Courier"
37#
38
6fb1a930 39vfont add [locate_data_file DejaVuSansMono.ttf] MonoFont
40vfont add [locate_data_file DejaVuSans.ttf] SansFont
41vfont add [locate_data_file DejaVuSerif.ttf] SerifFont
42
40093367 43vtrihedron trihedr
44
45vpoint p1 100 100 -400
46vpoint p2 000 000 -400
47vpoint p3 -100 -100 -400
6fb1a930 48vdrawtext OC0 OpenCascade -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
49vdrawtext OC1 OpenCascade -pos 000 000 -400 -color 0.0 1.0 1.0 -halign center -valign bottom -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont
50vdrawtext OC2 OpenCascade -pos -100 -100 -400 -color 0.0 1.0 1.0 -halign right -valign bottom -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont
40093367 51
52vpoint p4 100 100 -500
53vpoint p5 000 000 -500
54vpoint p6 -100 -100 -500
6fb1a930 55vdrawtext OC3 OpenCascade -pos 100 100 -500 -color 1.0 0.0 0.0 -halign left -valign top -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont
56vdrawtext OC4 OpenCascade -pos 000 000 -500 -color 1.0 0.0 0.0 -halign center -valign top -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont
57vdrawtext OC5 OpenCascade -pos -100 -100 -500 -color 1.0 0.0 0.0 -halign right -valign top -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont
40093367 58
59vpoint p7 100 100 -450
60vpoint p8 000 000 -450
61vpoint p9 -100 -100 -450
6fb1a930 62vdrawtext OC6 OpenCascade -pos 100 100 -450 -color 0.02 1.0 0.0 -halign left -valign center -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont
63vdrawtext OC7 OpenCascade -pos 000 000 -450 -color 0.02 1.0 0.0 -halign center -valign center -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont
64vdrawtext OC8 OpenCascade -pos -100 -100 -450 -color 0.02 1.0 0.0 -halign right -valign center -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont
40093367 65
66
6fb1a930 67vdrawtext L0 _.Left._ -pos 200 200 200 -color 1.0 1.0 1.0 -halign left -valign bottom -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont
68vdrawtext L1 _.Left._ -pos 200 200 200 -color 1.0 1.0 0.0 -halign left -valign bottom -angle 090 -zoom 1 -height 50 -aspect regular -font SansFont
40093367 69
6fb1a930 70vdrawtext R0 _.Right._ -pos 200 200 200 -color 1.0 0.0 1.0 -halign right -valign top -angle 000 -zoom 1 -height 50 -aspect regular -font SansFont
71vdrawtext R1 _.Right._ -pos 200 200 200 -color 1.0 0.6078 0.5882 -halign right -valign top -angle 090 -zoom 1 -height 50 -aspect regular -font SansFont
40093367 72
6fb1a930 73vdrawtext N0 _.0123456789._ -pos 200 200 200 -color 0.0 0.0 1.0 -halign center -valign center -angle 045 -zoom 1 -height 50 -aspect regular -font SansFont
74vdrawtext N1 _.0123456789._ -pos 200 200 200 -color 1.0 0.0 0.0 -halign center -valign center -angle -45 -zoom 1 -height 50 -aspect regular -font SansFont
40093367 75
6fb1a930 76vdrawtext SS _.~!@#$%^&*:?|+-._ -pos -200 000 400 -color 1.0 0.0 0.0 -halign left -valign bottom -angle 0 -zoom 1 -height 50 -aspect regular -font SansFont
40093367 77
78box atextbox -100 -100 -100 -200 -200 -200
79vdisplay atextbox
80
6fb1a930 81vdrawtext OC9 OpenCascade -pos -300 -300 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font SerifFont
82vdrawtext OC10 OpenCascade -pos -300 -300 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font SerifFont
83vdrawtext OC11 OpenCascade -pos -100 -100 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font SerifFont
84vdrawtext OC12 OpenCascade -pos -100 -100 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font SerifFont
40093367 85
6fb1a930 86vdrawtext OC13 OpenCascade -pos -300 -100 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font SerifFont
87vdrawtext OC14 OpenCascade -pos -100 -300 -300 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font SerifFont
88vdrawtext OC15 OpenCascade -pos -300 -100 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font SerifFont
89vdrawtext OC16 OpenCascade -pos -100 -300 -100 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 000 -zoom 0 -height 15 -aspect regular -font SerifFont
40093367 90
6fb1a930 91vdrawtext OC17 OpenCascade -pos -200 -200 100 -color 1.0 0.0 1.0 -halign left -valign bottom -angle 010 -zoom 0 -height 15 -aspect regular -font SansFont
92vdrawtext OC18 OpenCascade -pos -200 -200 150 -color 0.0 1.0 1.0 -halign left -valign bottom -angle 010 -zoom 0 -height 15 -aspect regular -font SerifFont
93vdrawtext OC19 OpenCascade -pos -200 -200 200 -color 1.0 1.0 0.0 -halign left -valign bottom -angle 010 -zoom 0 -height 15 -aspect italic -font SerifFont
94vdrawtext OC20 OpenCascade -pos -200 -200 250 -color 0.0 1.0 0.02 -halign left -valign bottom -angle 010 -zoom 0 -height 15 -aspect bolditalic -font MonoFont
95vdrawtext OC21 OpenCascade -pos -200 -200 300 -color 1.0 0.0 0.02 -halign left -valign bottom -angle 010 -zoom 0 -height 15 -aspect regular -font MonoFont