Any way to get the postScriptNames of fonts in plugin?

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:

  1. From own list, which includes Google Fonts;
    google-fonts-list

  2. From Figma Agent (local fonts).
    local-fonts-list

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.
TextNode-properties

1 Like