1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#ifndef __GPFONT_H__
#define __GPFONT_H__
#include "gpdef.h"
#include "gpgraphic.h"
typedef struct tagBGFONTINFO{
int kor_w;
int kor_h;
int eng_w;
int eng_h;
int chargap;
int linegap;
}BGFONTINFO;
void GpFontInit (BGFONTINFO * ptr);
void GpFontResSet (unsigned char * p_kor, unsigned char * p_eng);
unsigned char * GpKorFontResGet(void);
unsigned char * GpEngFontResGet(void);
void GpSysFontGet (BGFONTINFO *fInfo);
int GpTextWidthGet (const char * lpsz);
int GpTextHeightGet (const char * lpsz);
int GpTextLenGet (const char * str);
void GpTextOut (GPDRAWTAG * gptag, GPDRAWSURFACE * ptgpds, int x, int y,
char * source, unsigned char color);
void GpCharOut (GPDRAWTAG * gptag, GPDRAWSURFACE * ptgpds, int x, int y,
char * source, unsigned char color);
void GpTextNOut (GPDRAWTAG * gptag, GPDRAWSURFACE * ptgpds, int x, int y,
char * source, int nStart, int nString, unsigned char color);
#define GPC_GT_BOTTOM 0x2
#define GPC_GT_HCENTER 0x8
#define GPC_GT_LEFT 0x10
#define GPC_GT_RIGHT 0x20
#define GPC_GT_TOP 0x40
#define GPC_GT_WORDBREAK 0x80
#define GPC_GT_VCENTER 0x100
void GpTextDraw (GPDRAWSURFACE * ptgpds, GPRECT * cRect, unsigned int uFormat,
char * source, int nStart, int nCount, unsigned char color);
typedef struct tagEXT_FONT{
int fx_flag;
unsigned char * lpsz;
unsigned char * pBmFont;
int ex_font_w;
int ex_font_h;
int ex_chargap;
int ex_linegap;
int color1;
int color2;
} EXT_FONT;
int GpCustTextOut (GPDRAWTAG * gptag, GPDRAWSURFACE * ptgpds, int x, int y, EXT_FONT * y_font);
void GpHAutomatonInit (void);
int GpHAutomatonInput (const char * p_input, char ** p_working);
int GpHAutomatonDelete (char ** p_working);
char * GpHAutomatonBuffered (void);
#endif
|