#ifndef __UN_SUPPORT_H__ #define __UN_SUPPORT_H__ #define SUPPORT_EDGE 0 enum { BMF_STYLE0=0, BMF_STYLE1, BMF_STYLE2, BMF_STYLE3, BMF_STYLE4, BMF_STYLE5, BMF_STYLE6, }; /* font style */ #if SUPPORT_EDGE enum { BMF_EDGE_NONE, BMF_EDGE_RAISED, BMF_EDGE_DEPRESSED, BMF_EDGE_UNIFORM, BMF_EDGE_LEFTDROPSHADOW, BMF_EDGE_RIGHTDROPSHADOW, }; #endif #define BMF_IMAGE_TYPE_BITMAP_65_SHADOW_COLOR 65 #define BMF_IMAGE_TYPE_BITMAP_65 2 #define BMF_IMAGE_TYPE_NULL_GLYPH 0 #define BMF_IMAGE_TYPE_NULL 1 #define BMF_RASTER_TYPE_GRAY_2 3 #define BMF_RASTER_TYPE_BITMAP_65 0 #define BMF_BOOL BOOL #define BMF_CODE UINT16 #define JFE_0511_AFTER_USED 1 /* UT_IMAGe Á¤ÀÇÇÒ °Í */ typedef struct { INT16 ox; /* x offset to the left of BitmapData */ INT16 oy; /* y offset to the bottom(lower) of BitmapData */ UINT16 sx; /* total width of BitmapData */ UINT16 sy; /* total height of BitmapData */ } BMF_BBOX; typedef struct { unsigned char* data;/* BitmapData */ BMF_BBOX bbox; /* BoundingBox */ int width; /* Advance width for next glyph in horizontal writing */ int height; /* Advance height for next glyph in vertical writing */ int bSize; /* The number of bytes per a row of BitmapData */ int lSize; /* The total number of bytes of BitmapData */ int type; /* ImageTypes(BitmapData types): as followings */ int xAdvance; int yAdvance; } BMF_IMAGE; /* UT_IMAGEÀÇ ÁÂÇ¥´Â ¿ÞÂÊ ¾Æ·¡°¡ ±âÁØÀÓ */ typedef struct { int font_style; int xSize; int ySize; int bItalic; int bBold; int rDegree; //»ç¿ë¾ÈÇÔ int edgeType; } BMF_FC; void BMF_InitFontManager(void *fn_m, void *fn_f, int a, int b, int c, int d); void BMF_InitFontContext(BMF_FC *fc, int a, int b); void BMF_SetFont(BMF_FC *fc, int style); void BMF_SetSize(BMF_FC *fc, int width, int height); void BMF_SetItalic(BMF_FC *fc, BOOL bSet); void BMF_SetBold(BMF_FC *fc, BOOL bSet); void BMF_SetEdgeType(BMF_FC *fc, int type); void BMF_SetRasterType(BMF_FC *fc, int raster); void BMF_TermFontManager(); void BMF_AddFont(UINT8 *pdta); BMF_BOOL BMF_GetCharImage(BMF_FC *fc, BMF_CODE code, BMF_IMAGE *image); typedef struct { UINT8 size; BOOL is_bold; BOOL is_italic; BOOL is_underline; BOOL is_unicode; int font_style; int edge_type; UINT8 c_edge; } BMF_FontAttr; int BMF_PrintCh(tDHL_PlaneID id, int x, int y, UINT16 ch, UINT32 c_font); int BMF_GetChWidth(UINT16 ch); int BMF_GetChHeight(UINT16 ch); void BMF_GetFontAttr(BMF_FontAttr *pfont_attr); void BMF_SetFontAttr(BMF_FontAttr *pfont_attr); void BMF_FontInit(BMF_FontAttr *pfont_attr); #endif