hzk16的介绍以及简单的使用方法(The introduction of hzk16 and the simple method of using it)
The introduction of hzk16 and the simple method of using it
Technology of 2008-11-14 15:41 reading ment number: 0 greatly in small HZK16 font is accord with the standard of GB2312 16 * 16 dot matrix font, HZK16 GB2312-80 support Chinese characters 6763, 682 symbols. One Chinese characters of 3755, according to the sound of order two, there are 3008 Chinese characters, according to the arrangement of radicals. In some applications we are not used to so many Chinese characters in the application type, so you can only extract some fonts for their own use.
The 16 * 16 Chinese characters in the HZK16 font library need 256 points to display, that is to say, 32 bytes are needed to display the purpose of an ordinary Chinese character.
We know that a GB2312 Chinese character is encoded in two bytes, ranging from A1A1~FEFE. A1-A9 is the symbol area, and B0 is the Chinese character area for F7. Each zone has 94 characters (Note: This is just the encoded permission range, not necessarily all font correspondences, such as the symbol area, there are a lot of code blank areas). The following Chinese characters "I" as an example, describes how the font data of 32 bytes in the HZK16 file to find its corresponding to the.
As mentioned above, a Chinese character occupies two bytes, and the first byte of the two is the area code of the Chinese character, and the last byte is the bit number of the word. Among
them, each zone records 94 Chinese characters, and the number is the location of the word in the area. So to find the "I" in the hzk16 position of the library must have it the city code and the code. (in order to distinguish the use of code and code, is actually one of the things I don't be misled)
Code: Code (the first byte of the -0xa0 (Chinese characters) Chinese characters encoding 0xa0 from the start because the file is so the front from the 0xa0 area, to calculate the relative area code)
B
hzk16的介绍以及简单的使用方法(The introduction of hzk16 and the simple method of using it) 来自淘豆网www.taodocs.com转载请标明出处.