Skip to main content
Question

Plugin cannot access multiple text styles on a single text node


Isaiah_Taylor

Figma allows assigning a TextStyle to multiple parts of a single character set in a TextNode. The information about these styles is not accessible with the plugin API. When you check TextNode.textStyleId, you get Symbol: Mixed.

Can we get a way to access those TextStyles? Thank you!

2 replies

tank666
  • 4863 replies
  • June 17, 2022

There is no bug here. Use getRangeTextStyleId.

You can also get the segments with the desired property and value using getStyledTextSegments.


Isaiah_Taylor

Lovely! Thank you!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings