Nút Chuỗi Ký Tự thành Đường Cong (String to Curves Node)
The String to Curves converts a string to curve instances. Each unique character used in the string is converted to a curve once, and further uses of that character are more instances of the same geometry.
This makes processing the output geometry very efficient, because each unique character only has to be processed once. However, it means that the result will be the same for every instance of the same character. To process each character individually, the Nút Chuyển các Thực Thể thành Đối Tượng Thật (Realize Instances Node) can be used.
Mẹo
Socket inspection can be used to see the value of the string input used when the node was evaluated, by holding the mouse over the socket.
Đầu Vào (Inputs)
- Chuỗi Ký Tự (String)
Hàm Tiêu Chuẩn.
- Kích Thước (Size)
The size of each character. The values of the other inputs are scaled by this value.
- Phân Khoảng của Ký Tự (Character Spacing)
A factor by which the space between each character (kerning) is scaled on the X axis.
- Phân Khoảng giữa Từ (Word Spacing)
A factor by which whitespace between words is scaled on the X axis.
- Phân Khoảng của Dòng (Line Spacing)
The distance between separate lines in the output. Scaled by the Size input.
- Max Width
Maximum width of the text, applies when the Overflow mode is set to Overflow.
- Chiều Rộng Văn Bản (Text Box Width)
The maximum width of each line, though individual words will not be wrapped.
- Chiều Cao Văn Bản (Text Box Height)
The maximum height for all the lines of the text.
Tính Chất (Properties)
- Phông (Font)
Font glyph used to generate the curve.
- Tràn Ra (Overflow)
- Tràn Ra (Overflow)
Allows the text to use more space than the specified height. The width of the output is still constrained by the Max Width input though.
- Đổi Tỷ Lệ để Khít Vừa (Scale To Fit)
Scales the text size to fit the width and height.
- Cắt Ngắn (Truncate)
Only outputs text characters that fit within the width and height, based on the Size input. Any part of the string that did not fit is moved to the Remainder output.
- Canh Hàng (Alignment)
- Trái (Left)
Canh hàng văn bản về trái.
- Trung Tâm (Center)
Canh hàng văn bản vào trung tâm .
- Phải (Right)
Canh hàng văn bản về phải.
- Canh Đều (Justify)
Canh hàng văn bản về trái/phải.
- Ngang Bằng (Flush)
Aligns the text to the left and right with equal character spacing.
- Canh Hàng Y (Align Y)
- Đường Cơ Sở Đỉnh (Top Baseline)
Aligns the text to the top baseline.
- Đỉnh (Top)
Canh góc nhìn về đỉnh/đáy.
- Giữa (Middle)
Aligns the text to the middle.
- Đường Cơ Sở Đáy (Bottom Baseline)
Aligns the text to the bottom baseline.
- Đáy (Bottom)
Canh góc nhìn về đỉnh/đáy.
- Pivot Point (Điểm Tựa)
Controls where on each character the output Pivot Point is placed.
- Trung Điểm (Midpoint)
Place the pivot points at the center of each character's bounds.
- Bên Trái Đỉnh Cùng (Top Left)
Place the pivot points at the top left of each character's bounds.
- Trung Tâm Đỉnh Cùng (Top Center)
Place the pivot points at the middle of the top of each character's bounds.
- Bên Phải Đỉnh Cùng (Top Right)
Place the pivot points at the top right of each character's bounds.
- Bên Trái Đáy Cùng (Bottom Left)
Place the pivot points at the bottom left of each character's bounds.
- Trung Tâm Đáy Cùng (Bottom Center)
Place the pivot points at the middle of bottom of each character's bounds.
- Đáy Cùng Bên Phải (Bottom Right)
Place the pivot points at the bottom right of each character's bounds.
Đầu Ra (Outputs)
- Thực Thể Đường Cong (Curve Instances)
Hình học của các thực thể đường cong.
- Phần Còn Lại (Remainder)
The part of the text that did not fit in the box described by the Text Box Height and Text Box Width inputs. Only used in the Truncate overflow mode.
- Đường Thẳng/Dòng (Line)
An attribute field containing which the index of the each character's line in the text layout (on the instance domain).
- Pivot Point (Điểm Tựa)
Outputs the position described by the Pivot Point drop-down in the local space of each instance.
Một Số Ví Dụ (Examples)
The node can be used to make overflowing text boxes. Here, the text that does not fit into the first node's fix-sized text box is passed to a separate String to Curves node. And finally added with a Scale to Fit node.