Re: [Matplotlib-users] embedding subset of fonts when saving to pdf

2011-05-30 Thread Simon Jesenko
Thank you for the info. I added the issue to the github for now. I will inspect the source whether there is an easy way to add subsetting of fonts for usetex=True case as well. Simon On 05/27/2011 05:02 PM, Michael Droettboom wrote: > Ah, yes. That is all true. I'm not sure what options ther

Re: [Matplotlib-users] embedding subset of fonts when saving to pdf

2011-05-27 Thread Michael Droettboom
Ah, yes. That is all true. I'm not sure what options there may be in that case. Mike On 05/27/2011 10:56 AM, Simon Jesenko wrote: > Setting 'pdf.fonttype'=3 had no effect, embedded fonts are of fonttype=1 > nonetheless. I guess that pdf.fonttype parameter is used only when > matplotlib uses it

Re: [Matplotlib-users] embedding subset of fonts when saving to pdf

2011-05-27 Thread Simon Jesenko
Setting 'pdf.fonttype'=3 had no effect, embedded fonts are of fonttype=1 nonetheless. I guess that pdf.fonttype parameter is used only when matplotlib uses it's own engine to render latex, and not when text.usetex=true is used. Cairo backend is not support when text.usetex=true (only Agg, pdf a

Re: [Matplotlib-users] embedding subset of fonts when saving to pdf

2011-05-27 Thread Michael Droettboom
Have you tried setting the rcParams "pdf.fonttype" to 3? That should subset the fonts. Also, the Cairo backend supports font subsetting. Mike On 05/27/2011 07:00 AM, Simon Jesenko wrote: > Hi, > > I have a problem with large file-sizes of plots saved to pdf, when using > rcParams['text.usetex'

[Matplotlib-users] embedding subset of fonts when saving to pdf

2011-05-27 Thread Simon Jesenko
Hi, I have a problem with large file-sizes of plots saved to pdf, when using rcParams['text.usetex']=True Files are very large (~150kb for simple line plot with some mathematical latex expressions) as all fonts are fully embedded into pdf. When resulting pdf is postprocessed (e.g. as is http:/