Set Text Style
text_set_styleSet typography properties on a text node, including font, size, weight, spacing, and decoration. Specify nodeId and nodeName to apply changes.
Instructions
Set any combination of typography properties (font, size, weight, spacing, decoration, …) on a text node.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the text node to modify | |
| fontName | No | Font family and style | |
| fontSize | No | Font size | |
| nodeName | Yes | Name of the node to verify against | |
| textCase | No | Case transformation on the text | |
| lineHeight | No | Line height settings | |
| letterSpacing | No | Letter spacing settings | |
| textDecoration | No | Text decoration | |
| paragraphIndent | No | Paragraph indent in pixels | |
| paragraphSpacing | No | Paragraph spacing in pixels | |
| textAlignVertical | No | Vertical text alignment | |
| textAlignHorizontal | No | Horizontal text alignment |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the modified node | |
| success | No | Whether style was set successfully |