Closed Shashank-Bhatt1 closed 2 months ago
Hello, I need solution for this quickly if possible so can anyone please help on this thing?
What you want to do here is complex. You should concatenate your path with a vertical offset and replicate the path on multi line. Text on a path and text wrapping do not work currently.
@asturur Noted. Thanks for the update.
CheckList
Description
Hi, I am using path for my text object to apply curvature for it and it works very nicely. However i need to use same path for when text is spanned across multiline.
when i do that, path is no longer working correctly and all of the lines following the path are combined as one line and overlapped.
Here is the snapshot how it comes.![Screenshot 2024-04-26 184242](https://github.com/fabricjs/fabric.js/assets/24728257/09281465-2c05-46d2-9aa5-edaf31402a90)
It follows the correct path but the only problem is that it does not do that on individual line. If i remove path then it looks like this![Screenshot 2024-04-26 184311](https://github.com/fabricjs/fabric.js/assets/24728257/74db1adf-2afa-42c6-b719-6aa78e88998b)
I have checked fewer native code (_measureLine function) but i am not able to figure out how the things work here so any help would be much appreciated.
Current State
One partial solution is to add individual text object from each line and then apply path for all of them Something like
but this also means that one has to apply all the other props to individual objects as well which i can't now as i already have taken text object everywhere in my project.
Additional Context
No response