We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/xlzuvekas/figma-copilot'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
FONT_HANDLING.md•778 B
# Font Handling Documentation
## Purpose
Avoid "Cannot unwrap symbol" errors and maintain consistency when working with text nodes that use multiple fonts.
## Recommended Tools
- `getRangeAllFontNames()` - Identify fonts used in a text range before updates
- Load fonts in bulk with `Promise.allSettled` to handle missing fonts gracefully
- Use logging to debug problematic font families
- Combine with text operations like `update_text_preserve_formatting` for mixed-font content
## Examples
1. Call `getRangeAllFontNames()` to collect fonts from a node.
2. Load each font before running text replacement commands.
3. If a font fails to load, logs will note the issue so you can choose a fallback.
Following these steps prevents mixed-font updates from throwing errors.