文件名称:ZKTQmbzh
介绍说明--下载内容均来自于网络,请自行研究使用
码表转换法读取字库
内含小字库创建方法、对应的字模提取方式和字库使用源代码。
原理:借助表来定位。首先,建立一个94*94的索引表,对应94个区码和位码。再建立一个数组用于储存字模。建立小字库的时候,把字模在数组中位置写入索引表对应的区位。读取的时候直接定位到索引表得到重新编排的字库位置码,所以我姑且称之为码表转换法。这是一种以空间换取时间的方法。
优点:
完全不用查找或者判断,定位效率很高。
可以支持汉字数量仅受内存限制。
字模位置和区位码相关,使用方便。
缺点:
索引表会占用额外内存。这个可以说是最致命的也是唯一的缺点。-
Conversion method reads the character code table
Contains a small font creation method, the corresponding matrix extraction methods and fonts to use source code.
Principle: With the table to locate. First, create a 94* 94 of the index table, area code and the corresponding 94-bit code. Then create an array to store the matrix. Establishment of small font when the font is written in the array position index table corresponding location. When reading the index table to be directly targeted to rearrange the location of the font code, so I call this code table conversion method. This is a space for time approach.
Advantages:
We did not find, or determine, locate high efficiency.
Can support the number of characters limited only by memory.
Matrix related to the location and area code, easy to use.
Disadvantages:
Index table will take up additional memory. This is arguably the most deadly is the only drawback.
内含小字库创建方法、对应的字模提取方式和字库使用源代码。
原理:借助表来定位。首先,建立一个94*94的索引表,对应94个区码和位码。再建立一个数组用于储存字模。建立小字库的时候,把字模在数组中位置写入索引表对应的区位。读取的时候直接定位到索引表得到重新编排的字库位置码,所以我姑且称之为码表转换法。这是一种以空间换取时间的方法。
优点:
完全不用查找或者判断,定位效率很高。
可以支持汉字数量仅受内存限制。
字模位置和区位码相关,使用方便。
缺点:
索引表会占用额外内存。这个可以说是最致命的也是唯一的缺点。-
Conversion method reads the character code table
Contains a small font creation method, the corresponding matrix extraction methods and fonts to use source code.
Principle: With the table to locate. First, create a 94* 94 of the index table, area code and the corresponding 94-bit code. Then create an array to store the matrix. Establishment of small font when the font is written in the array position index table corresponding location. When reading the index table to be directly targeted to rearrange the location of the font code, so I call this code table conversion method. This is a space for time approach.
Advantages:
We did not find, or determine, locate high efficiency.
Can support the number of characters limited only by memory.
Matrix related to the location and area code, easy to use.
Disadvantages:
Index table will take up additional memory. This is arguably the most deadly is the only drawback.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ZKTQ.C
ZKTQ.exe
码表转换法读取字库.txt
程序示例\DEMO.C
........\DEMO.EXE
........\HZK.h
程序示例
ZKTQ.exe
码表转换法读取字库.txt
程序示例\DEMO.C
........\DEMO.EXE
........\HZK.h
程序示例