Select your printer model

Parameters are refined by the selected printer.

addTextSize


Adds character scaling factor setting to the command buffer.

Syntax

 
public void addTextSize(int width, int height) throws Epos2Exception

Parameter

width

Specifies the horizontal scaling of characters.

Value

Description

Integer from 1 to 8

Specifies the horizontal scaling factor rate (default: 1).

Printer.PARAM_DEFAULT

Specifies the default value (1).

Printer.PARAM_UNSPECIFIED

<Obsolete> Not specify.

height

Specifies the vertical scaling of characters.

Value

Description

Integer from 1 to 8

Specifies the vertical scaling factor rate (default: 1).

Printer.PARAM_DEFAULT

Specifies the default value (1).

Printer.PARAM_UNSPECIFIED

<Obsolete> Not specify.

Exception

When the process fails, Epos2Exception with one of the following error status occurs.

Error status

Description

ERR_PARAM

An invalid parameter was passed.

ERR_MEMORY

Memory necessary for processing could not be allocated.

ERR_FAILURE

An unknown error occurred.

Supplementary explanation

  • If all the parameters are set to "Printer.PARAM_UNSPECIFIED," ERR_PARAM will be returned.
  • For slip, endorsement, or validation printing, an integer from 1 to 2 can be set for the width and height.
 

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 Android

Jump to the top