Skip to main content
Zhihao_Cui1
New Member
June 7, 2023
Solved

Access text position style - subscript / superscript

  • June 7, 2023
  • 4 replies
  • 1474 views

Text has “Position” (under “Details” Type settings) in UI where we can set subscript / superscript, is it possible to access this information via API?

This topic has been closed for replies.
Best answer by Ian_Barrow

hi,
As of what appears to be August 24, you can now read openTypeFeatures from a text node.
this does contain info in an object of the selected range regarding it’s superscrit status
“SUPS”
At present, from what I see this isn’t currently an element you can set in the API.

Ian

4 replies

Ian_Barrow
August 28, 2023

hi,
As of what appears to be August 24, you can now read openTypeFeatures from a text node.
this does contain info in an object of the selected range regarding it’s superscrit status
“SUPS”
At present, from what I see this isn’t currently an element you can set in the API.

Ian

Ian_Barrow
August 28, 2023

Hi Zhihao,
this can now be seen in the getRangeOpenTypeFeatures.
presently sadly it can’t be set as far as I can tell.

October 26, 2023

@Ian_Barrow hello! Is there any plans on adding support to setRangeOpenTypeFeatures?

Ian_Barrow
October 26, 2023

@Dmytro_Chernov I think you’d need to ask someone at Figma that question.
I am hoping that they do, but not sure if it’s on their radar.
If they do, then i will be implementing it in my plugin.