63
Chapter 4 API Reference
4
font : Specifies the HRI font.
width : Specifies the width of each module in dots. Specifies an integer from 2 to 6.
height : Specifies the barcode height in dots. Specifies an integer from 1 to 255.
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Set value Description
Builder.FONT_A(default) Font A
Builder.FONT_B Font B
Builder.FONT_C Font C
Builder.PARAM_UNSPECIFIED Retains the current setting.
Set value
説明
Integer from 1 to 6 The width of each module. (Unit:dot)
Builder.PARAM_UNSPECIFIED Retains the current setting.
Set value
説明
Integer from 1 to 255 The barcode height. (Unit:dot)
Builder.PARAM_UNSPECIFIED Retains the current setting.
Error status Description
ERR_PARAM Invalid parameter was passed.
ERR_MEMORY Could not allocate memory.
ERR_FAILURE An unspecified error occurred.