找回密码
 立即注册
搜索
热搜: RA8889 RA8876 RA8875
查看: 811|回复: 0

汉字模及中文字库提取软件Lcmzimo(GB2312)

[复制链接]

51

主题

6

回帖

654

积分

管理员

积分
654
QQ
发表于 2024-4-10 10:04:51 | 显示全部楼层 |阅读模式
该软件可以对汉字取模,可以是少数几个汉字,也可以生成整个字库,可提取GB2312字符集点阵字库。程序列表如下图:




生成少数汉字时,输出的文件构建了一个结构体,方便调用。下方举例:
  1. // ------------------  汉字字模的数据结构定义 ------------------------ //
  2. typedef struct typFNT_GB32                // 汉字字模数据结构
  3. {
  4.        signed char Index[2];              // 汉字内码索引
  5.        char Msk[128];                      // 点阵码数据
  6. };

  7. /////////////////////////////////////////////////////////////////////////
  8. // 汉字字模表                                                          //
  9. // Font:宋体32,,横向取模左高位,数据排列:从左到右从上到下               //
  10. /////////////////////////////////////////////////////////////////////////
  11. struct typFNT_GB32 code GB_32[] =        // 数据表
  12. {
  13. "瑞", 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  14.       0x00,0x00,0x08,0x00,0x00,0x00,0x0C,0x00,
  15.       0x00,0x23,0x0C,0x30,0x7F,0xF3,0x0C,0x30,
  16.       0x03,0x03,0x0C,0x30,0x03,0x03,0x0C,0x30,
  17.       0x03,0x03,0x0C,0x30,0x03,0x07,0xFF,0xF0,
  18.       0x03,0x02,0x00,0x30,0x03,0x00,0x00,0x00,
  19.       0x03,0x00,0x00,0x08,0x03,0x0F,0xFF,0xFC,
  20.       0x3F,0xE0,0x18,0x00,0x03,0x00,0x10,0x00,
  21.       0x03,0x00,0x20,0x10,0x03,0x07,0xFF,0xF8,
  22.       0x03,0x06,0x23,0x18,0x03,0x06,0x23,0x18,
  23.       0x03,0x06,0x23,0x18,0x03,0x16,0x23,0x18,
  24.       0x03,0xE6,0x23,0x18,0x07,0x06,0x23,0x18,
  25.       0x3C,0x06,0x23,0x18,0x38,0x06,0x23,0x18,
  26.       0x00,0x06,0x23,0x18,0x00,0x06,0x20,0x18,
  27.       0x00,0x06,0x00,0xF0,0x00,0x06,0x00,0x70,
  28.       0x00,0x04,0x00,0x20,0x00,0x00,0x00,0x00,

  29. "佑", 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  30.       0x00,0x80,0x20,0x00,0x00,0xE0,0x38,0x00,
  31.       0x00,0xC0,0x30,0x00,0x01,0x80,0x30,0x00,
  32.       0x01,0x80,0x30,0x00,0x01,0x80,0x60,0x00,
  33.       0x03,0x00,0x60,0x18,0x03,0x7F,0xFF,0xFC,
  34.       0x03,0x00,0xC0,0x00,0x07,0x80,0xC0,0x00,
  35.       0x05,0x00,0xC0,0x00,0x0D,0x01,0x80,0x00,
  36.       0x09,0x01,0x80,0x00,0x11,0x03,0x00,0x00,
  37.       0x11,0x03,0x00,0x40,0x21,0x07,0xFF,0xF0,
  38.       0x41,0x05,0x00,0x60,0x01,0x0D,0x00,0x60,
  39.       0x01,0x09,0x00,0x60,0x01,0x11,0x00,0x60,
  40.       0x01,0x21,0x00,0x60,0x01,0x41,0x00,0x60,
  41.       0x01,0x81,0x00,0x60,0x01,0x01,0x00,0x60,
  42.       0x01,0x01,0x00,0x60,0x01,0x01,0x00,0x60,
  43.       0x01,0x01,0xFF,0xE0,0x01,0x01,0x00,0x60,
  44.       0x01,0x02,0x00,0x00,0x00,0x00,0x00,0x00,

  45. "科", 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  46.       0x00,0x00,0x00,0x80,0x00,0x0C,0x00,0xE0,
  47.       0x00,0x3C,0x00,0xC0,0x07,0xE0,0x00,0xC0,
  48.       0x38,0xC0,0x00,0xC0,0x00,0xC0,0x60,0xC0,
  49.       0x00,0xC0,0x30,0xC0,0x00,0xC0,0x18,0xC0,
  50.       0x00,0xC0,0x18,0xC0,0x00,0xC4,0x00,0xC0,
  51.       0x3F,0xFE,0x00,0xC0,0x00,0xC0,0x00,0xC0,
  52.       0x00,0xC0,0x40,0xC0,0x01,0xC0,0x60,0xC0,
  53.       0x01,0xF0,0x30,0xC0,0x03,0xDC,0x10,0xC0,
  54.       0x02,0xCC,0x00,0xCC,0x06,0xC4,0x00,0xFC,
  55.       0x04,0xC4,0x0F,0xC0,0x08,0xC1,0xF0,0xC0,
  56.       0x10,0xC6,0x00,0xC0,0x20,0xC0,0x00,0xC0,
  57.       0x40,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,
  58.       0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,
  59.       0x00,0xC0,0x00,0xC0,0x00,0xC0,0x00,0xC0,
  60.       0x00,0x80,0x00,0x80,0x00,0x00,0x00,0x00,

  61. "技", 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  62.       0x01,0x00,0x08,0x00,0x01,0xC0,0x0E,0x00,
  63.       0x01,0x80,0x0C,0x00,0x01,0x80,0x0C,0x00,
  64.       0x01,0x80,0x0C,0x00,0x01,0x80,0x0C,0x00,
  65.       0x01,0x98,0x0C,0x18,0x3F,0xFF,0xFF,0xFC,
  66.       0x01,0x80,0x0C,0x00,0x01,0x80,0x0C,0x00,
  67.       0x01,0x80,0x0C,0x00,0x01,0x80,0x0C,0x00,
  68.       0x01,0x8C,0x0C,0x20,0x01,0xB3,0xFF,0xF0,
  69.       0x01,0xC0,0x80,0x60,0x0F,0x80,0x80,0x60,
  70.       0x3D,0x80,0x40,0xC0,0x31,0x80,0x40,0xC0,
  71.       0x01,0x80,0x61,0x80,0x01,0x80,0x21,0x80,
  72.       0x01,0x80,0x33,0x00,0x01,0x80,0x16,0x00,
  73.       0x01,0x80,0x0E,0x00,0x01,0x80,0x1E,0x00,
  74.       0x01,0x80,0x37,0x00,0x01,0x80,0xE3,0xC0,
  75.       0x1F,0x81,0x80,0xF8,0x07,0x8E,0x00,0x7C,
  76.       0x02,0x30,0x00,0x00,0x00,0x00,0x00,0x00
  77. };

  78. // 汉字表:
  79. // 瑞佑科技
复制代码



获取少数汉字方法使用Lcmzimo.exe,参考下方的操作步骤:





获取整个GB2312字库使用TakeDotLib.exe,相对简单,就不再介绍。

软件下载地址:




本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|Lcdvision Technology ( 苏ICP备10203891号 )

GMT+8, 2024-12-28 16:27 , Processed in 0.091231 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表