Home >Common Problem >How many bytes are needed to store a 48×48-point Chinese character glyph code?
The number of bytes required to store a 48×48-point Chinese character glyph code is 288 bytes. The method is: the number of dot matrix lines , the 8-bit binary code occupies one byte.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
It takes 288 bytes to store 48X48-point Chinese character code. The method of calculating the number of bytes occupied by the glyph code is: the number of dot matrix lines × the number of dot matrix numbers / 8. The 48X48 Chinese character glyph code can be regarded as occupying 48 rows of the Chinese character, and every 48 points (columns) constitute a row , each point requires 1-bit binary code, and 8-bit binary code occupies one byte.
The glyph code is mainly used to display and print Chinese characters. It is a dot matrix code. According to the output requirements, there are different dot matrix methods, such as: simple Chinese characters are 16 * 16 dot matrix, and improved Chinese characters are 24 * 24. Dot matrix, 32*32 dot matrix, 48*48 dot matrix, etc. The more points, the more beautiful the font will be displayed or printed, but the code will take up more storage space.
Extended information:
When Chinese characters need to be displayed or printed, the internal code of the Chinese character must be converted into a glyph code , and they also have a one-to-one correspondence.
The glyphs of Chinese characters occupy a large amount of storage space. Usually, all Chinese glyph codes are stored in the computer's external memory, called the "character library". Different fonts (such as Song, Black, etc.) correspond to different fonts.
If necessary, search and output Chinese characters in the font library. In order to avoid taking up a lot of valuable storage space and improve the processing speed of Chinese characters, Chinese character fonts are usually divided into first-level and second-level fonts. The first-level fonts are in the memory and the second-level fonts are external. save. The encoding and storage of the dot matrix is very simple, and it is output directly without conversion, but the glyphs will be reshaped after amplification.
For more computer-related knowledge, please visit the FAQ column!
The above is the detailed content of How many bytes are needed to store a 48×48-point Chinese character glyph code?. For more information, please follow other related articles on the PHP Chinese website!