Select your printer model
<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 |
\ |
|
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! </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]
- Introduction
- help
- XML for Controlling Printer
- XML for Controlling Customer Display
- Appendix
- XML Supported Printers
- Supported Elements List
- Printer-specific Support Information
- TM-m10
- TM-m30
- TM-m30II
- TM-m30II-H
- TM-m30II-NT
- TM-m30II-S
- TM-m30II-SL
- TM-m30III
- TM-m30III-H
- TM-m50
- TM-m50II
- TM-m50II-H
- TM-P20
- TM-P20II
- TM-P60II (Receipt)
- TM-P60II (Peeler)
- TM-P80
- TM-P80II
- TM-T20III
- TM-T82III
- TM-T88VI
- TM-T88VII
- TM-L100
- TM-U220II
- TM-H6000V
- TM-H6000VI
- TM-L90
- TM-L90 4xx
- TM-T20
- TM-T20II
- TM-T70
- TM-T70II
- TM-T82II
- TM-T83II
- TM-T88IV
- TM-T88V
- TM-T90
- TM-U220
- TM-U330
- TM-H6000IV
- TM-L90-i
- TM-T20II-i
- TM-T70-i
- TM-T82II-i
- TM-T83II-i
- TM-T88V-i
- TM-T88VI-iHUB
- TM-U220-i
- TM-U220IIB-i
- TM-T70II-DT
- TM-T70II-DT2
- TM-T88V-DT
- TM-T88VI-DT2
- TM-H6000IV-DT
- Usage Restrictions by Firmware Version
- ePOS-Print Settings