Skip to main content
Solved

Custom fonts

  • May 23, 2022
  • 1 reply
  • 1218 views

Steven_Limcorn

I am currently creating a plugin that requires a specific font style not available on Figma. Is it possible for me to use the font styles without the user installing the fonts?

Best answer by tank666

It’s not entirely clear where you want to use the custom font: in the plugin’s UI or in the TextNode in the file?

If in the plugin’s UI, then you can include any font available at the URL using the <link> tag in HTML or @import/@font-face in CSS.

If in a TextNode, then only available fonts can be applied to it, which you can get via figma.listAvailableFontsAsync().

View original

1 reply

tank666
  • 4859 replies
  • Answer
  • May 23, 2022

It’s not entirely clear where you want to use the custom font: in the plugin’s UI or in the TextNode in the file?

If in the plugin’s UI, then you can include any font available at the URL using the <link> tag in HTML or @import/@font-face in CSS.

If in a TextNode, then only available fonts can be applied to it, which you can get via figma.listAvailableFontsAsync().


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings