Re: [matplotlib-devel] Embedded fonts in SVG

2007-07-10 Thread Michael Droettboom
Actually, it just occurred to me that you could use 'defs' and 'use' to define characters as paths and reuse them. And that's something that works today in virtually any SVG renderer. It totally blitzes the logical representation of the text (i.e. searching and copying as text etc.), but if it

Re: [matplotlib-devel] TTF subsetting in PDF

2007-07-10 Thread Michael Droettboom
Jouni K. Seppänen wrote: > "John Hunter" <[EMAIL PROTECTED]> writes: > > >> On 7/10/07, Michael Droettboom <[EMAIL PROTECTED]> wrote: >> > I'm seeing a bug on OS X, whose file system is by default > case-preserving but not case-sensitive: > > 458 -> fontdictObject = self.em

Re: [matplotlib-devel] TTF subsetting in PDF

2007-07-10 Thread Jouni K . Seppänen
"John Hunter" <[EMAIL PROTECTED]> writes: > On 7/10/07, Michael Droettboom <[EMAIL PROTECTED]> wrote: > >> The comparison is just over the PDF files, old way (Truetype embedding) >> vs. new way (Type 3 subsetting). > > This must be dominated by some weird outliers. I'm seeing great > results with

Re: [matplotlib-devel] TTF subsetting in PDF

2007-07-10 Thread Eric Firing
Michael Droettboom wrote: > Eric Firing wrote: >> I second that! I greatly appreciate your contributions, first in >> chasing down memory leaks and now in reducing file sizes by embedding >> fonts. > It's been fun. Mike, Good--what's next? You're ready for more fun, I hope. If you are looki

Re: [matplotlib-devel] Cannot access svn

2007-07-10 Thread Jouni K . Seppänen
Darren Dale <[EMAIL PROTECTED]> writes: >> > svn: PROPFIND of '/svnroot/matplotlib/trunk/matplotlib': Could not >> > resolve hostname `svn.sourceforge.net': Host not found >> >> I've been experiencing this since yesterday, and was waiting to see if >> it clears up by today... > > I ended up checki

Re: [matplotlib-devel] TTF subsetting in PDF

2007-07-10 Thread Michael Droettboom
Eric Firing wrote: > I second that! I greatly appreciate your contributions, first in > chasing down memory leaks and now in reducing file sizes by embedding > fonts. It's been fun. Now, Eric, I'm just waiting for you to tell me how this latest batch reveals another bug on Ubuntu ;) (with all

Re: [matplotlib-devel] TTF subsetting in PDF

2007-07-10 Thread Eric Firing
John Hunter wrote: > On 7/10/07, Michael Droettboom <[EMAIL PROTECTED]> wrote: > >> The comparison is just over the PDF files, old way (Truetype embedding) >> vs. new way (Type 3 subsetting). [...] > > In any case, excellent work! > > JDH > Mike, I second that! I greatly appreciate your cont

Re: [matplotlib-devel] Embedded fonts in SVG

2007-07-10 Thread Carl Worth
On Tue, 10 Jul 2007 13:43:49 -0400, Michael Droettboom wrote: > "major SVG renderers" support seems to be the issue at first glance. > None of the big open source options -- Firefox, inkscape, rsvg -- seem > to support it. That's my understanding as well. > Until there's something readily availab

Re: [matplotlib-devel] Embedded fonts in SVG

2007-07-10 Thread Michael Droettboom
John Hunter wrote: > On 7/10/07, Michael Droettboom <[EMAIL PROTECTED]> wrote: >> Has anyone looked into embedding fonts in SVG files? > > It's definitely come up before. Paul Barret may have had a look at > it. I'm not sure why we ended up not doing it. You can search the > archives if you are

Re: [matplotlib-devel] Embedded fonts in SVG

2007-07-10 Thread John Hunter
On 7/10/07, Michael Droettboom <[EMAIL PROTECTED]> wrote: > Has anyone looked into embedding fonts in SVG files? That might > alleviate some of the installation problems that were recently mentioned > on the matplotlib-users list. > > The relevant spec: > > http://www.w3.org/TR/SVG11/fonts.html >

Re: [matplotlib-devel] TTF subsetting in PDF

2007-07-10 Thread John Hunter
On 7/10/07, Michael Droettboom <[EMAIL PROTECTED]> wrote: > The comparison is just over the PDF files, old way (Truetype embedding) > vs. new way (Type 3 subsetting). > The ratios are different because I chose to highlight the examples that > are quite "texty". That wasn't a deliberate attempt to

[matplotlib-devel] Embedded fonts in SVG

2007-07-10 Thread Michael Droettboom
Has anyone looked into embedding fonts in SVG files? That might alleviate some of the installation problems that were recently mentioned on the matplotlib-users list. The relevant spec: http://www.w3.org/TR/SVG11/fonts.html If there are no plans under way, I may have a crack at it, since I'm

Re: [matplotlib-devel] TTF subsetting in PDF

2007-07-10 Thread Michael Droettboom
John Hunter wrote: > On 7/10/07, Michael Droettboom <[EMAIL PROTECTED]> wrote: >> >> fonts_demo_kw.py: 201744 -> 37326 >> mathtext_demo.py: 129306 -> 26179 >> unicode_demo.py: 45303 -> 20084 >> over all demos in backend_driver.py: 5856001 -> 3390460 > > When you say "over all demos" do you mean jus

Re: [matplotlib-devel] Cannot access svn

2007-07-10 Thread Nils Wagner
John Hunter wrote: > On 7/10/07, Darren Dale <[EMAIL PROTECTED]> wrote: > > >> I ended up checking out the entire repository again. It seems that the >> working >> address is now matplotlib.svn.sourceforge.net/svn/matplotlib, instead of >> svn.sourceforge.net/svn/matplotlib. >> > > > Nothi

Re: [matplotlib-devel] TTF subsetting in PDF

2007-07-10 Thread John Hunter
On 7/10/07, Michael Droettboom <[EMAIL PROTECTED]> wrote: > I just committed changes that add TTF subsetting to the PDF backend. It > is completely analogous to the font subsetting recently added to the PS > backend. > > I have added a configuration option, pdf.fonttype, to choose either > "Type3"

[matplotlib-devel] TTF subsetting in PDF

2007-07-10 Thread Michael Droettboom
I just committed changes that add TTF subsetting to the PDF backend. It is completely analogous to the font subsetting recently added to the PS backend. I have added a configuration option, pdf.fonttype, to choose either "Type3" or "Truetype" font output. This may be removed in the future on

Re: [matplotlib-devel] Cannot access svn

2007-07-10 Thread John Hunter
On 7/10/07, Darren Dale <[EMAIL PROTECTED]> wrote: > I ended up checking out the entire repository again. It seems that the working > address is now matplotlib.svn.sourceforge.net/svn/matplotlib, instead of > svn.sourceforge.net/svn/matplotlib. Nothing is working for me -bash-2.05b$ cd python/s

Re: [matplotlib-devel] Cannot access svn

2007-07-10 Thread Darren Dale
On Tuesday 10 July 2007 10:05:40 am John Hunter wrote: > On 7/10/07, Nils Wagner <[EMAIL PROTECTED]> wrote: > > svn: PROPFIND request failed on '/svnroot/matplotlib/trunk/matplotlib' > > svn: PROPFIND of '/svnroot/matplotlib/trunk/matplotlib': Could not > > resolve hostname `svn.sourceforge.net': H

Re: [matplotlib-devel] Cannot access svn

2007-07-10 Thread John Hunter
On 7/10/07, Nils Wagner <[EMAIL PROTECTED]> wrote: > svn: PROPFIND request failed on '/svnroot/matplotlib/trunk/matplotlib' > svn: PROPFIND of '/svnroot/matplotlib/trunk/matplotlib': Could not > resolve hostname `svn.sourceforge.net': Host not found > (https://svn.sourceforge.net) > > Is this a tem

[matplotlib-devel] Cannot access svn

2007-07-10 Thread Nils Wagner
svn: PROPFIND request failed on '/svnroot/matplotlib/trunk/matplotlib' svn: PROPFIND of '/svnroot/matplotlib/trunk/matplotlib': Could not resolve hostname `svn.sourceforge.net': Host not found (https://svn.sourceforge.net) Is this a temporary problem ? Nils -

Re: [matplotlib-devel] TTF font subsetting for PS backend

2007-07-10 Thread Darren Dale
On Tuesday 10 July 2007 07:51:25 am Michael Droettboom wrote: > I was able to duplicate your bug on my Ubuntu Feisty box. > > There is a bug against evince filed here: > > http://bugzilla.gnome.org/show_bug.cgi?id=303365 > > It appears that evince always renders an entire page at a time. There > a

Re: [matplotlib-devel] TTF font subsetting for PS backend

2007-07-10 Thread Michael Droettboom
I was able to duplicate your bug on my Ubuntu Feisty box. There is a bug against evince filed here: http://bugzilla.gnome.org/show_bug.cgi?id=303365 It appears that evince always renders an entire page at a time. There are some reports that are very similar to yours -- but on the other hand,

Re: [matplotlib-devel] Agg large-dataset optimization

2007-07-10 Thread Eric Firing
[EMAIL PROTECTED] wrote: > John (and others), > > I've made a quick change to the svg backend to cull the data, see attached > patch. I haven't tested it extensively, but it seems OK. It culls both > lines and polygons out of svg output. Allan, Looks good, and the basic idea should be generally