source: svn/newcon3bcm2_21bu/dst/dmw/src/grp/BMF.h @ 45

Last change on this file since 45 was 45, checked in by megakiss, 11 years ago
  • Property svn:executable set to *
File size: 2.7 KB
Line 
1
2
3#ifndef __UN_SUPPORT_H__
4#define __UN_SUPPORT_H__
5
6#define SUPPORT_EDGE 0
7
8
9
10enum {
11        BMF_STYLE0=0,
12        BMF_STYLE1,
13        BMF_STYLE2,
14        BMF_STYLE3,
15        BMF_STYLE4,
16        BMF_STYLE5,
17        BMF_STYLE6,
18}; /* font style */
19
20
21
22#if SUPPORT_EDGE
23
24enum {
25        BMF_EDGE_NONE,
26        BMF_EDGE_RAISED,
27        BMF_EDGE_DEPRESSED,
28        BMF_EDGE_UNIFORM,
29        BMF_EDGE_LEFTDROPSHADOW,
30        BMF_EDGE_RIGHTDROPSHADOW,
31};
32
33#endif
34
35#define BMF_IMAGE_TYPE_BITMAP_65_SHADOW_COLOR 65
36#define BMF_IMAGE_TYPE_BITMAP_65 2
37#define BMF_IMAGE_TYPE_NULL_GLYPH 0
38#define BMF_IMAGE_TYPE_NULL 1
39
40#define BMF_RASTER_TYPE_GRAY_2 3
41#define BMF_RASTER_TYPE_BITMAP_65 0
42
43#define BMF_BOOL BOOL
44
45#define BMF_CODE UINT16
46
47#define JFE_0511_AFTER_USED 1
48
49/* UT_IMAGe Á¤ÀÇÇÒ °Í */
50typedef struct
51{
52        INT16      ox; /* x offset to the left of BitmapData */
53        INT16      oy; /* y offset to the bottom(lower) of BitmapData */
54        UINT16      sx; /* total width of BitmapData */
55        UINT16      sy; /* total height of BitmapData */
56} BMF_BBOX;
57
58
59typedef struct
60{
61        unsigned char* data;/* BitmapData */
62        BMF_BBOX     bbox;      /* BoundingBox */
63        int         width;      /* Advance width for next glyph in horizontal writing */
64        int         height;     /* Advance height for next glyph in vertical writing */
65        int         bSize;  /* The number of bytes per a row of BitmapData */
66        int         lSize;      /* The total number of bytes of BitmapData */
67        int         type;       /* ImageTypes(BitmapData types): as followings */
68        int         xAdvance;
69        int         yAdvance;
70} BMF_IMAGE;
71       
72        /* UT_IMAGEÀÇ ÁÂÇ¥´Â ¿ÞÂÊ ¾Æ·¡°¡ ±âÁØÀÓ */
73       
74
75
76typedef struct {
77        int font_style;
78        int xSize;
79        int ySize;
80        int bItalic;
81        int bBold;
82        int rDegree; //»ç¿ë¾ÈÇÔ
83        int edgeType;
84} BMF_FC;
85
86
87void BMF_InitFontManager(void *fn_m, void *fn_f, int a, int b, int c, int d);
88void BMF_InitFontContext(BMF_FC *fc, int a, int b);
89
90void BMF_SetFont(BMF_FC *fc, int style);
91void BMF_SetSize(BMF_FC *fc, int width, int height);
92void BMF_SetItalic(BMF_FC *fc, BOOL bSet);
93void BMF_SetBold(BMF_FC *fc, BOOL bSet);
94void BMF_SetEdgeType(BMF_FC *fc, int type);
95void BMF_SetRasterType(BMF_FC *fc, int raster);
96void BMF_TermFontManager();
97void BMF_AddFont(UINT8 *pdta);
98
99BMF_BOOL BMF_GetCharImage(BMF_FC *fc, BMF_CODE code, BMF_IMAGE *image);
100
101
102typedef struct {
103        UINT8 size;
104        BOOL is_bold;
105        BOOL is_italic;
106        BOOL is_underline;
107        BOOL is_unicode;
108        int font_style;
109        int edge_type;
110        UINT8 c_edge;
111} BMF_FontAttr;
112
113
114
115
116int BMF_PrintCh(tDHL_PlaneID id, int x, int y, UINT16 ch, UINT32 c_font);
117int BMF_GetChWidth(UINT16 ch);
118int BMF_GetChHeight(UINT16 ch);
119void BMF_GetFontAttr(BMF_FontAttr *pfont_attr);
120void BMF_SetFontAttr(BMF_FontAttr *pfont_attr);
121void BMF_FontInit(BMF_FontAttr *pfont_attr);
122
123#endif
Note: See TracBrowser for help on using the repository browser.