rfddev.gml
来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 766 行 · 第 1/2 页
GML
766 行
This value is the point size of the characters in a scaled font.
The attribute does not have to be specified if the font is not scaled.
:H4.FONT_SPACE Attribute
:P.
The :HP2.font_space:eHP2.
:I2 refid='dadeffo'.font_space attribute
attribute specifies a number value.
This value is the space between lines of the font, and is specified
in points.
The attribute does not have to be specified if the font is not scaled.
:H4.FONTSTYLE Attribute
:P.
The font style values may be applied to any font.
The value of the :HP2.fontstyle:eHP2.
:I2 refid='dadeffo'.fontstyle attribute
attribute value is a
keyword value which defines the style
of the font.
The keyword value may be one of
:HP1.PLAIN:eHP1.,
:HP1.UNDERSCORE:eHP1.,
:HP1.BOLD:eHP1.,
:HP1.USBOLD:eHP1.,
:HP1.UNDERLINE:eHP1.,
or :HP1.ULBOLD:eHP1..
:DL.
:DT.PLAIN
:DD.The characters of the font are sent to the output device
without modification.
:DT.UNDERSCORE
:DD.With the exception of space characters, all characters
of the font are underlined.
:DT.BOLD
:DD.The characters of the font are bolded.
:DT.USBOLD
:DD.With the exception of space characters, all characters
of the font are underlined and bolded.
:DT.UNDERLINE
:DD.The characters of the font are underlined.
:DT.ULBOLD
:DD.The characters of the font are underlined and bolded.
:eDL.
:H3.FONTPAUSE Block
:P.
A change from one font to another font often requires &WGML.
to send a control sequence to the output device.
In some cases, the font switch may require physical
intervention at the output device by the operator.
Examples of such an intervention would be changing a print wheel
or color ribbon.
The :HP2.fontpause:eHP2.
:I2 refid='ddevice'.fontpause block
:I1.pausing
:I1.fonts
block defines a pausing method to use, and
is referenced by the device font block.
The font pause block is not required if font pausing
is not needed.
:FIG place=inline frame=box.
&gml.FONTPAUSE
type = 'character string'
&gml.value.
<device functions>
&gml.evalue.
&gml.eFONTPAUSE.
:FIGCAP.The FONTPAUSE Block
:EFIG.
:P.
A fontpause block begins with the :HP2.&gml.fontpause:eHP2.
:IH1 print='&gml.fontpause tag'.fontpause tag
:I1 id='dafontp'.fontpause tag
tag and ends with the :HP2.&gml.efontpause:eHP2.
:IH1 print='&gml.efontpause tag'.efontpause tag
:I1.efontpause tag
tag.
The type attribute and the value section must both be specified.
:FIG place=inline frame=box.
&gml.FONTPAUSE
type = '12-pitch wheel'
&gml.value.
%text( "Please attach the 12 pitch wheel" )
%recordbreak()%wait()
&gml.evalue.
&gml.eFONTPAUSE.
:FIGCAP.Example of the FONTPAUSE Block
:EFIG.
:H4.TYPE Attribute
:P.
The :HP2.type:eHP2.
:I2 refid='dafontp'.type attribute
attribute specifies a character value.
The specified value is referenced by the device font block when
a font pause method is required.
The attribute value must be unique among the font pause blocks in
the device definition.
:H4.VALUE Section
:P.
The :HP2.value:eHP2. section specifies the pausing control sequences
to be output before the font switch,
:INCLUDE file='rfdvalue'.
:H3.RULE Block
:P.
The :HP2.rule:eHP2. block specifies the
information necessary for &WGML.
to create a rule line, and must be specified.
:FIG place=inline frame=box.
&gml.RULE
font = number | 'character string'
rule_value = number | 'character'
&gml.eRULE.
:FIGCAP.The RULE Block
:EFIG.
:P.
A rule block
:I2 refid='ddevice'.rule block
begins with the :HP2.&gml.rule:eHP2.
:IH1 print='&gml.rule tag'.rule tag
:I1 id='darule'.rule tag
tag and ends with the :HP2.&gml.erule:eHP2.
:IH1 print='&gml.erule tag'.erule tag
:I1.erule tag
tag.
Both of the attribute values in the rule block must be specified.
:FIG place=inline frame=box.
&gml.RULE
font = 0
rule_value = '-'
&gml.eRULE.
:FIGCAP.Example of the RULE Block
:EFIG.
:H4.FONT Attribute
:P.
The :HP2.font:eHP2.
:I2 refid='darule'.font attribute
attribute value
may be either a non-negative integer
number or a character value.
If a number is specified, the font of the rule line will
be the default font with the corresponding font number.
A character attribute value must be a font name defined in a
device font block.
The font style PLAIN will be used in this case.
Using a specific font name will ensure that the rule line will
be drawn with a particular font regardless of the selected
default fonts.
:H4.RULE_VALUE Attribute
:P.
The :HP2.rule_value:eHP2.
:I2 refid='darule'.rule_value attribute
attribute may be either a
number or a character value.
The number value may be either a non-negative integer
or a hexadecimal number beginning with a dollar($) sign.
The number represents a character available in the font being
used for the rule line, and is usually used when the character
cannot be entered at the terminal.
If a character value is specified, it must be delimited by quotes
and only one character in length.
The attribute value is used to construct the rule line.
:H3.BOX Block
:P.
The :HP2.box:eHP2.
:I2 refid='ddevice'.box block
:I1.framing
block specifies
the information necessary for &WGML.
to create a box, and must be specified.
:FIG place=inline frame=box.
&gml.BOX
font = number | 'character string'
top_line = number | 'character'
bottom_line = number | 'character'
left_side = number | 'character'
right_side = number | 'character'
top_left = number | 'character'
top_right = number | 'character'
bottom_left = number | 'character'
bottom_right = number | 'character'
&gml.eBOX.
:FIGCAP.The BOX Block
:EFIG.
:P.
A box block begins with the :HP2.&gml.box:eHP2.
:IH1 print='&gml.box tag'.box tag
:I1.box tag
tag and ends with the :HP2.&gml.ebox:eHP2.
:IH1 print='&gml.ebox tag'.ebox tag
:I1.ebox tag
tag.
All of the box block attributes must be specified.
With the exception of the font attribute, all of the attribute
values may be either a
number or a character value.
The number value may be either a non-negative integer
or a hexadecimal number starting with a dollar($) sign.
The number represents a character available in the font being
used for the box, and is usually used when the value
cannot be entered as a character at the terminal.
If a character value is specified, it must be delimited by quotes
and only one character in length.
:FIG place=inline frame=box.
&gml.BOX
font = 0
top_line = '-'
bottom_line = '-'
left_side = '!'
right_side = '!'
top_left = '+'
top_right = '+'
bottom_left = '+'
bottom_right = '+'
&gml.eBOX.
:FIGCAP.Example of the BOX Block
:EFIG.
:H4.FONT Attribute
:P.
The :HP2.font:eHP2.
:IH1 id='dabox' print='&gml.box attributes'.boxattr
:I2 refid='dabox'.font attribute
attribute may be either a non-negative integer
number or a character value.
If a number is specified, the font of the box will be
the default font with the corresponding font number.
A character attribute value must be a font name defined in a
device font block.
Using a specific font name will ensure that the box will
be drawn with a particular font regardless of the selected
default fonts.
:H4.TOP_LINE Attribute
:P.
The :HP2.top_line:eHP2.
:I2 refid='dabox'.top_line attribute
attribute value specifies the character used
to create the top line of the box.
:H4.BOTTOM_LINE Attribute
:P.
The :HP2.bottom_line:eHP2.
:I2 refid='dabox'.bottom_line attribute
attribute value specifies the character used
to create the bottom line of the box.
:H4.LEFT_SIDE Attribute
:P.
The :HP2.left_side:eHP2.
:I2 refid='dabox'.left_side attribute
attribute value specifies the character used
to create the left side line of the box.
:H4.RIGHT_SIDE Attribute
:P.
The :HP2.right_side:eHP2.
:I2 refid='dabox'.right_side attribute
attribute value specifies the character used
to create the right side line of the box.
:H4.TOP_LEFT Attribute
:P.
The :HP2.top_left:eHP2.
:I2 refid='dabox'.top_left attribute
attribute value specifies the character used
to create the top left corner of the box.
:H4.TOP_RIGHT Attribute
:P.
The :HP2.top_right:eHP2.
:I2 refid='dabox'.top_right attribute
attribute value specifies the character used
to create the top right corner of the box.
:H4.BOTTOM_LEFT Attribute
:P.
The :HP2.bottom_left:eHP2.
:I2 refid='dabox'.bottom_left attribute
attribute value specifies the character used
to create the bottom left corner of the box.
:H4.BOTTOM_RIGHT Attribute
:P.
The :HP2.bottom_right:eHP2.
:I2 refid='dabox'.bottom_right attribute
attribute value specifies the character used
to create the bottom right corner of the box.
:H3.UNDERSCORE Block
:P.
The :HP2.underscore:eHP2.
:I2 refid='ddevice'.underscore block
:I1.underscoring
:I1.underlining
block specifies
the character information needed by &WGML.
to perform underscoring.
If the underscore block is not specified, the standard
underscore character will be used.
:FIG place=inline frame=box.
&gml.UNDERSCORE
font = number | 'character string'
score_value = number | 'character'
&gml.eUNDERSCORE.
:FIGCAP.The UNDERSCORE Block
:EFIG.
:P.
An underscore block begins with the :HP2.&gml.underscore:eHP2.
:IH1 print='&gml.underscore tag'.underscore tag
:I1 id='daunder'.underscore tag
tag and ends with the :HP2.&gml.eunderscore:eHP2.
:IH1 print='&gml.eunderscore tag'.eunderscore tag
:I1.eunderscore tag
tag.
All of the attributes in the underscore block must be specified.
:FIG place=inline frame=box.
&gml.UNDERSCORE
font = 0
score_value = '_'
&gml.eUNDERSCORE.
:FIGCAP.Example of the UNDERSCORE Block
:EFIG.
:H4.FONT Attribute
:P.
The :HP2.font:eHP2.
:I2 refid='daunder'.font attribute
attribute value
may be either a non-negative integer
number or a character value.
If a number is specified, the font of the underscore character will
the default font with the corresponding font number.
A character attribute value must be a font name defined in a
device font block.
The font style PLAIN will be used in this case.
Using a specific font name will ensure that the underscore character will
be used with a particular font regardless of the selected
default fonts.
:H4.SCORE_VALUE Attribute
:P.
The :HP2.score_value:eHP2.
:I2 refid='daunder'.score_value attribute
attribute may be either a
number or a character value.
The number value may be either a non-negative integer
or a hexadecimal number beginning with a dollar($) sign.
The number represents a character available in the font being
used for the underscore character, and is usually used when the character
cannot be entered at the terminal.
If a character value is specified, it must be delimited by quotes
and only one character in length.
The specified attribute is used to underscore text.
:H3.PAGESTART Block
:P.
The :HP2.pagestart:eHP2.
:I2 refid='ddevice'.pagestart block
block specifies the
address of the first line on the output page.
:FIG place=inline frame=box.
&gml.PAGESTART
x_start = number
y_start = number
&gml.ePAGESTART.
:FIGCAP.The PAGESTART Block
:EFIG.
:P.
A pagestart block begins with the :HP2.&gml.pagestart:eHP2.
:IH1 print='&gml.pagestart tag'.pagestart tag
:I1 id='dapages'.pagestart tag
tag and ends with the :HP2.&gml.epagestart:eHP2.
:IH1 print='&gml.epagestart tag'.epagestart tag
:I1.epagestart tag
tag.
All of the attributes in the pagestart block must be specified.
:FIG place=inline frame=box.
&gml.PAGESTART
x_start = 300
y_start = 500
&gml.ePAGESTART.
:FIGCAP.Example of the PAGESTART Block
:EFIG.
:H4.X_START Attribute
:P.
The :HP2.x_start:eHP2.
:I2 refid='dapages'.x_start attribute
attribute value
is a non-negative integer number.
The value is in horizontal base units.
:H4.Y_START Attribute
:P.
The :HP2.y_start:eHP2.
:I2 refid='dapages'.y_start attribute
attribute value
is a non-negative integer number.
The value is in vertical base units.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?