Printing Text on a Label
Label Output | PALTM Command Sequences |
1 "
Hello World!
/Sans12.00pt findfont
12scalefont setfont
7272 moveto (Hello World!) show
1_showpages
1 "
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
_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.
Fastmark 600 Series User's Guide | 45 |