AMT Datasouth 400 Printer User Manual


 
User's Guide 37
Printing Text on a Label
Label Output PAL
TM
Command Sequences
Hello World!
1 "
1 "
/Sans12.00pt findfont
12 scalefont
setfont
72 72 moveto
(Hello World!) show
1 _showpages
Purpose: Demonstrate how to print simple text on a label.
findfont - Establish the font to use
The fontname is preceded by a “/”. In this example, a Sans Serif 12 point font was chosen. See
Table 1 for supported fonts.
scalefont – Scale the selected font’s size in points
It is typical to use the value indicated in the selected font. In this example, since Sans12.00pt was
the selected font, the scaling was set to 12. Optionally, the command may be used to scale the font
to a different size (e.g. 13 or 11)
setfont - Set the current font to the scaled font defined by the scalefont operator
This font will be used for all subsequent text unless another font is chosen.
moveto - Position the drawing cursor at the desired location
Moves the cursor position 1 inch to the right and 1 inch from the bottom (see box on next page for
description of coordinate system).
show – Place the text on the label
The text to be printed is enclosed by parentheses. The lower left-hand corner of the text is placed
at the current cursor position. In this example the cursor position is established with the moveto
command as described above.
_showpages - Print the created label
The “1” in the example indicates that one label is to be printed. If printing 10 labels, the
command would be 10 _showpages.