Skip to main content
Vincent_Huss
Active Member
Sep 5, 2024 5:31 AM UTC
Question

loadFontAsync : loading a missing font

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
Sep 5, 2024 5:43 AM UTC

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
Sep 5, 2024 7:15 AM UTC

yeah i meant uploading from the plugin interface.

Ok noted, i’ll work around that.
Thanks