Printtext - BIXOLON SRP-270 Reference Manual

Linux sdk guide for pos/mobile printer
Hide thumbs Also See for SRP-270:
Table of Contents

Advertisement

3-9 PrintText

Print texts.
int PrintText(const char* text, const int alignment, const unsigned int attribute,
const unsigned int textSize)
[Parameters]
* const char* text
[in] String with null as a terminator. Send the text data to print.
* const int alignment
[in] Set the text alignment.
Constant
ALIGNMENT_LEFT
ALIGNMENT_CENTER
ALIGNMENT_RIGHT
* const unsigned int attribute
[in] Set the text attributes. The following values can be applied in duplicate.
Constant
ATTR_FONTTYPE_A
ATTR_FONTTYPE_B
ATTR_FONTTYPE_C
ATTR_BOLD
ATTR_UNDERLINE_1
ATTR_UNDERLINE_2
ATTR_REVERSE
* const unsigned int textSize
[in] Set the text size. The width and height scale can be used in duplicate.
Constant
TS_WIDTH_0
TS_WIDTH_1
TS_WIDTH_2
TS_WIDTH_3
TS_WIDTH_4
TS_WIDTH_5
TS_WIDTH_6
TS_WIDTH_7
Rev. 1.00
Value
0
1
2
Value
0
Set to Font A. Print with the default device font.
1
2
4
8
16
32
Add the reverse text attribute.
Value
0x00
0x10
0x20
0x30
0x40
0x50
0x60
0x70
- 15 -
POS/Mobile Printer
Description
Align to the left
Align to the center
Align to the right
Description
Set to Font B
Set to Font C
Add Bold
Add 1-dot underline
Add 2-dot underline
Description
Set the width scale to x1.
Set the width scale to x2.
Set the width scale to x3.
Set the width scale to x4.
Set the width scale to x5.
Set the width scale to x6.
Set the width scale to x7.
Set the width scale to x8.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents