73
Chapter 4 ePOS-Print API
4
addTextFont method
Adds the text font setting to the command buffer.
Syntax
addTextFont(font);
Parameter
font:(Requiredparameter,Objecttype:String)
Specifiesthefont.
Return value
Exception
Example
Constant (font) Language
FONT_A (default) Font A
FONT_B Font B
FONT_C Font C
Return value Object type
ePOS-Print Builder Object ePOS Builder
Exception Object type
Parameter " ... " is invalid Error
<script type="text/javascript" src="epos-print-3.x.x.js"></script>
<script type="text/javascript">
<!--
function buildMessage() {
var builder = new epson.ePOSBuilder();
builder.addTextFont(builder.FONT_B);
}
//-->
</script>
To set the font B: