Zebra Technologies 7030 Printer User Manual


 
37
Programming
Text Commands
10/05/2009 TTP 7030™ Technical Manual P1003636-002
Applicable n values are 0 — 7.
In combination with variable character height <ESC>h<n>, give highly legible characters
depending on the font to which the command has been applied.
Different fonts and widths can be mixed on the same print line.
Prints a text string at the specified X-Y position. The string will use the formatting set by font,
reversed, width, height, bold, italics, and underline commands.
After the string has been printed, the cursor will return to the position it had before the string
command was issued.
ESC w n1
Text Width
1B 77 n1 hex
27 119 n1 decimal
n = 1 Increases the character width to 2 times the basic character width.
n = 2 Increases the character width to 3 times the basic character width etc.
n = 0 Resets the character width to the basic character width.
ESC t n1...n5 data
Print Text at XY
1B 74 n1...n5 data hex
27 116 n1...n5 data decimal
n1n2 Two byte definition of the X print position (in pixels).
n3n4 Two byte definition of the Y print position (in pixels).
n5 The number of characters in the string.
n5 The number of characters in the string. To avoid having to count
characters you can set n5 to 00h (null) and then terminate the text string
with null.
data The text string. If text string length is specified with n5, the length must
be exactly the number of characters specified; otherwise the printer will
stop, waiting for more characters.
Note • The <ESC>t command clears any text preceding it on the same line. Commands
will not be cleared.
Note • The Y print-position only works if fixed page length is used. Start a page by
specifying page length for example <ESC>C<4><160>
, then turn off auto page length with
<ESC>c<0>.