Home >Common Problem >In what form are Chinese characters output on the computer?

In what form are Chinese characters output on the computer?

藏色散人
藏色散人Original
2020-12-07 11:15:1330607browse

Chinese characters are output in the form of glyph codes in computers. The glyph codes are a type of dot matrix code. In order to output Chinese characters on a monitor or printer, the Chinese characters are designed into a dot matrix pattern according to graphic symbols. The corresponding lattice code was obtained.

In what form are Chinese characters output on the computer?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

In what form are Chinese characters output on the computer?

Chinese characters are output in the form of glyph codes in the computer.

Glyph code, a type of dot matrix code. In order to output Chinese characters on a monitor or printer, the Chinese characters are designed into a dot matrix according to graphic symbols, and the corresponding dot matrix code (glyph code) is obtained.

The font used for display is called the display font. Displaying a Chinese character generally uses a 16×16 dot matrix or a 24×24 dot matrix or a 48×48 dot matrix. Knowing the size of the Chinese character lattice, the byte space required to store a Chinese character can be calculated.

Example: Using a 16×16 dot matrix to represent a Chinese character means using 16 lines for each Chinese character and 16 dots per line. One dot requires a 1-bit binary code, and 16 dots require a 16-bit binary code. The code (i.e. 2 bytes) has 16 lines in total, so 16 lines × 2 bytes/line = 32 bytes are needed, that is, 16 × 16 dot matrix represents a Chinese character, and the glyph code requires 32 bytes.

That is: number of bytes = number of dot matrix lines × number of dot arrays/8

The font used for printing is called the printing font, which contains more Chinese characters than the display font, and it does not work when working. The image display font library needs to be transferred into the memory.

The collection of all Chinese character glyph codes is called the Chinese character library. Chinese character libraries can be divided into soft character libraries and hard character libraries. The soft font is stored on the hard disk in the form of a file. This method is often used nowadays. The hard font solidifies the font in a separate memory chip, and then forms an interface card with other necessary devices, which is plugged into the computer. It is usually called Hanka.

It can be understood that the unified encoding method used to represent Chinese characters in the computer is called internal code, and the internal code is unique. The Chinese character encoding formed to facilitate the input of Chinese characters is an input code, which is an external code of Chinese characters. The input code is different due to different encoding methods and is diverse. The Chinese character code formed for displaying and printing Chinese characters is a glyph code. The computer finds the glyph code of the Chinese character in the font model library through the Chinese character internal code and realizes its conversion.

Recommended: "Programming Video"

The above is the detailed content of In what form are Chinese characters output on the computer?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:When did you get WeChat?Next article:When did you get WeChat?