跳转到内容

Measure Text

一种优化的方法,用于输出字符串的边界框,而无需在 Viewport 中渲染。通过不在 Viewport 中渲染 Text Shape,这可能是一种更快的设置需要知道 Text Shape 宽度/高度的 rig 的方法。

String - 输入要测量的字符串。

+ - 添加一个 String Generator

Font - 选择 Font 和 Weight。

Typeface - 连接一个 Typeface。参见 Typeface

Font Size - 设置字体的大小。

Out Text Size - 输出生成的 Text 的尺寸。这些表示单行文本的大小,忽略 Text Box Size

Text Box Size - 如果在 Text Box 内绘制文本,设置文本换行区域的大小。更改此值会影响 Out Font Scale,但不会影响 Out Text Size

Allow Word Breaks - 当取消勾选时,单词不会被拆分到多行。相反,它们保持完整,文本会相应缩小以适应。

Out Font Scale - 输出为适应 Text Box Size 而应用于 Text 的缩放因子。Text Shape 的 Shrink to Fit Text Box 功能在后台启用。