-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Incorrect SVG text position with text-anchor=middle #2106
Comments
Apparently |
Did you see #1996 ? |
Well that is about vertical alignment. This one is horizontal alignment. |
The symptoms mentioned in this thread seems to match what I am encountering. |
The upstream librsvg issue has been closed and marked as fixed. I've checked the latest sharp v0.27.1, which provides librsvg v2.50.2, and this does appear to have solved the original problem. |
What is the output of running
npx envinfo --binaries --languages --system --utilities
?What are the steps to reproduce?
What is the expected behaviour?
Rendered png should position the text correctly
Are you able to provide a standalone code sample, without other dependencies, that demonstrates this problem?
See code snippet above
Are you able to provide a sample image that helps explain the problem?
![Screenshot 2020-02-27 at 10 27 23 AM](https://user-images.githubusercontent.com/1103788/75406582-c756df80-594b-11ea-8ef6-89e1c8777924.png)
Compare the svg file vs the rendered png file, the text position is incorrect. And it varies with font size.
The text was updated successfully, but these errors were encountered: