[Rd] Re: [R] MetaPost device?
Sat, 8 Apr 2000 13:38:41 +1200
On Fri, Apr 07, 2000 at 10:53:35AM -0400, Thomas J Vogels wrote:
> Ross Ihaka <firstname.lastname@example.org> writes:
> > On Thu, Apr 06, 2000 at 06:29:08PM +0200, Guido Masarotto wrote:
> > > The problem with MetaPost (if I understand well) is how
> > > you do get metric information about the fonts.
> > The metric info problem is what stoped me writing the XFig driver.
> > Which metrics do you use for Times-Roman for example -- the X11 metrics
> > or the PostScript metrics?
> I'll be sorry for this naive question, but if you limited the fonts
> in the FIG output to LaTeX fonts, couldn't you use the LaTeX font
> information? (This doesn't solve the problem that what you see in an
> X11 device is not what you get with dev.print which may or may not be
> a good thing.)
This is supposing that you can get get access to it. I certainly don't
know enough about TeX to be able to parse tfm files. If code existed to
compute the dimensions of strings then we'd be away.
Another problem the text output by TeX can be rather richly structured
-- kerning and glue come to mind. I think a general solution might
require either writing a version of the TeX layout code for R, or running
TeX to compute metric information whenever a string is placed in a plot
(hmmmm actually this last might just be workable - if a little slow).
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: email@example.com