Plugin cannot access multiple text styles on a single text node

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!

There is no bug here. Use getRangeTextStyleId.

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

1 Like

Lovely! Thank you!