Skip to main content

I’m developing a plugin that includes functionality to create a text node with content. I’m trying to set the text node’s vertical alignment to ‘cap height to baseline,’ but I’m having trouble achieving this.


text.textCase = "TITLE";
text.textAlignVertical = "TOP";
text.textAutoResize = "WIDTH_AND_HEIGHT";
text.textLineHeight = "CAP_HEIGHT";

The other ones work fine – but not the Vertical Trim. Thoughts?

figma.com

Reply