I want to get the postScriptNames of fonts but it seems only font family names and styles are available from api.
Unfortunately this is not possible.
Ok thanks. I’m kind of curious can you explain what’s happening behind the scene and why it’s not possible?
Figma gets information about fonts in two ways:
From own list, which includes Google Fonts;
From Figma Agent (local fonts).
In both cases, Figma knows the postscriptName, but the Plugin API has no methods or properties to get the postscriptName. All you can get with the Plugin API is fontName.family, fontName.style and fontWeight.