Select your printer model

Parameters are refined by the selected printer.

addTextSize


Adds character scaling factor setting to the command buffer.

Syntax

 
- (int) addTextSize:(long)width height:(long)height;

Parameter

width

Specifies the horizontal scaling of characters.

Value

Description

Integer from 1 to 8

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

EPOS2_PARAM_DEFAULT

Specifies the default value (1).

EPOS2_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).

EPOS2_PARAM_DEFAULT

Specifies the default value (1).

EPOS2_PARAM_UNSPECIFIED

<Obsolete> Not specify.

Return value

Error status

Description

EPOS2_SUCCESS

The function was executed successfully.

EPOS2_ERR_PARAM

An invalid parameter was passed.

EPOS2_ERR_MEMORY

Memory necessary for processing could not be allocated.

EPOS2_ERR_FAILURE

An unknown error occurred.

Supplementary explanation

  • If all the parameters are set to "EPOS2_PARAM_UNSPECIFIED," EPOS2_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 iOS

Jump to the top