[Rd] plotmath problems with X11 fonts (Redhat 9)

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Nov 14 10:47:58 MET 2003

On Fri, 14 Nov 2003, Martin Maechler wrote:

> We've only switched from redhat 7.3 to 9 several weeks ago, and
> I found today, that the last three pages
> of
> 	demo(plotmath)
> uses quite wrong plot symbols, e.g  
> sum(....) gives (+) {+ in circle} instead of the Sigma-like
> summation --- but only in "text" not in title, i.e., probably a
> font problem.
> With postscript() {and hence dev.print() of x11()} all is fine.
> Hence it must be an X font server problem of some kind.
> Here is a reproducible example:
>  xsum <- expression(sum(x[i], i = 1, n))
>  plot(1.1, main=xsum, xlab=xsum, ylab=xsum)
>  text(1,1,xsum)
> which produces the graphic that I attach.
> If you can try this yourself _and_ if you see the same effect,
> could you tell me (or us) what OS / setup / ... you are using?
> Could R try better to get proper X11 fonts?

You mean the desired ones?  (Presumably they are proper.)  Yes.

It tries


What does

xlsfonts -fn "-*-symbol-*-*-*-*-*-*-*-*-*-*-*-*"

give on your system?  I have


I presume we should have


but your listing will tell us the problem.

BTW, I think we should be giving the user some control over this, to get
adobe in preference to urw or iso10646 in preference to iso8859, or 

Brian D. Ripley,                  ripley at 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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-devel mailing list