#ifndef _WINSAIL_FONT_H_
#define _WINSAIL_FONT_H_

#define FONT_STYLE_UNKNOW  0
#define FONT_STYLE_GB2312  1
#define FONT_STYLE_GBK     2
#define FONT_STYLE_GB18030 3
#define FONT_STYLE_UTF8    4
#define FONT_STYLE_UTF16   5
#define FONT_STYLE_UTF32   6
#define FONT_STYLE_UNICODE 7

//定义字库文件的结构
typedef struct tagFONTHEAD
{
	BYTE  byFlags[4]; //字库标志'FONT'
	DWORD dwPhyFontPoint;//PHYSICALFONT结构索引

	WORD  wReserve;//保留
	WORD  wCheckSum;//累加校验和
}FONTHEAD, *LPFONTHEAD;

#define WINSAIL_FACESIZE 32

//定义字库的结构
typedef struct tagPHYFONT 
{  WORD  wStyle;
   WORD  wReserve;

   DWORD dwEnglishPoint;//字库英文内容索引
   DWORD dwChinesePoint;//字库中文内容索引
   DWORD dwEnglishExPoint;//字库8*8英文内容索引

   LONG gHeightE; //英方字的的高度
   LONG gWidthE; //英文字的的宽度   
   //--------------------------------------
   LONG gHeight; //汉字的的高度
   LONG gWidth; //汉字的的宽度
   //NG gEscapement; 
   //NG gOrientation; 
   //NG gWeight; 
   //TE byItalic; 
   //TE byUnderline; 
   //TE byStrikeOut; 
   //TE byCharSet; 
   //TE byOutPrecision; 
   //TE byClipPrecision; 
   //TE byQuality; 
   //TE byPitchAndFamily; 
   char strFaceName[WINSAIL_FACESIZE]; 


   

}PHYFONT, *LPPHYFONT; 



#endif

