Skip to content

plotmath problems with X11 fonts (Redhat 9)

4 messages · Brian Ripley, Martin Maechler

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

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: x11-plotmath-sum.png
Type: image/png
Size: 9775 bytes
Desc: not available
Url : https://www.stat.math.ethz.ch/pipermail/r-devel/attachments/20031114/51ae1696/x11-plotmath-sum.png
#
On Fri, 14 Nov 2003, Martin Maechler wrote:

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

It tries

"-*-symbol-*-*-*-*-%d-*-*-*-*-*-*-*"

What does

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

give on your system?  I have

-adobe-symbol-medium-r-normal--10-100-75-75-p-61-adobe-fontspecific
-adobe-symbol-medium-r-normal--11-80-100-100-p-61-adobe-fontspecific
-adobe-symbol-medium-r-normal--12-120-75-75-p-74-adobe-fontspecific
-adobe-symbol-medium-r-normal--14-100-100-100-p-85-adobe-fontspecific
-adobe-symbol-medium-r-normal--14-140-75-75-p-85-adobe-fontspecific
-adobe-symbol-medium-r-normal--17-120-100-100-p-95-adobe-fontspecific
-adobe-symbol-medium-r-normal--18-180-75-75-p-107-adobe-fontspecific
-adobe-symbol-medium-r-normal--20-140-100-100-p-107-adobe-fontspecific
-adobe-symbol-medium-r-normal--24-240-75-75-p-142-adobe-fontspecific
-adobe-symbol-medium-r-normal--25-180-100-100-p-142-adobe-fontspecific
-adobe-symbol-medium-r-normal--34-240-100-100-p-191-adobe-fontspecific
-adobe-symbol-medium-r-normal--8-80-75-75-p-51-adobe-fontspecific
-urw-symbol-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
-urw-symbol-medium-r-normal--17-120-100-100-p-0-adobe-fontspecific

I presume we should have

"-*-symbol-*-*-*-*-%d-*-*-*-*-*-adobe-*"

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 
whatever.
#

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

    BDR> You mean the desired ones?  (Presumably they are proper.)
yes
    BDR> Yes. It tries

    BDR> "-*-symbol-*-*-*-*-%d-*-*-*-*-*-*-*"

    BDR> What does

    BDR> xlsfonts -fn "-*-symbol-*-*-*-*-*-*-*-*-*-*-*-*"

    BDR> give on your system?  I have

    BDR> -adobe-symbol-medium-r-normal--10-100-75-75-p-61-adobe-fontspecific
    BDR> -adobe-symbol-medium-r-normal--11-80-100-100-p-61-adobe-fontspecific
    BDR> -adobe-symbol-medium-r-normal--12-120-75-75-p-74-adobe-fontspecific
    BDR> -adobe-symbol-medium-r-normal--14-100-100-100-p-85-adobe-fontspecific
    BDR> -adobe-symbol-medium-r-normal--14-140-75-75-p-85-adobe-fontspecific
    BDR> -adobe-symbol-medium-r-normal--17-120-100-100-p-95-adobe-fontspecific
    BDR> -adobe-symbol-medium-r-normal--18-180-75-75-p-107-adobe-fontspecific
    BDR> -adobe-symbol-medium-r-normal--20-140-100-100-p-107-adobe-fontspecific
    BDR> -adobe-symbol-medium-r-normal--24-240-75-75-p-142-adobe-fontspecific
    BDR> -adobe-symbol-medium-r-normal--25-180-100-100-p-142-adobe-fontspecific
    BDR> -adobe-symbol-medium-r-normal--34-240-100-100-p-191-adobe-fontspecific
    BDR> -adobe-symbol-medium-r-normal--8-80-75-75-p-51-adobe-fontspecific
    BDR> -urw-symbol-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
    BDR> -urw-symbol-medium-r-normal--17-120-100-100-p-0-adobe-fontspecific

    BDR> I presume we should have

    BDR> "-*-symbol-*-*-*-*-%d-*-*-*-*-*-adobe-*"

    BDR> but your listing will tell us the problem.

Hmm, its beginning is identical to yours, and then goes on :

-adobe-symbol-medium-r-normal--10-100-75-75-p-61-adobe-fontspecific
-adobe-symbol-medium-r-normal--11-80-100-100-p-61-adobe-fontspecific
-adobe-symbol-medium-r-normal--12-120-75-75-p-74-adobe-fontspecific
-adobe-symbol-medium-r-normal--14-100-100-100-p-85-adobe-fontspecific
-adobe-symbol-medium-r-normal--14-140-75-75-p-85-adobe-fontspecific
-adobe-symbol-medium-r-normal--17-120-100-100-p-95-adobe-fontspecific
-adobe-symbol-medium-r-normal--18-180-75-75-p-107-adobe-fontspecific
-adobe-symbol-medium-r-normal--20-140-100-100-p-107-adobe-fontspecific
-adobe-symbol-medium-r-normal--24-240-75-75-p-142-adobe-fontspecific
-adobe-symbol-medium-r-normal--25-180-100-100-p-142-adobe-fontspecific
-adobe-symbol-medium-r-normal--34-240-100-100-p-191-adobe-fontspecific
-adobe-symbol-medium-r-normal--8-80-75-75-p-51-adobe-fontspecific
-urw-symbol-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
-urw-symbol-medium-r-normal--17-120-100-100-p-0-adobe-fontspecific
-zz_abiword-symbol-bold-i-normal--0-0-0-0-p-0-adobe-fontspecific
-zz_abiword-symbol-bold-i-normal--0-0-0-0-p-0-adobe-fontspecific
-zz_abiword-symbol-bold-i-normal--17-120-100-100-p-0-adobe-fontspecific
-zz_abiword-symbol-bold-i-normal--17-120-100-100-p-0-adobe-fontspecific
-zz_abiword-symbol-bold-r-normal--0-0-0-0-p-0-adobe-fontspecific
-zz_abiword-symbol-bold-r-normal--0-0-0-0-p-0-adobe-fontspecific
-zz_abiword-symbol-bold-r-normal--17-120-100-100-p-0-adobe-fontspecific
-zz_abiword-symbol-bold-r-normal--17-120-100-100-p-0-adobe-fontspecific
-zz_abiword-symbol-regular-i-normal--0-0-0-0-p-0-adobe-fontspecific
-zz_abiword-symbol-regular-i-normal--0-0-0-0-p-0-adobe-fontspecific
-zz_abiword-symbol-regular-i-normal--17-120-100-100-p-0-adobe-fontspecific
-zz_abiword-symbol-regular-i-normal--17-120-100-100-p-0-adobe-fontspecific
-zz_abiword-symbol-regular-r-normal--0-0-0-0-p-0-adobe-fontspecific
-zz_abiword-symbol-regular-r-normal--0-0-0-0-p-0-adobe-fontspecific
-zz_abiword-symbol-regular-r-normal--17-120-100-100-p-0-adobe-fontspecific
-zz_abiword-symbol-regular-r-normal--17-120-100-100-p-0-adobe-fontspecific

so, yes, I'll try to turn off the abiword fonts, but somehow
they shouldn't be the harm since they come after the other ones
(and they end in "....-adobe-*" as well!).


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

Yes, that control might become quite useful.
Martin
#
On Fri, 14 Nov 2003, Martin Maechler wrote:

            
But as they seem to be scalable fonts they may be used in preference to
mismatching fixed-szie ones. My expectation is that they are not in the
encoding they say they are.