set_text_style
Apply detailed typography to a Figma text node in a single call, automatically loading fonts and applying only specified fields for alignment, spacing, and decorations.
Instructions
Set detailed typography on a TEXT node in one call. Only the provided fields are applied. Font is loaded automatically before changes. lineHeight/letterSpacing accept an object with value+unit ({unit:'AUTO'} for lineHeight auto).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the TEXT node to style | |
| fontSize | No | Font size in pixels | |
| textCase | No | Text case transform | |
| fontStyle | No | Font style/weight name, e.g. "Regular", "Bold", "Semi Bold" | |
| fontFamily | No | Font family, e.g. "Inter". If changing font, pair with fontStyle. | |
| lineHeight | No | Line height as { value, unit }. Use { unit: 'AUTO' } for automatic line height. | |
| letterSpacing | No | Letter spacing as { value, unit } | |
| textAutoResize | No | Text auto-resize behavior | |
| textDecoration | No | Text decoration | |
| textAlignVertical | No | Vertical text alignment | |
| textAlignHorizontal | No | Horizontal text alignment |