Skip to main content
Question

How to count the lines in a text node


Vincent_Huss

Hi,

it seems that Figma doesn’t provide any informations about separate lines rendered from their text engine.

I looked everywhere, some plugins are offering some “split text” functionnality, but from what i saw in the source code, they only spit by newline character, which doesn’t tell use anything about the newline created with wrapping.

ps : im not looking for a plugin, i want to know how to do it through the API

This topic has been closed for replies.

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