TextObject

TextObject 指令以 TrueType 字型建立文字曲线、曲面或多重曲面。

步骤

  1. 设定选项。
  2. 指定一个位置。
在可编写脚本的指令前添加特殊符号,-TextObject

在 Rhino 指令行中输入的包含空格的文本必须用双引号引起来。另外,有些富文本字符不能直接在 Rhino 指令行输入;它们需要用双引号括起来或使用单个反斜杠转义才能正确解释。例如: RH-66954

符号

输入

输出为

'

(单引号)

"'xyz'"

XYZ

"

(双引号)

""xyz""

"xyz"

!

(开头的感叹号)

"!xyz"

!xyz

\

(反斜线)

"\\xyz\\"

\xyz\

\n

(另起一行)

x\ny\nz

x

y

z

{ and }

(大括号)

\{xyz\}

{xyz}

文本物件选项

The text string, font, height, italic, and bold settings will be added to the output objects' attribute user text. RH-82202

高度 ___ <单位>

设定文字的高度 (模型单位)。

B

设定字体样式为粗体。

I

设定字体样式为斜体。

旋转

设置文本的旋转角度。

编辑栏
  • 在这个编辑栏位输入文字。

    在编辑栏位中按鼠标右键可以剪切、复制、粘贴文字。

输出为

指定输出物件的类型。

曲线

以文字的外框线建立曲线。

曲面

以文字的外框线建立曲面。

实体

建立实体文字。

线宽

指定厚度。

建立群组

The output geometry of the entire text string is treated as a single group.

The GroupGlyphOutput command-line option in the scriptable command, -TextObject, controls whether the output of a character consisting of multiple parts will be grouped. RH-83240

建立群组

The Group output options control how text elements are grouped when they are converted into geometry (curves, surfaces, or solids). RH-83240

None

The output geometry has no grouping applied.

By String

The entire text string is treated as a single group.

By Character

Characters consisting of multiple parts (e.g., i, j, %, etc.) is treated as a group.

Both

The entire text string is treated as a single group, with character groups nested within it.

RH-48090

雕刻字体

Rhino 包含一个雕刻字体列表。如果您打算选择其中一种雕刻字体(例如 MecSoft_Font-1),则启用相应的选项即可。

此选项仅对 Rhino 未知的单线雕刻字体有用。除非使用的单线字体具有如下所示的错误外观,否则不需要启用此选项。

 

雕刻字体有三种:


单线字体
双线字体
Two-line 字体

如果 Rhino 已知的雕刻字体被选中,Rhino 将执行以下操作:

  • 单线字体 - 删除连接每个笔画两端的闭合线。
  • 双线字体 - 尽可能去除重叠曲线,以减少加倍的加工路径。
    当出现重叠曲线时,您可以使用 Make2D 指令生成一个不重叠的曲线副本。
  • Two-line 字体是具有恒定宽度的标准轮廓字体。使用单线字体可能会删除某些必要的字体轮廓线。
小型大写

以小型大写的方式显示英文小写字母,以相对于正常字母高度的百分比来设置小型大写字母。

间距

字与字之间的间距。

使用文本中心定位

放置文本时,光标会出现在文本的中心。

RH-25758

Kerning

Rhino 安装的 Single-line 字体:
MecSoft_Font-1
SLF-RHN Architect.RH-57126

请参考