Select your printer model

Parameters are refined by the selected printer.

<text>


Specifies text to print, text decoration, print position, line feed quantity, and other print properties.

List of properties available for each print method

Attribute

Description

Print method

Receipt

Slip

Endorsement

Endorsement (40cpl)

Validation

lang

Language settings

-

-

font

Font settings

-

smooth

Smoothing settings

-

-

-

-

dw

Double-width printing settings

-

dh

Double-height printing settings

-

width

Horizontal scaling factor

-

height

Vertical scaling factor

-

reverse

Black-and-white characters reversing settings

-

-

-

-

ul

Underscore style settings

-

em

Emphasis style settings

-

color

Color settings

-

-

-

-

x

Horizontal print start position settings

y

Vertical print start position settings

-

-

-

align

Alignment settings

-

rotate

Text rotation settings

linespc

Page feed amount settings

-

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”

“th”

Thai (South Asian model only)

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

“false” / “0”

Disables double-width printing.

dh

Attribute value

Description

"true" / "1”

Enables double-height printing.

“false” / “0”

Disables double-height printing.

width

Attribute value

Description

“1” to “8”

Specifies the horizontal scaling factor.

height

Attribute value

Description

“1” to “8”

Specifies the vertical scaling factor.

reverse

Attribute value

Description

"true" / "1”

Enables the black-and-white reverse style.

“false” / “0”

Disables the black-and-white reverse style.

ul

Attribute value

Description

"true" / "1”

Enables the underscore style.

“false” / “0”

Disables the underscore style.

em

Attribute value

Description

"true" / "1”

Enables text emphasis settings.

“false” / “0”

Disables text emphasis settings.

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

y

Attribute value

Description

“0” to “65535”

Specify the horizontal print start position in dots.

align

Attribute value

Description

“left”

Sets the print start position left-aligned.

“center”

Sets the print start position center-aligned.

“right”

Sets the print start position right-aligned.

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

Sample program

Prints text with the following setting:

Item

Value

Language

Japanese

Smoothing

Enabled

Alignment

Center alignment

Font

Font B

Double-width

Quadrupling

Underscore

Enabled

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

Supplementary explanation

  • To print data other than text after printing text, feed a line or page.
  • 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.
  • Fonts not installed on the printer cannot be printed.
  • For the character codes and international character set available for printing, refer to the Technical Reference Guide of the printer.
  • For information on available fonts, refer to the Technical Reference Guide of the printer.
  • If both of the dw attribute and width attribute are specified in a single element, the scaling factor specified with the width attribute is used.
  • If both of the dh attribute and height attribute are specified in a single element, the scaling factor specified with the height attribute is used.
  • Colors assigned to the first to fourth colors depend on the printer model.
  • In the page mode, the “x” attribute works in the same way as <position> to specify the horizontal print position.
  • The “y” attribute does not work in the standard mode.
  • The “align” and “rotate” attributes do not work in the page mode.
  • Specify the align attribute at the "beginning of the line.”
  • The align attribute setting in the <text> element also applies to the align attribute in the <image>, <logo>, <barcode>, and <symbol> elements.
  • The rotate attribute setting in the <text> element also applies to the rotate attribute in the <barcode> and <symbol> elements.
  • Use <direction> to enable text rotation in the page mode.
  • For slip, endorsement, or validation printing, an integer from 1 to 2 can be set for the width and height.
  • When specifying the lang attribute, specify it at the beginning of the print request.
 

Quick Access

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

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


ePOS-Device XML

Jump to the top