libEMF (http://sourceforge.net/projects/libemf/) looks like it may be the solution to generating WMF/EMF files on Unix. It's a general-purpose (LGPL) library that implements the EMF API ... (I was originally going to write to the list to ask why small circles appear to be filled (in src/gnuwin32/graphapp/gdraw.c) by generating a series of rectangles rather than using some kind of "filled circle" primitive; someone I passed an R-generated EMF file to was worried that the profusion of little rectangle objects might give the printer hiccups ... I assume there is some good reason for this, probably now lost in the mists of time.) Ben Bolker -- 318 Carr Hall bolker@zoo.ufl.edu Zoology Department, University of Florida http://www.zoo.ufl.edu/bolker Box 118525 (ph) 352-392-5697 Gainesville, FL 32611-8525 (fax) 352-392-3704 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Fri, 29 Mar 2002, Ben Bolker wrote:> > libEMF (http://sourceforge.net/projects/libemf/) looks like it may be > the solution to generating WMF/EMF files on Unix. It's a general-purpose > (LGPL) library that implements the EMF API ... > > (I was originally going to write to the list to ask why small circles > appear to be filled (in src/gnuwin32/graphapp/gdraw.c) by generating a > series of rectangles rather than using some kind of "filled circle" > primitive; someone I passed an R-generated EMF file to was worried that > the profusion of little rectangle objects might give the printer hiccups > ... I assume there is some good reason for this, probably now lost in the > mists of time.)Such as the filled circle code in the Windows GDI does not work adequately? The name `fastfillrectangle' might give you a clue. Drawing filled circles through the Windows GDI is notoriously slow and buggy. -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Fri, 29 Mar 2002, Ben Bolker wrote:> > libEMF (http://sourceforge.net/projects/libemf/) looks like it may be > the solution to generating WMF/EMF files on Unix. It's a general-purpose > (LGPL) library that implements the EMF API ...Unfortunately it appears not to. (It says it implements a subset for use with gnuplot, but even then I don't see how it is enough.) The font metrics are always returned as false. I wondered how it was going to do this without the TrueType fonts in evidence .... R's graphics model depends pretty crucially on accurate font metrics, and text positioning is often the trickiest part of writing a graphics driver. -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._