Unity3D uses pictures as fonts to display ————dot matrix font concept

 The dot matrix font is to divide each character into 16×16 or 24×24 points, and then use the virtual and real of each point to represent the outline of the character. Bitmap fonts are also called bitmap fonts, in which each glyph is represented by a set of two-dimensional pixel information.  

font structure

Bitmap fonts are also called bitmap fonts, in which each glyph is represented by a set of two-dimensional pixel information. This type of text display is commonly used in earlier computer systems (such as the DOS operating system without a graphical interface). Due to the bitmap, bitmap fonts are difficult to scale, and specific bitmap fonts can only be clearly displayed under the corresponding font size. Otherwise, the text will only be forcibly enlarged and the glyphs will be distorted, resulting in mosaic-like jagged edges. However, for the smaller Chinese character fonts with a font size of 8-14px (that is, the default font size used by most operating systems today), they are still used on the screen display, which can provide a higher display effect; however, this kind of dot matrix font today It is mainly used as an "auxiliary" part. When the font size set by the user does not have a bitmap, the font will be displayed as a vector image; and when printing, the printed font will use vector fonts regardless of size. Print.  

Font Features

The advantage of bitmap fonts is that the display speed is fast, unlike vector fonts that require calculation; the biggest disadvantage is that they cannot be enlarged, and once enlarged, jagged edges of the text will be found.  

Font structure

First of all, we need to understand the dot matrix font library and the vector font library: the  
dot matrix font library is often used as a display font library. The biggest disadvantage of this kind of dot matrix font library is that it cannot be enlarged.  
The vector font library stores the description information of each Chinese character, such as the starting and ending coordinates of a stroke, radius, radian and so on. When displaying and printing this type of font library, a series of mathematical operations are required to output the result, but the Chinese characters stored in this type of font library can theoretically be enlarged infinitely, and the stroke outline can still be kept smooth. for such fonts. The fonts used by Windows are also of the above two categories. In the FONTS directory, if the font extension is FON, it means that the file is a dot matrix font, and the extension is TTF, which means a vector font!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324578582&siteId=291194637