?? fontproc.h
字號:
/******************************************************************************************
* 文件名稱:fontproc.h
* 功 能:字庫處理模塊,用于生成字符串位圖并可截取位圖指定部分用于顯示。
* 版權所有 (C)2007
* 當前版本:V1.0
* 作 者:jing.sw
* 修改記錄:修改日期、 修改內容、版本號、修改者
* 2005-6-9 第一次創建 V1.0 by jing.sw
*******************************************************************************************/
#ifndef _FONTPROCESS_H_
#define _FONTPROCESS_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define HZK24 0x001
#define HZK16 0x002
#define HZK12 0x003
#define FONT_BIT_SIZE24 24
#define FONT_BIT_SIZE16 16
#define BOOL char
#define TRUE 1
#define FALSE -1
typedef struct _FILLAREA_T_
{
int x;
int y;
int width;
int height;
} FILLAREABis_t;
typedef struct {
unsigned short *bits;
unsigned short *offset; /* offsets into bitmap data */
unsigned char *width; /* character widths or 0 if fixed */
} CHARFONTBis_t;
FILE *FontInit(char *fontName);
int GetFontMat(FILE *hzkfd, unsigned char *HZ, int nLen, int fontType, unsigned char *pPixelBuf, int nBmpWidth, int nBmpHeight, int nOffsetX, int nOffsetY, unsigned char nPaletteVal, BOOL nEraseLastInfoFlag);
int FillBackGround(unsigned char *pPixelBuf, int nBmpWidth, int nBmpHeight, FILLAREABis_t FillPos, unsigned char nPaletteVal, BOOL nEraseForeFlag);
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -