Skip to content
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

svg:text text-anchor bug (with demo) #202

Closed
gabelerner opened this issue Dec 7, 2014 · 8 comments
Closed

svg:text text-anchor bug (with demo) #202

gabelerner opened this issue Dec 7, 2014 · 8 comments
Labels

Comments

@gabelerner
Copy link
Member

From andrey.s...@gmail.com on January 28, 2013 18:58:22

What steps will reproduce the problem? 1. http://sabelnikov.net/chord.svg - here you can see as it is appeared in Chrome.
2. http://sabelnikov.net/checl_svg.html - here you can see as it captured by canvg 3. What is the expected output? What do you see instead? expecting this: http://sabelnikov.net/chrome_view.jpg see this: http://sabelnikov.net/canvg_view.jpg What version of the product are you using? On what operating system? I'm using Google Chrome 23.0.1271.91, windows 7 x64 Please provide any additional information below. It seems that svg:text attribure text-anchor="end" some times works wrong.

Original issue: http://code.google.com/p/canvg/issues/detail?id=202

@gabelerner
Copy link
Member Author

From felix.lo...@gmail.com on January 29, 2013 01:10:31

I have the same problem, but using text-anchor="middle". The problem does not occur when using the code of r152 .

@gabelerner
Copy link
Member Author

From jparme...@gmail.com on January 29, 2013 15:26:08

I have the same problem. In the attached tiff file, the text-anchor labels are clearly misaligned.
Both tiff output and svg input are attached.

Attachment: planet.tiff

@gabelerner
Copy link
Member Author

From gabelerner@gmail.com on January 29, 2013 22:04:05

thanks for the submission. i rearranged the code for rendering text and feared there might be a regression and here it is. will fix this soon, please use r152 for now! overall, there's no good way to write a test suite for this sort of thing so i'm thinking of just taking all the svgs across all the issues and making a svg vs. canvg view of all of them so that i can just compare for regressions.

  • gabe

Status: Accepted
Owner: gabelerner@gmail.com

@gabelerner
Copy link
Member Author

From gabelerner@gmail.com on February 02, 2013 12:36:40

This issue was closed by revision r157 .

Status: Fixed

@gabelerner
Copy link
Member Author

From er...@corrupt.it on March 11, 2013 14:18:39

This issue appears to still occur if text-anchor="end" is set on svg:tspan elements, reverting to r152 did not seem to help in this particular case.

@gabelerner
Copy link
Member Author

From gabelerner@gmail.com on March 11, 2013 17:42:55

Status: Accepted

@gabelerner
Copy link
Member Author

From damien.b...@gmail.com on May 02, 2013 03:58:02

I'm still having the problem with google chart legend on the y axis (it uses <text text-anchor="end" ...)
You can see the problem here: http://jsfiddle.net/asgallant/JQAFJ/ (I did not create this jsfiddle, but the problem seems to be the same as mine)

@gabelerner
Copy link
Member Author

From gabelerner@gmail.com on May 07, 2013 19:21:35

This issue was closed by revision r167 .

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant