Skip to main content
September 30, 2024
Question

Setting Vertical Trim of Text Node

  • September 30, 2024
  • 1 reply
  • 202 views

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?

This topic has been closed for replies.

1 reply

tank666
September 30, 2024
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank