Skip to content

FreeSans character distortion in SVG backend #913

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

Closed
mspacek opened this issue May 31, 2012 · 3 comments
Closed

FreeSans character distortion in SVG backend #913

mspacek opened this issue May 31, 2012 · 3 comments

Comments

@mspacek
Copy link
Contributor

mspacek commented May 31, 2012

As in #903 for the PDF backend, which is now fixed, the FreeSans '0' and '8' characters are distorted when saving to .svg:

plot(np.arange(10))
gcf().savefig('freesans_example.png')
gcf().savefig('freesans_example.svg')

The resulting files:

http://devio.us/~mspacek/freesans_example.png
http://devio.us/~mspacek/freesans_example.svg

This is with svg.fonttype set to the default 'path'. If set to 'svgfont' or 'none' instead, the problem seems to go away.

@mspacek
Copy link
Contributor Author

mspacek commented Jun 5, 2012

Note that this problem doesn't seem to happen in the PS backend, irrespective of the ps.fonttype setting.

@mdboom
Copy link
Member

mdboom commented Jun 6, 2012

See the fix in #926. The PS backend uses the save font conversion code as the PDF backend, so it's not surprising that Jouni's fix for the PDF backend also fixed PS.

@mspacek
Copy link
Contributor Author

mspacek commented Jun 6, 2012

Great, that fixes it for me. Thanks!

@mdboom mdboom closed this as completed in 1928306 Jun 6, 2012
mdboom added a commit to mdboom/matplotlib that referenced this issue Jun 7, 2012
… their last point as an initial MOVETO. This is the SVG-specific corrolory to matplotlib#905.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants