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.
Error status
ERR_PARAM
ERR_MEMORY
ERR_FAILURE
Example
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();
}
48
Set value
Builder.FONT_A (default)
Builder.FONT_B
Builder.FONT_C
Invalid parameter was passed.
Could not allocate memory.
An unspecified error occurred.
Language
Font A
Font B
Font C
Description