专家解答:
A_Prn_Text()
===============================================================================
PURPOSE Create a "text" object.
SYNTAX int A_Prn_Text(int x, int y, int ori, int font, int type, int hor_factor,
int ver_factor, char mode, int numeric, LPCTSTR data);
PARAMETER int x; X coordinate.
int y; Y coordinate.
int ori; Orientation or print direction.
Value: 1,2,3,4
int font; Font type as follows:
Note:Refer to the font tables in User's
Manual.
int type; As follows:
+--------------+-----+---------------------------+
|font |type |Font Type |
+--------------+-----+---------------------------+
|0,1,2,3,4,5,6,|0 |font 0~font 8 respectively.|
|7,8 | | |
+--------------+-----+---------------------------+
|9 |0~7 |ASD smooth fonts. |
| | |0:4points, 1:6points, |
| | |2:8points, 3:10points, |
| | |4:12points, 5:14points, |
| | |6:18points. |
+--------------+-----+---------------------------+
|11 |0~7 |Courier fonts,(0 represents|
| | |symbol set) |
| | |0:Roman-8, 1:ECMA-94, |
| | |2:PC set, 3:PC set A, |
| | |4:PC set B, 5:Legal, |
| | |6:Greek, 7:Russian. |
+--------------+-----+---------------------------+
|12 |0 |Font selection form font |
| | |board. |
+--------------+-----+---------------------------+
int hor_factor; Horizontal scale factor. Value:1 ~ 24
int ver_factor; Vertical scale factor. Value:1 ~ 24
char mode; Add function as follows:
+----+-------------------------------------+
|mode| REMARK |
+----+-------------------------------------+
| A |Make auto increment for numeric. |
+----+-------------------------------------+
| B |Make auto increment for alphanumeric.|
+----+-------------------------------------+
| C |Make auto decrement for numeric. |
+----+-------------------------------------+
| D |Make auto decrement for alphanumeric.|
+----+-------------------------------------+
| M |Toggle the mirror mode. |
+----+-------------------------------------+
| N |Disable. |
+----+-------------------------------------+
int numeric; Automaticall increment or decrement the
filed value. Value:0 ~ 99.
LPCTSTR data; Data string.
|
|