Skip to main content
Question

loadFontAsync : loading a missing font

  • September 5, 2024
  • 2 replies
  • 31 views

Vincent_Huss

Hi,

if the user of my plugin uploads the .ttf file, is there a way to load that font for the plugin ?

I think i read something like that somewhere but i can’t find the information back,
and the doc only mention about passing fontName as an argument.

Thanks in advance.

This topic has been closed for comments

tank666
  • September 5, 2024

Upload into the plugin interface? No, you can only use the fonts that are installed in the user’s OS, shared organization fonts, and Google fonts. You can get all available fonts using figma.listAvailableFontsAsync().


Vincent_Huss

yeah i meant uploading from the plugin interface.

Ok noted, i’ll work around that.
Thanks


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