stoneage8.5/石器时代8.5客户端最新源代码/石器源码/systeminc/font.h

70 lines
1.8 KiB
C
Raw Normal View History

2020-06-22 17:49:02 +08:00
/************************/
/* font.h */
/************************/
#ifndef _FONT_H_
#define _FONT_H_
#define FONT_SIZE 14
#ifdef _NEWFONT_
#define FONT_SIZE1 19
#else
#define FONT_SIZE1 14
#define FONT_SIZE2 19
#endif
extern int FontZenkauWidth;
// <20>S?<3F><>??????????
extern int FontHankakuWidth;
/* ????<3F><><EFBFBD><EFBFBD>?<3F>I?? fontPrio ?<3F>k ****************************************/
enum{
FONT_PRIO_BACK, /* ???<3F><><EFBFBD><EFBFBD> */
FONT_PRIO_FRONT /* <20>q?<3F><><EFBFBD><EFBFBD> */
#ifdef _TRADETALKWND // (<28><><EFBFBD>ɿ<EFBFBD>) Syu ADD <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD>
, FONT_PRIO_AFRONT
#endif
#ifdef _CHANNEL_MODIFY
,FONT_PRIO_CHATBUFFER
#endif
};
// ??????????<3F>B<EFBFBD>l
typedef struct{
short x, y; // <20><><EFBFBD><EFBFBD>?<3F><>
char color; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
char str[ 256 ]; // <20><>??
UCHAR fontPrio; // <20><><EFBFBD><EFBFBD>??<3F>I??
BOOL hitFlag; // ???<3F>R<EFBFBD>e?????? ??<3F><>? ???<3F><>?
#ifdef _FONT_SIZE
int size;
#endif
}FONT_BUFFER;
// ?????????
extern FONT_BUFFER FontBuffer[];
// ?????????
extern int FontCnt;
void FontPrint( char *moji, int x, int y, int dispPrio );
// ??????<3F><><EFBFBD><EFBFBD>?? ///////////////////////////////////////////////////////
void FontPrintDec( char *moji, int x, int y, int dispPrio );
/* ????<3F>ѩ<EFBFBD>????????? *********************************************/
int StockFontBuffer( int x, int y, char fontPrio, int color, char *str, BOOL hitFlag );
#ifdef _MO_CHAT_EXPRESSION
void NewStockFontBuffer(CHAT_BUFFER *chatbuffer,int x, unsigned char color,char *str, int size);
void delFontBuffer(CHAT_BUFFER *chatbuffer);
#endif
void CreatFontHdc();
#ifdef _FONT_SIZE
int StockFontBufferExt( int x, int y, char fontPrio, int color, char *str, BOOL hitFlag, int size );
HFONT CreateNewFont( int size);
#endif
void StockFontBuffer2(STR_BUFFER *strBuffer );
/* ONLINEGM ADD */
int StockFontBuffer3( STR_BUFFER *strBuffer );
void StockFontBufferFamily( STR_BUFFER *strBuffer );
#endif