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?