Select your printer model

Parameters are refined by the selected printer.

<text>


This element allows you to specify text string to print and print settings such as character style, print position, line spacing.

Attribute

lang

Attribute value

Description

"en"

English (ANK specification)

"de"

German (ANK specification)

"fr"

French (ANK specification)

"it"

Italian (ANK specification)

"es"

Spanish (ANK specification)

"ja"

Japanese (International character set is also changed to Japanese.)

"ja-jp"

"ja-ex"

Japanese JISX0213 (International character set is also changed to Japanese.)

"ko"

Korean (International character set is also changed to Korean.)

"ko-kr"

"zh-hans"

Simplified Chinese (International character set is also changed to Chinese.)

"zh-cn"

"zh-hant"

Traditional Chinese

"zh-tw"

"mul"

Multiple languages (UTF-8)

Language code other than above

English (ANK specification)

Depending on the specified language, some characters are printed as follows:

Language

Characters $(U+0024)

Characters \(U+005C)

Japanese

$

¥

Korean

$

Simplified Chinese

Graphic

\

Traditional Chinese

$

\

font

Attribute value

Description

"font_a"

Font A

"font_b"

Font B

"font_c"

Font C

"font_d"

Font D

"font_e"

Font E

"special_a"

Special font A

"special_b"

Special font B

smooth

Attribute value

Description

"true" / "1"

Enables smoothing.

"false" / "0"

Disables smoothing.

dw

Attribute value

Description

"true" / "1"

Enables double width size.

"false" / "0"

Disables double width size.

dh

Attribute value

Description

"true" / "1"

Enables double height size.

"false" / "0"

Disables double height size.

width

Attribute value

Description

"1" to "8"

Specifies the horizontal scaling factor rate.

height

Attribute value

Description

"1" to "8"

Specifies the vertical scaling factor rate.

reverse

Attribute value

Description

"true" / "1"

Inverts black and white

"false" / "0"

Cancels the black and white inversion

ul

Attribute value

Description

"true" / "1"

Enables the underscore style.

"false" / "0"

Disables the underscore style.

em

Attribute value

Description

"true" / "1"

Enables emphasized style.

"false" / "0"

Disables emphasized style.

color

Attribute value

Description

"none"

No printing

"color_1"

First color

"color_2"

Second color

"color_3"

Third color

"color_4"

Fourth color

x

Attribute value

Description

"0" to "65535"

Specifies the horizontal print start position in units of dots.

y

Attribute value

Description

"0" to "65535"

Specify the vertical print start position in units of dots.

align

Attribute value

Description

"left"

Left alignment

"center"

Center alignment

"right"

Right alignment

rotate

Attribute value

Description

"true" / "1"

Enables text rotation.

"false" / "0"

Disables text rotation.

linespc

Attribute value

Description

"0" to "255"

Specifies paper feed amount per line in units of dots.

Sample program

When printing a text string with the following settings

Item

Value

Language

Japanese

Smoothing

Enabled

Alignment

Center alignment

Font

Font B

Double size

Double height and width size

Underscore

Enabled

 
<epos-print xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print">
	<text lang="ja" />
	<text smooth="true" />
	<text align="center" />
	<text font="font_a" />
	<text dw="true" dh="true" />
	<text ul="true" />
	<text>Hello, World!&#10;</text>
</epos-print>

Example of language setting

  • Korean
  •  
    <epos-print xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print">
    	<text lang="ko" />
    </epos-print>
    
  • Simplified Chinese
  •  
    <epos-print xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print">
    	<text lang="zh-hans" />
    </epos-print>
    
  • Traditional Chinese
  •  
    <epos-print xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print">
    	<text lang="zh-hant" />
    </epos-print>
    

Supplementary explanation

  • To print data other than text after printing text, start a new line or feed paper.
  • In the page mode, text is printed from the current print position with the base line dot of the characters as the standard. For information on the base line dot, refer to Printer-specific Support Information.
  • For the character codes available for printing, refer to the Technical Reference Guide of the printer.
  • Shift JIS code characters can be printed when Japanese is specified as "font".
  • If "dw" and "width" are set in a single element, the "width" setting is applied.
  • If "dh" and "length" are set in a single element, the "height" setting is applied.
  • Use "y" in the page mode.
  • The "align" and "rotate" cannot be applied in the page mode.
  • To rotate text string in the page mode, use <direction>.
  • When setting "align" or "rotate", set it at the beginning of a line.
  • When setting "color" for TM-U220 and TM-U220II printers, set it at the beginning of a line.
  • The "align" setting specified in this element is also applied to <image>, <logo>, <barcode>, and <symbol>.
  • The "rotate" setting specified in this element is also applied to <barcode> and <symbol>.
  • When specifying the lang attribute, specify it at the beginning of the print request.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

ePOS-Print XML includes patented or patent pending functions. The contents must not be disclosed to third parties.


Jump to the top