Select your printer model
<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 |
||
Language settings |
✔ |
✔ |
- |
- |
✔ |
|
Font settings |
✔ |
✔ |
✔ |
- |
✔ |
|
Smoothing settings |
✔ |
- |
- |
- |
- |
|
Double-width printing settings |
✔ |
✔ |
✔ |
- |
✔ |
|
Double-height printing settings |
✔ |
✔ |
✔ |
- |
✔ |
|
Horizontal scaling factor |
✔ |
✔ |
✔ |
- |
✔ |
|
Vertical scaling factor |
✔ |
✔ |
✔ |
- |
✔ |
|
Black-and-white characters reversing settings |
✔ |
- |
- |
- |
- |
|
Underscore style settings |
✔ |
✔ |
✔ |
- |
✔ |
|
Emphasis style settings |
✔ |
✔ |
✔ |
- |
✔ |
|
Color settings |
✔ |
- |
- |
- |
- |
|
Horizontal print start position settings |
✔ |
✔ |
✔ |
✔ |
✔ |
|
Vertical print start position settings |
✔ |
✔ |
- |
- |
- |
|
Alignment settings |
✔ |
✔ |
✔ |
- |
✔ |
|
Text rotation settings |
✔ |
✔ |
✔ |
✔ |
✔ |
|
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 $ |
Characters \ |
---|---|---|
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 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! </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]
- Introduction
- help
- Message
- CommunicationBox Messages
- Device Messages
- DeviceHubTerminal
- BarcodeScanner
- Printer
- <type>print</type>
- <type>onxmlresult</type>
- <epos-print>
- <response>
- <text>
- <feed>
- <image>
- <logo>
- <barcode>
- <symbol>
- <hline>
- <vline-begin>
- <vline-end>
- <page>
- <area>
- <direction>
- <position>
- <line>
- <rectangle>
- <cut>
- <pulse>
- <sound>
- <command>
- <layout>
- <recovery>
- <reset>
- <batch-begin>
- <batch-end>
- <rotate-begin>
- <rotate-end>
- HybridPrinter
- <type>lock</type>
- <type>unlock</type>
- <type>print</type>
- <type>onxmlresult</type>
- <type>slipwaitinsertion</type>
- <type>slipprint2</type>
- <type>slipcancel</type>
- <type>endorsewaitinsertion</type>
- <type>endorseprint2</type>
- <type>endorsecancel</type>
- <type>validationwaitinsertion</type>
- <type>validationprint2</type>
- <type>validationcancel</type>
- <type>micrread</type>
- <type>micrcleaning</type>
- <type>micrcancel</type>
- <type>eject</type>
- <type>onreceive</type>
- CustomerDisplay
- Keyboard
- POSKeyboard
- MSR
- SerialDevice
- Storage
- OtherPeripheral
- Appendix
- List of KeyCode
- Supported Printers by XMLs
- ePOS-Device XML Functions That Can Be Used
- List of Supported Elements
- Printer-specific Support Information
- 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
- TM-H6000V
- TM-H6000VI
- 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-T88VI
- TM-T88VII
- TM-L100
- TM-m10
- TM-P20
- TM-P60II (Receipt)
- TM-P60II (Peeler)
- TM-P80
- TM-T20
- TM-T20II
- TM-T70
- TM-T70II
- TM-T82II
- TM-T83II
- TM-T88IV
- TM-T88V
- TM-T90
- TM-L90
- TM-U220
- TM-U220II
- TM-H6000IV
- Usage restriction by firmware version