2020-06-23 15:53:23 +08:00
|
|
|
|
/************************/
|
2020-06-23 15:27:59 +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;
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
extern int FontHankakuWidth;
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
/* ??????? fontPrio ? ****************************************/
|
2020-06-23 15:27:59 +08:00
|
|
|
|
enum{
|
2020-06-23 15:53:23 +08:00
|
|
|
|
FONT_PRIO_BACK, /* ??? */
|
|
|
|
|
FONT_PRIO_FRONT /* ? */
|
2020-06-23 15:27:59 +08:00
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
#ifdef _TRADETALKWND // (不可开) Syu ADD 交易新增对话框架
|
2020-06-23 15:27:59 +08:00
|
|
|
|
, FONT_PRIO_AFRONT
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef _CHANNEL_MODIFY
|
|
|
|
|
,FONT_PRIO_CHATBUFFER
|
|
|
|
|
#endif
|
|
|
|
|
};
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ??????????
|
2020-06-23 15:27:59 +08:00
|
|
|
|
typedef struct{
|
2020-06-23 15:53:23 +08:00
|
|
|
|
short x, y; // ?
|
|
|
|
|
char color; //
|
|
|
|
|
char str[ 256 ]; // ??
|
|
|
|
|
UCHAR fontPrio; // ????
|
|
|
|
|
BOOL hitFlag; // ????????? ??:? ???:?
|
2020-06-23 15:27:59 +08:00
|
|
|
|
#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 );
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
// ???????? ///////////////////////////////////////////////////////
|
2020-06-23 15:27:59 +08:00
|
|
|
|
void FontPrintDec( char *moji, int x, int y, int dispPrio );
|
|
|
|
|
|
2020-06-23 15:53:23 +08:00
|
|
|
|
/* ????????????? *********************************************/
|
2020-06-23 15:27:59 +08:00
|
|
|
|
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
|