Epson TM-T70-i ePOS-Print API Users Manual For TM-i firmware 4.1 - Page 74
addTextFont method, addTextFont
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 74 highlights
addTextFont method Adds the text font setting to the command buffer. Syntax addTextFont(font); Parameter font : ( Required parameter, Object type : String) Specifies the font. Constant (font) FONT_A (default) FONT_B FONT_C FONT_D * FONT_E * Font A Font B Font C Font D Font E Language Return value * ePOS-Print Service Ver.3.2 or later versions supported Return value ePOS-Print Builder Object Object type ePOS Builder Exception Parameter " ... " is invalid Exception Object type Error Example To set the font B: 74
74
addTextFont method
Adds the text font setting to the command buffer.
Syntax
addTextFont
(font);
Parameter
font :
( Required parameter, Object type : String)
Specifies the font.
*
ePOS-Print Service Ver.3.2 or later versions supported
Return value
Exception
Example
Constant
(font)
Language
FONT_A (default)
Font A
FONT_B
Font B
FONT_C
Font C
FONT_D *
Font D
FONT_E *
Font E
Return value
Object type
ePOS-Print Builder Object
ePOS Builder
Exception
Object type
Parameter " ... " is invalid
Error
<script type="text/javascript" src="epos-print-4.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: