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

PS export issue with custom font #6525

Closed
klonuo opened this issue Jun 1, 2016 · 1 comment
Closed

PS export issue with custom font #6525

klonuo opened this issue Jun 1, 2016 · 1 comment

Comments

@klonuo
Copy link
Contributor

klonuo commented Jun 1, 2016

Hi,

in my matplotlibrc I've set font.sans-serif: Calibri.

When I export figure to PS/EPS I cant open the file. Problem seems to be in %%Copyright comment in exported file, which is split on two lines.:

...
%!PS-Adobe-3.0 Resource-Font
%%Title: Calibri
%%Copyright: © 2016 Microsoft Corporation. All Rights Reserved.
Hebrew OpenType Layout logic copyright © 2003 & 2007, Ralph Hancock & John Hudson. This layout logic for Biblical Hebrew is open source software under the MIT License; see embedded license description for details.
%%Creator: Converted from TrueType to type 3 by PPR
...

So if I join the lines to:

...
%!PS-Adobe-3.0 Resource-Font
%%Title: Calibri
%%Copyright: © 2016 Microsoft Corporation. All Rights Reserved. Hebrew OpenType Layout logic copyright © 2003 & 2007, Ralph Hancock & John Hudson. This layout logic for Biblical Hebrew is open source software under the MIT License; see embedded license description for details.
%%Creator: Converted from TrueType to type 3 by PPR
...

file is properly decoded.

matplotlib-2.0.0b1 on 64-bit Python 3.5.1 on Windows 10

@QuLogic
Copy link
Member

QuLogic commented Jun 1, 2016

This is a dupe of #5862, but with a different font.

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

No branches or pull requests

2 participants