← 输入框|github.com|刷新
Skip to content

FreeSans character distortion in SVG backend #913

Closed

Description

@mspacek

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.

Activity

  1. mspacek commented on Jun 5, 2012

    @mspacek
    ContributorAuthor

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

  2. added a commit that references this issue on Jun 6, 2012
    1928306
  3. mdboom commented on Jun 6, 2012

    @mdboom
    Member

    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.

  4. mspacek commented on Jun 6, 2012

    @mspacek
    ContributorAuthor

    Great, that fixes it for me. Thanks!

  5. added a commit that references this issue on Jun 7, 2012
    e0fbf5d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions