Select your printer model

Parameters are refined by the selected printer.

addTextStyle method


Adds character style setting to the command buffer.

Syntax

 
addTextStyle(reverse, ul, em, color);

Parameter

reverse

Value

Description

true

Enables the reverse style.

false (default)

Disables the reverse style.

undefined

Not specify.

ul

Value

Description

true

Enables the underscore style.

false (default)

Disables the underscore style.

undefined

Not specify.

em

Value

Description

true

Enables the bold style.

false (default)

Disables the bold style.

undefined

Not specify.

color

Value

Description

COLOR_NONE

No printing

COLOR_1 (default)

First color

COLOR_2

Second color

COLOR_3

Third color

COLOR_4

Fourth color

undefined

Not specify.

Return value

Return value

Object type

Printer object

Printer

HybridPrinter2 object

HybridPrinter2

Exception

Exception

Object type

Parameter " ... " is invalid

Error

 

Quick Access

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

Epson ePOS SDK includes patented or patent pending functions. The contents must not be disclosed to third parties.


Epson ePOS SDK for JavaScript

Jump to the top