Skip to main content
Vincent_Huss
Active Member
September 5, 2024
Question

loadFontAsync : loading a missing font

  • September 5, 2024
  • 2 replies
  • 95 views

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 replies.

2 replies

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().

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Vincent_Huss
Active Member
September 5, 2024

yeah i meant uploading from the plugin interface.

Ok noted, i’ll work around that.
Thanks