Skip to main content
Vincent_Huss
Active Member
Mar 28, 2024 4:52 AM UTC
Question

How to count the lines in a text node

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.