load_font_async
Load fonts asynchronously in Figma to ensure dynamic text rendering. Specify font family and optional style for efficient design updates.
Instructions
Load a font asynchronously in Figma.
Returns:
content: Array containing a text message with the loaded font. Example: { "content": [{ "type": "text", "text": "Font loaded: Roboto" }] }
Input Schema
Name | Required | Description | Default |
---|---|---|---|
family | Yes | The font family to set. Must be a non-empty string. Maximum length 100 characters. | |
style | No | Optional. The font style to set (e.g., 'Bold', 'Italic'). If provided, must be a non-empty string. Maximum length 100 characters. |