Select your printer model

Parameters are refined by the selected printer.

addTextLang


Adds language setting to the command buffer.

A text string specified by the addText API is encoded according to the language specified by this API.

Syntax

 
- (int) addTextLang:(int)lang;

Parameter

lang

Specifies the target language.

Value

Description

EPOS2_LANG_EN (default)

English (ANK specification)

EPOS2_LANG_JA

Japanese

EPOS2_LANG_ZH_CN

Simplified Chinese

EPOS2_LANG_ZH_TW

Traditional Chinese

EPOS2_LANG_KO

Korean

EPOS2_LANG_TH

Thai (South Asian specification)

EPOS2_LANG_VI

Vietnamese (South Asian specification)

EPOS2_LANG_MULTI

Multiple languages (UTF-8)

EPOS2_PARAM_DEFAULT

Specifies the default value (English).

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

  • This API is called before the addText API.
  • Use this API at the top of each print job.
  • Available languages differ depending on character specifications of the printer. For details, see Technical Reference Guide of the printer.
 

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