-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text on paths #6543
Text on paths #6543
Conversation
looking good so far 👍 In having path be a property of text, will the path itself to be styleable (ie. strokes, fills), or will it just be used for text coordinates? (similar to how clipPaths aren't styleable) |
@melchiar let's see where we get, is all yet to be decided. having the path renderable makes things easier for devs, rather than aligning objects. |
Awesome work! My math skills are a bit meh, but when I see chance to collaborate on this one I will. |
Looks great! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Yeah i have to get back to this, i m really under a train of work lately |
Impressive ! |
Isn't working properly yet. the idea is to get underline/striketrough/overline working and the release for text only, meaning that for Itext and textbox will work badly and is on the dev to not update it. thereisn't match to say about it, you take a fabric.Path, and you do |
Ok after long time, here i am back. Editing will come later or maybe not come at all, since is really edgy. |
no not yet |
Hello |
Hello,
PathText is considered experimental at this time and does not yet support what you are looking for.
The devs are always looking for more helpers if you want to dig in.
-Bill Ensley
On 2/24/2021 5:49 AM, DevD wrote:
Hello
I want to scale path not textbox. After scale how i get updated path co-ordinates or (path string) and also i want to align text like right,center,left.
Sample fiddle:
https://jsfiddle.net/vijaygurjar/9mtcuzv4/18/
Require output like below:
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@vijaygurjar transforming a fabric path to a scaled path is entirely possible with fabric tools is not something i can explain in a message or an email. |
Thanks you @asturur for the work. |
Editing still does not work properly. |
Thanks you @asturur. Do you think this could be a new feature to add? Meanwhile I can use it in text :) |
yes it will. My priority is RTL support and fixing something in selections interactions |
Thanks! :) |
I've just opened a discussion thread for edit - You're welcome to experiment with my work in progress integration of these features: |
Brilliant! Nice work!
-Bill Ensley
Founder
BearPrinting.com
On 6/17/2021 2:20 PM, Steve Eberhardt wrote:
I've just opened a discussion thread for textAlign and startOffset support if anyone cares to provide feedback.
#7128
You're welcome to experiment with my work in progress integration of these features:
https://jsfiddle.net/melchiar/vhgtesoy/ <https://jsfiddle.net/melchiar/vhgtesoy/>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Has there been any new progress on this? When will this have support for SVG export? |
The next release will include additional property support for textAlign, pathStartOffset, and pathSide, along with a util for transforming path data. They're in the current master branch if you want to grab them early, otherwise the next release should be here soon. No work done yet on svg export though as it hasn't been a priority. |
hi. Any news on the svg export for this feature? What's the next update for the textpath? |
No news on svg yet. |
We have been experimenting with text on paths and we use this to properly export text on paths to SVG:
Although it is a bit hacky (especially the coordinate replacing with regexes), this works for us. Maybe this might be helpful for others. |
thank you. Hope there will be official support for svg export soon. |
has there been any more progress on this feature? With the SVG export function? |
This looks interesting; https://stackblitz.com/edit/web-platform-n8kzvg?file=script.js |
This does indeed look promising. But it isn't finished yet, you can't move/resize the curved text and the |
Any update on SVG export? Text on path |
If you are using node I can point out a solution |
@ShaMan123 : Yes please |
#9185 is what you need, look at the repro in the description for POC |
I am not sure about rendering to text though (paths work), you will need to investigate if that is important for you |
@emielmolenaar emielmolenaar : The SVG is rendering, but it's not positioned correctly. Could you explain how you've configured the object, including user selection, scaling, and all? I'd appreciate your help with this.
|
@melchiar This PR contains the progress of text on a path, that i started right now.
i ll push up every time i do a small progress.
closes #729
closes #5900
closes #2544