FMTTEXT Mnemonic - Insert Formatted Text into SYSPRINT Device
BBj-Specific Information
For this topic's original documentation, see the FMTTEXT Mnemonic - Insert Formatted Text into SYSPRINT Device.
Syntax
'FMTTEXT'(x,y,w,h,align),text$
'FMTTEXT'(x,y,w,h,align)+text$
'FMTTEXT'(x,y,w,h,align,text$)
Description
In BBj 6.00 and higher, the 'FMTTEXT' mnemonic inserts the formatted
contents of text$ in the SYSPRINT
device.
| Parameter | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
x |
Horizontal location of the upper left corner of the print region, in inches. |
||||||||||||||||||||||||
|
y |
Vertical location of the upper left corner of the print region, in inches. |
||||||||||||||||||||||||
|
w |
Width of the print region, in inches. |
||||||||||||||||||||||||
|
h |
Height of the print region, in inches. |
||||||||||||||||||||||||
|
align |
Method of formatting the text, as a decimal integer. Note:The
|
||||||||||||||||||||||||
|
text$ |
Text to be formatted. Can include embedded formatting mnemonics (see below) |
Embedded Formatting Mnemonics
The table below lists the 'SYSPRINT' mnemonics that can be embedded in
the text$ parameter for additional control
of formatting.
Note:
Embedded formatting mnemonics are only supported with this version
of the 'FMTTEXT' mnemonic: 'FMTTEXT'(x, y, w, h, align, text$)
| Mnemonic | Description |
|---|---|
|
'BB' |
Adds the BOLD attribute to the current font. |
|
'EB' |
Clears the BOLD attribute from the current font. |
|
'BU' |
Begin Underline. |
|
'EU' |
End Underline. |
|
'SP' |
Standard print, equivalent to |
|
'CP' |
Compressed print, equivalent to |
|
'EP' |
Expanded print, equivalent to |
|
'SCALE'(x, y) |
Scales the current font by the specified x and y values. |
|
'BLACK' |
Sets text color to black. |
|
'BLUE' |
Sets text color to blue. |
|
'GREEN' |
Sets text color to green. |
|
'CYAN' |
Sets text color to cyan. |
|
'RED' |
Sets text color to red. |
|
'MAGENTA' |
Sets text color to magenta. |
|
'YELLOW' |
Sets text color to yellow. |
|
'WHITE' |
Sets text color to white. |
|
'GRAY' |
Sets text color to gray. |
|
'RGB'(r, g, b) |
Sets text color to the specified color. |
|
'FONT'("name"[,size]) |
Sets the specified font. The cpi parameter, if specified, is ignored. Note:Fonts embedded in 'FMTTEXT' are scaled according to different rules than fonts emitted directly to the 'SYSPRINT' device. |
|
'LF' |
Inserts a line feed, equivalent to embedded |
Example
|