Rolling out: Projects become folders 📂 ✨
For example:
$19.99 /month
separate it into two layers where $19.99 is one layer and /month is another
Best answer by David
There are existing plugins which have this functionality. Here’s one example:
Im aware of that. I want know how to do it through the plugin api.
One of the currently available plugins has their source code available on GitHub. Take a look through there to see how they are handling it.
cool. thank you.
he’s only doing a split(‘\n’) not handling :
anyone knows if the Figma API provides any sorts of info about the lines of text generated by the text engine ? i really can’t find anything
@Vincent_Huss hi, do you have any solution now? i have the same issue.
no, i gave up on that feature,
it doesn’t seem like Figma provides any hook for that information 😕
maybe something to consider as a feature request @Figma_Product ?
=> for a text node : providing a list of bounding box for each lines
There was another thread on something similar from earlier this year: Methods and/or Properties for Getting Dimensions of Lines of Text within Text Node?
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.