[Rd] Problems using Computer Modern fonts

Martin Maechler Martin Maechler <maechler@stat.math.ethz.ch>
Wed, 11 Jul 2001 12:09:15 +0200


>>>>> "Brian" == Brian D'Urso <durso@hussle.harvard.edu> writes:

    Brian> I have completed some work which allows fairly complete use of Computer
    Brian> Modern fonts in R.

    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 ??


    Brian>	<........... (omitted) ..........>

I do not really feel competent to answer your general question about the
usefulness of CM fonts via postscript() graphics.

In principle, I think it's a nice idea, since (La)TeX's default CM fonts
are still used quite a bit, and liked by many, and hence it would be quite 
neat to have the graphics using the same fonts.

As for how to `submit' your changes (*when* there is agreement that they
 are wanted): 
Consider putting up your code as *.tar.gz for FTP (or HTTP) and just
forward the URL to this list. 


Martin Maechler <maechler@stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO D10	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._