AMT Datasouth Codewriter 4500 Series Operator's Manual page 86

Amt datasouth printers operator's manual
Table of Contents

Advertisement

Applications Overview
Label Output
Hello World!
1 "
1 "
Purpose: Demonstrate how to rotate text. This example builds on the previous example
by placing another instance of "Hello World!" rotated 90 degrees.
moveto - Position the drawing cursor at the desired location
The text will be located at the same x position and slightly higher in the y direction
relative to the previous text.
rotate - Rotate the coordinate system
In this example the coordinate system is rotated 90 degrees. Since the entire drawing
surface is being rotated, it is important to reset the rotation by the same amount in the
opposite direction (-90 degrees) after text has been placed.
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.
Rotate a Text Object
PAL Command Sequence
/Sans12.00pt findfont
12 scalefont
setfont
72 72 moveto
(Hello World!) show
72 68 moveto
144 68 lineto
30 30 moveto
258 30 lineto
258 258 lineto
30 258 lineto
closepath
stroke
72 90 moveto
90 rotate
(Hello World!) show
-90 rotate
1 _showpages
76

Advertisement

Table of Contents
loading

Table of Contents