-
Notifications
You must be signed in to change notification settings - Fork 221
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
Export path to SVG #76
Comments
I am indeed stupid. For all other stupid people out there: What you get is the d-part of the SVG string:
|
That's because the coordinate space for fonts is different than SVG. The original path data is not modified. |
There was some brief discussion around simplifying this task back in #24 but that issue may have fallen off the radar since. |
Don't worry about it, guys! I just added a horizontal flip to the SVG tags. As simple as that. No headache.
|
There still bug, svg path doesn't transformed to center of axis, and actually different for each glyph |
@Enelar please file that as a separate issue. |
First of all, thank you very much for the library. This looks super helpful.
I was trying to get an SVG for a string or letter, so that I can further process it in paper.js.
Now, what I receive from this method
var svg = run.glyphs[0].path.toSVG();
is not what I expected. I received a complex series like this:However, I would have expected a well-formatted XML/SVG string.
I am a total noob as should be obvious by now. But how would I be able to obtain an SVG string from the series above?
The text was updated successfully, but these errors were encountered: