Skip to main content

Figma supports enabling/disabling some OpenType features from the UI.

https://help.figma.com/hc/en-us/articles/4913951097367-Use-OpenType-features

 

From the plugin API I can see which features are being enabled with

https://www.figma.com/plugin-docs/api/properties/TextNode-opentypefeatures/

but the property is read-only.

 

How can I programmatically enable/disable some OpenType features?

Also, is there a reason why it’s accessible on UI but not Plugin API?

I need this feature badly, I work with medical texts with lots of superscripts that need manual fixing. This takes hours, and I wanted to make a plugin to automate this, but currently I can’t see any possibility to build this without the ability to modify OpenType features using API.