Drawtextlocalfont Method - Citizen CL-S700 Programming Manual

Android label print sdk
Hide thumbs Also See for CL-S700:
Table of Contents

Advertisement

2.3.4 drawTextLocalFont method

Syntax
1) int drawTextLocalFont (String data, Typeface fontType, int rotation, int hRatio, int vRatio,
2) int drawTextLocalFont (String data, Typeface fontType, int rotation, int hRatio, int vRatio,
3) int drawTextLocalFont (String data, Typeface fontType, int rotation, int hRatio, int vRatio,
Parameters
Parameter
data
fontType
rotation
hRatio
vRatio
point
style
x
y
resolution
measurementUnit [IN]
Description
Draws characters by using a font installed in the computer, with specifying options such as rotation,
magnification, size and coordinates. What this method does internally is to generate a graphic image
based on the given parameters, to store the graphic image into the printer and to print the stored
graphic image. This doesn't check the file availability or validity. To print with the specified font
size, specify the resolution as same as the actual printer. When specifying image rotation, it is
necessary to specify the resolution and unit selection settings according to the printer for reference
position correction.
Return value
Returns CLS_SUCCESS(0) on success, an error code otherwise. See
codes.
int point, int style, int x, int y)
int point, int style, int x, int y, int resolution)
int point, int style, int x, int y, int resolution, int measurementUnit)
[IN/OUT] Description
[IN]
String data
[IN]
Font type
[IN]
Direction of rotation
[IN]
Horizontal ratio [%]
[IN]
Vertical ratio [%]
[IN]
Font size
[IN]
Font style
[IN]
X-coordinate
[IN]
Y-coordinate
[IN]
Resolution [dpi]
Printer Metric / Inch
setting
CITIZEN Android Label Print SDK — Programming Manual
Setting range
Font type
CLS_RT_NORMAL: No rotation
CLS_RT_RIGHT90: Rotate CW 90
CLS_RT_ROTATE180: Rotate CW 180
CLS_RT_LEFT90: Rotate CCW 90
1 - 1000
1 - 1000
CLS_FNT_DEFAULT: None
CLS_FNT_BOLD: Bold
CLS_FNT_REVERSE: Reverse
CLS_FNT_UNDERLINE: Underline
CLS_FNT_ITALIC: Italic
CLS_FNT_STRIKEOUT: Strikethrough
* Use "|" to specify multiple options.
0000 – 9999
* The origin is at bottom-left.(0, 0)
CLS_PRT_RES_203(203dpi)
CLS_PRT_RES_300(300dpi)
* 203 dpi by default.
CLS_UNIT_MILLI
CLS_UNIT_INCH
* CLS_UNIT_INCH by default.
61
"2.1 Return
value" for the error

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents