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. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"family": {
"description": "The font family to set. Must be a non-empty string. Maximum length 100 characters.",
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"style": {
"description": "Optional. The font style to set (e.g., 'Bold', 'Italic'). If provided, must be a non-empty string. Maximum length 100 characters.",
"maxLength": 100,
"minLength": 1,
"type": "string"
}
},
"required": [
"family"
],
"type": "object"
}