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.

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

yeah i meant uploading from the plugin interface.

Ok noted, i’ll work around that.
Thanks