该软件可以对汉字取模,可以是少数几个汉字,也可以生成整个字库,可提取GB2312字符集点阵字库。程序列表如下图:
生成少数汉字时,输出的文件构建了一个结构体,方便调用。下方举例:
- // ------------------ 汉字字模的数据结构定义 ------------------------ //
- typedef struct typFNT_GB32 // 汉字字模数据结构
- {
- signed char Index[2]; // 汉字内码索引
- char Msk[128]; // 点阵码数据
- };
- /////////////////////////////////////////////////////////////////////////
- // 汉字字模表 //
- // Font:宋体32,,横向取模左高位,数据排列:从左到右从上到下 //
- /////////////////////////////////////////////////////////////////////////
- struct typFNT_GB32 code GB_32[] = // 数据表
- {
- "瑞", 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x08,0x00,0x00,0x00,0x0C,0x00,
- 0x00,0x23,0x0C,0x30,0x7F,0xF3,0x0C,0x30,
- 0x03,0x03,0x0C,0x30,0x03,0x03,0x0C,0x30,
- 0x03,0x03,0x0C,0x30,0x03,0x07,0xFF,0xF0,
- 0x03,0x02,0x00,0x30,0x03,0x00,0x00,0x00,
- 0x03,0x00,0x00,0x08,0x03,0x0F,0xFF,0xFC,
- 0x3F,0xE0,0x18,0x00,0x03,0x00,0x10,0x00,
- 0x03,0x00,0x20,0x10,0x03,0x07,0xFF,0xF8,
- 0x03,0x06,0x23,0x18,0x03,0x06,0x23,0x18,
- 0x03,0x06,0x23,0x18,0x03,0x16,0x23,0x18,
- 0x03,0xE6,0x23,0x18,0x07,0x06,0x23,0x18,
- 0x3C,0x06,0x23,0x18,0x38,0x06,0x23,0x18,
- 0x00,0x06,0x23,0x18,0x00,0x06,0x20,0x18,
- 0x00,0x06,0x00,0xF0,0x00,0x06,0x00,0x70,
- 0x00,0x04,0x00,0x20,0x00,0x00,0x00,0x00,
- "佑", 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x80,0x20,0x00,0x00,0xE0,0x38,0x00,
- 0x00,0xC0,0x30,0x00,0x01,0x80,0x30,0x00,
- 0x01,0x80,0x30,0x00,0x01,0x80,0x60,0x00,
- 0x03,0x00,0x60,0x18,0x03,0x7F,0xFF,0xFC,
- 0x03,0x00,0xC0,0x00,0x07,0x80,0xC0,0x00,
- 0x05,0x00,0xC0,0x00,0x0D,0x01,0x80,0x00,
- 0x09,0x01,0x80,0x00,0x11,0x03,0x00,0x00,
- 0x11,0x03,0x00,0x40,0x21,0x07,0xFF,0xF0,
- 0x41,0x05,0x00,0x60,0x01,0x0D,0x00,0x60,
- 0x01,0x09,0x00,0x60,0x01,0x11,0x00,0x60,
- 0x01,0x21,0x00,0x60,0x01,0x41,0x00,0x60,
- 0x01,0x81,0x00,0x60,0x01,0x01,0x00,0x60,
- 0x01,0x01,0x00,0x60,0x01,0x01,0x00,0x60,
- 0x01,0x01,0xFF,0xE0,0x01,0x01,0x00,0x60,
- 0x01,0x02,0x00,0x00,0x00,0x00,0x00,0x00,
- "科", 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x80,0x00,0x0C,0x00,0xE0,
- 0x00,0x3C,0x00,0xC0,0x07,0xE0,0x00,0xC0,
- 0x38,0xC0,0x00,0xC0,0x00,0xC0,0x60,0xC0,
- 0x00,0xC0,0x30,0xC0,0x00,0xC0,0x18,0xC0,
- 0x00,0xC0,0x18,0xC0,0x00,0xC4,0x00,0xC0,
- 0x3F,0xFE,0x00,0xC0,0x00,0xC0,0x00,0xC0,
- 0x00,0xC0,0x40,0xC0,0x01,0xC0,0x60,0xC0,
- 0x01,0xF0,0x30,0xC0,0x03,0xDC,0x10,0xC0,
- 0x02,0xCC,0x00,0xCC,0x06,0xC4,0x00,0xFC,
- 0x04,0xC4,0x0F,0xC0,0x08,0xC1,0xF0,0xC0,
- 0x10,0xC6,0x00,0xC0,0x20,0xC0,0x00,0xC0,
- 0x40,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,
- 0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,
- 0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,
- 0x00,0x80,0x00,0x80,0x00,0x00,0x00,0x00,
- "技", 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x01,0x00,0x08,0x00,0x01,0xC0,0x0E,0x00,
- 0x01,0x80,0x0C,0x00,0x01,0x80,0x0C,0x00,
- 0x01,0x80,0x0C,0x00,0x01,0x80,0x0C,0x00,
- 0x01,0x98,0x0C,0x18,0x3F,0xFF,0xFF,0xFC,
- 0x01,0x80,0x0C,0x00,0x01,0x80,0x0C,0x00,
- 0x01,0x80,0x0C,0x00,0x01,0x80,0x0C,0x00,
- 0x01,0x8C,0x0C,0x20,0x01,0xB3,0xFF,0xF0,
- 0x01,0xC0,0x80,0x60,0x0F,0x80,0x80,0x60,
- 0x3D,0x80,0x40,0xC0,0x31,0x80,0x40,0xC0,
- 0x01,0x80,0x61,0x80,0x01,0x80,0x21,0x80,
- 0x01,0x80,0x33,0x00,0x01,0x80,0x16,0x00,
- 0x01,0x80,0x0E,0x00,0x01,0x80,0x1E,0x00,
- 0x01,0x80,0x37,0x00,0x01,0x80,0xE3,0xC0,
- 0x1F,0x81,0x80,0xF8,0x07,0x8E,0x00,0x7C,
- 0x02,0x30,0x00,0x00,0x00,0x00,0x00,0x00
- };
- // 汉字表:
- // 瑞佑科技
复制代码
获取少数汉字方法使用Lcmzimo.exe,参考下方的操作步骤:
获取整个GB2312字库使用TakeDotLib.exe,相对简单,就不再介绍。
软件下载地址:
|