Skip to content
Prev 3682 / 63421 Next

xfig device (was [Rd] Re: [R] MetaPost device?)

On Tue, Apr 11, 2000 at 07:25:50AM +0100, Prof Brian D Ripley wrote:
Hmm, OK xfig only supports left, right and centre, and now I look closer
at the drivers I see that there is a slot for a string width function.
I also notice the PS driver supports the string width function by simply
summing up the character widths from the afm (see the PostScriptStringWidth
function in devPS.c).

So I agree, make the assumption that all xfig fonts are postscript fonts and
share code with the PS driver for string width.

There should be a fancier implementation of the string width calculation
inside the GNU ghostscript source somewhere. Since that is GPL code it
should be OK to paste into R (adapting it should not be too difficult),
this would include all kerning stuff and would guarantee compatability
between the R driver and the printout (if I remember rightly, gs is built
from lots and lots of little source files, each one implementing one function).
Yup, I'm with you now.

	- Tel
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Message-ID: <20000411172144.A22534@ftoomsh.progsoc.uts.edu.au>
In-Reply-To: <Pine.GSO.4.05.10004110718120.4502-100000@auk.stats>; from ripley@stats.ox.ac.uk on Tue, Apr 11, 2000 at 07:25:50AM +0100