| 1 | |
|---|
| 2 | |
|---|
| 3 | #ifndef __UN_SUPPORT_H__ |
|---|
| 4 | #define __UN_SUPPORT_H__ |
|---|
| 5 | |
|---|
| 6 | #define SUPPORT_EDGE 0 |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | enum { |
|---|
| 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 | |
|---|
| 24 | enum { |
|---|
| 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 Á¤ÀÇÇÒ °Í */ |
|---|
| 50 | typedef 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 | |
|---|
| 59 | typedef 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 | |
|---|
| 76 | typedef 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 | |
|---|
| 87 | void BMF_InitFontManager(void *fn_m, void *fn_f, int a, int b, int c, int d); |
|---|
| 88 | void BMF_InitFontContext(BMF_FC *fc, int a, int b); |
|---|
| 89 | |
|---|
| 90 | void BMF_SetFont(BMF_FC *fc, int style); |
|---|
| 91 | void BMF_SetSize(BMF_FC *fc, int width, int height); |
|---|
| 92 | void BMF_SetItalic(BMF_FC *fc, BOOL bSet); |
|---|
| 93 | void BMF_SetBold(BMF_FC *fc, BOOL bSet); |
|---|
| 94 | void BMF_SetEdgeType(BMF_FC *fc, int type); |
|---|
| 95 | void BMF_SetRasterType(BMF_FC *fc, int raster); |
|---|
| 96 | void BMF_TermFontManager(); |
|---|
| 97 | void BMF_AddFont(UINT8 *pdta); |
|---|
| 98 | |
|---|
| 99 | BMF_BOOL BMF_GetCharImage(BMF_FC *fc, BMF_CODE code, BMF_IMAGE *image); |
|---|
| 100 | |
|---|
| 101 | |
|---|
| 102 | typedef 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 | |
|---|
| 116 | int BMF_PrintCh(tDHL_PlaneID id, int x, int y, UINT16 ch, UINT32 c_font); |
|---|
| 117 | int BMF_GetChWidth(UINT16 ch); |
|---|
| 118 | int BMF_GetChHeight(UINT16 ch); |
|---|
| 119 | void BMF_GetFontAttr(BMF_FontAttr *pfont_attr); |
|---|
| 120 | void BMF_SetFontAttr(BMF_FontAttr *pfont_attr); |
|---|
| 121 | void BMF_FontInit(BMF_FontAttr *pfont_attr); |
|---|
| 122 | |
|---|
| 123 | #endif |
|---|