[Rd] Problems using Computer Modern fonts
Brian D'Urso
durso@hussle.harvard.edu
Wed, 11 Jul 2001 09:49:31 -0400 (EDT)
On Wed, 11 Jul 2001, Martin Maechler wrote:
> >>>>> "Brian" == Brian D'Urso <durso@hussle.harvard.edu> writes:
>
> Brian> First, I have a quick bug fix to devPS.c: If an afm file could
> Brian> not be loaded, R gives a "cannot read afm file" which should be
> Brian> followed by the name of the file, but instead it is followed by
> Brian> garbage. Here is a patch to devPS.c that fixes it:
>
> 1150c1150
> < warning("cannot read afm file %s", buf);
> ---
> > warning("cannot read afm file %s", p);
> 1156c1156
> < warning("cannot read afm file %s", buf);
> ---
> > warning("cannot read afm file sy______.afm");
>
> Thank, I've committed these for R-patched
> (and, could you please use "diff -u" next time ?)
>
> ....
>
> Brian> I think there may be similar problems with the error messages of
> Brian> the xfig and pdf drivers, but I have not tried to understand
> Brian> them.
>
> I've looked for them in devPS.c and fixed them analogously.
> Can you tell me how to trigger them ??
>
They can be triggered by telling the postscript driver to load an afm file
that doesn't exist, e.g. :
postscript(family=c(doesnotexist1.afm, dne2.afm, dne3.afm, dne4.afm ), etc)
To trigger the problem with the pdf and xfig drivers, remove one of the
afm files from R's afm directory, e.g. hv______.afm and then use
family="Helvetica" in the pdf or xfig driver.
-- Brian D'Urso
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._