Skip to main content
Question

Setting Vertical Trim of Text Node

  • September 30, 2024
  • 1 reply
  • 144 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
  • 4873 replies
  • September 30, 2024