28
TTPM2 Installation and Programming Manual
September, 99
5.3.2 Text
printing
!F T
Format text for printing
!F T <orientation> <xpos> <ypos> 1 <height> <width> <font> <"text">
The parameters are used as follows:
!F
Indicates that this is the start of a print field definition
T
Indicates text mode
<orientation>
Specifies the way in which the text is to be oriented. This can be either
N(orth), E(ast), S(outh) or W(est). This terminology is described in
detail in the examples given in this document. Specific fonts may be
limited to one orientation only, see <font> below.
<xpos> <ypos>
Specifies starting position for the text on the
ticket. That is, the distance in pixels from the
upper left corner of the printable area to the
upper left-hand pixel of the bounding box of the
first character to be printed. Note that the
resolution is 7.52 pixels/mm on the X-axis and
5.7 pixels/mm on the Y-axis.
<fixed pitch>
No. of pixels from the start of one character to
the start of the next. Range 6 to 16. A value
below 6 sets the default pitch.
1
NOTE! –
Only used for font 1. Must be set
to 1 for all other fonts.
<height> <width> Specifies the height and width expansion of
characters to be printed. The height range is 1–
16 times the default value. The width range is
1–16 for fonts 1 and 4, and 1–3 for fonts 2 and
3. See font samples on page 19.
<font>
Selects the font (text appearance). Fonts 1, 2,
3, and 4 apply. Font 2 and 3 can only be North oriented. Fonts 1 and 4
can be set to any orientation. Font 4 is a proportional character font.
See font samples on page 19. Font appearance may differ from the
font samples if you have custom firmware in your printer.
<"text">
Text to be printed, or definition of a variable text field. Both plain text
and variable definitions have to be enclosed in quotes (" ").
Variable data to be printed as plain text is represented by "%V" in the
format data string. The information that should replace the variable are
sent before the !P print command at printout time. See also Document
examples starting at page 37.
Example of a command for fixed text:
!"#"#$%$
↵
↵↵
↵
Example of a command for variable text:
!"#"#$&'$
↵
↵↵
↵
1
Introduced in firmware version 3.2
Figure 18. Bounding box
of a character.
Note that the space to the
following character is
included in the bounding
box, and that the pixels
are not square.