⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fontproc.h

📁 显示汉字和英文字母点阵字库
💻 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 + -