X Tutup
Skip to content

PS export issue with custom font #6525

@klonuo

Description

@klonuo

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

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

      X Tutup