48
addTextFont
Adds the text font setting to the command buffer.
Syntax
public void addTextFont(int font) throws EposException
Parameter
font : Specifies the font.
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Example
Set value Language
Builder.FONT_A (default) Font A
Builder.FONT_B Font B
Builder.FONT_C Font C
Error status Description
ERR_PARAM Invalid parameter was passed.
ERR_MEMORY Could not allocate memory.
ERR_FAILURE An unspecified error occurred.
To set the font B:
try {
Builder builder = new Builder("TM-T88V", Builder.MODEL_ANK);
builder.addTextFont(Builder.FONT_B);
///Process///
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}