Programming

Text Commands

37

ESC w n1

1B 77 n1

hex

27 119 n1

decimal

Text Width

Applicable n values are 0 — 7.

n = 1

n = 2

n = 0

Increases the character width to 2 times the basic character width.

Increases the character width to 3 times the basic character width etc.

Resets the character width to the basic character width.

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.

ESC t n1

...n5

data

 

Print Text at XY

1B 74 n1...

n5

data

hex

27 116 n1...

n5

data

decimal

 

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.

n1n2

n3n4

n5

n5

data

Two byte definition of the X print position (in pixels).

Two byte definition of the Y print position (in pixels).

The number of characters in the string.

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.

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.

After the string has been printed, the cursor will return to the position it had before the string command was issued.

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>.

10/05/2009

TTP 7030™ Technical Manual

P1003636-002

Page 37
Image 37
Zebra Technologies 7030 technical manual ESC w n1