"Andrew Hawryluk" <HAWRYLA@...619...> writes:
Does it help if you set ps.fonttype and pdf.fonttype to 42 in
matplotlibrc?
Yes, that works very well, thanks! However, it now embeds the entire
font rather than a subset. This results in a PDF of 14.4 MB with this
font. I ran it through ghostscript to get a PDF of 24.2 kB with
subsetting, but I'm wondering if I can get subsetting of type 42 fonts
directly from matplotlib?
I'm afraid there's no support for that in the current version, except
probably in the Cairo backend (every time I try to compile pycairo I run
into trouble with some of the dependencies, but if you can get it to
work, it's a very advanced graphics library for producing all sorts of
formats).
···
--
Jouni K. Sepp�nen
Matplotlib only subsets with Type 3 fonts as output. Type 42 is much harder to generate.
We could try generating glyph names when none are available -- anything guaranteed to be unique within the font would be fine. Since I don't run Windows, I need to somehow get access to the problematic font file for testing, though.
Cheers,
Mike
Jouni K. Sepp�nen wrote:
···
"Andrew Hawryluk" <HAWRYLA@...619...> writes:
Does it help if you set ps.fonttype and pdf.fonttype to 42 in
matplotlibrc?
Yes, that works very well, thanks! However, it now embeds the entire
font rather than a subset. This results in a PDF of 14.4 MB with this
font. I ran it through ghostscript to get a PDF of 24.2 kB with
subsetting, but I'm wondering if I can get subsetting of type 42 fonts
directly from matplotlib?
I'm afraid there's no support for that in the current version, except
probably in the Cairo backend (every time I try to compile pycairo I run
into trouble with some of the dependencies, but if you can get it to
work, it's a very advanced graphics library for producing all sorts of
formats).
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA