Skip to main content

How to add missing fonts programmatically?


My plugin deals with text, and I want the text to have the same font. Now it might not be available on some machines where my plugin will generate Figma design. Is there any programmatic way to add it?


You can’t use missing fonts manually and you can’t use them via API. In order to add a font to Figma the user needs to install a font to their machine and restart Figma. You can’t do any of that with a plugin. Use a fallback font like the default Inter.