修改 font的文本信息_unity 中文API之Font

Font 字体

0413c442fb0b8569643dbfd748655fae.png

class in UnityEngine/Inherits from: Object

Description 描述

Script interface for font assets.

字体资源的脚本接口。

You can use this class to dynamically switch fonts on GUI texts or Text Meshes.

你可以使用该类动态的转换GUI texts或者Text Meshes文本字体。

See Also: GUIText and TextMesh.

Variables 变量

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.

用于显示字体的材质。

Constructors 构造

Font Create a new Font.

创建一个新的字体。

Public Functions 公共函数

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).

请求字符被加入到字体纹理中(仅限动态字体)。

Static Functions 静态函数

CreateDynamicFontFromOSFont 创建允许你渲染系统字体的字体对象。 GetMaxVertsForString 返回文本生成器返回指定字符串的最大顶点数。 GetOSInstalledFontNames 获取已安装的系统字体名称。

Delegates 委托

Font 用于textureChanged的委托。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值