50
addTextDouble
Adds the double-sized text setting to the command buffer.
Syntax
public void addTextDouble(int dw, int dh)
throws EposException
Parameter
dw : Specifies the double-sized width.
dh : Specifies the double-sized height.
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Example
Set value Description
Builder.TRUE Specifies the double-sized width.
Builder.FALSE (default) Cancels the double-sized width
Builder.PARAM_UNSPECIFIE
D
Retains the current setting.
Set value Description
Builder.TRUE Specifies the double-sized height
Builder.FALSE (default) Cancels the double-sized height
Builder.PARAM_UNSPECIFIE
D
Retains the current setting.
When Builder.true or 1 is set for both the dw and dh parameters, double width and height
characters are printed.
Error status Description
ERR_PARAM Invalid parameter was passed.
ERR_MEMORY Could not allocate memory.
ERR_FAILURE An unspecified error occurred.
To set the size as double width and height:
try {
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
builder.addTextDouble(Builder.TRUE, Builder.TRUE);
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}