class in UnityEngine/Inherits from: Object
Script interface for font assets.
字体资源的脚本接口。
You can use this class to dynamically switch fonts on GUI texts or Text Meshes.
你可以使用该类动态的转换GUI texts或者Text Meshes文本字体。
ascent | The ascent of the font. 提升字体。 |
characterInfo | Access an array of all characters contained in the font texture. 在字体纹理中访问包含所有字符的数组。 |
dynamic | Is the font a dynamic font. 该字体是否是动态字体。 |
fontSize | The default size of the font. 默认字体大小。 |
lineHeight | The line height of the font. 字体行高。 |
material | The material used for the font display. 用于显示字体的材质。 |
Font | Create a new Font. 创建一个新的字体。 |
GetCharacterInfo | Get rendering info for a specific character. 获取指定字符的渲染信息。 |
HasCharacter | Does this font have a specific character? 该字体是否有指定字符? |
RequestCharactersInTexture | Request characters to be added to the font texture (dynamic fonts only). 请求字符被加入到字体纹理中(仅限动态字体)。 |
CreateDynamicFontFromOSFont | Creates a Font object which lets you render a font installed on the user machine. 创建允许你渲染系统字体的字体对象。 |
GetMaxVertsForString | Returns the maximum number of verts that the text generator may return for a given string. 返回文本生成器返回指定字符串的最大顶点数。 |
GetOSInstalledFontNames | Get names of fonts installed on the machine. 获取已安装的系统字体名称。 |
Font | Delegate used for textureChanged. 用于textureChanged的委托。 |