Skip to content

lattice (!under development!) font curiosity

6 messages · Peter Malewski, Brian Ripley, Martin Maechler +1 more

#
Perhaps this might be a font problem, it might be that my font dirs
are broken (but I don't think so, it is a standard potato inst.):
...displays German special characters false (as greek letters).

Curiously these work o.k.:
This isn't a really big problem (if it is one). 
Peter

Version:
 platform = i686-pc-linux-gnu
 arch = i686
 os = linux-gnu
 system = i686, linux-gnu
 status = 
 major = 1
 minor = 2.3
 year = 2001
 month = 04
 day = 26
 language = R

Search Path:
 .GlobalEnv, package:grid, package:lattice, package:ctest, Autoloads, package:base
#
On Wed, 6 Jun 2001, Peter Malewski wrote:

            
I am fairly sure it is. It works for me on Solaris 2.7 (all do).

  
    
#
On Wed, Jun 06, 2001 at 09:00:45PM +0100, Prof Brian D Ripley wrote:
I'll take a look.
Thanks
Peter
#

        
BDR> On Wed, 6 Jun 2001, Peter Malewski wrote:
>> Perhaps this might be a font problem, it might be that my font dirs

    BDR> I am fairly sure it is. It works for me on Solaris 2.7 (all do).

    >> are broken (but I don't think so, it is a standard potato inst.):
    >> 
    >> > xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=2))
    >> 
    >> ...displays German special characters false (as greek letters).
    >> 
    >> Curiously these work o.k.:
    >> 
    >> > xyplot(rnorm(10) ~ rnorm(10) ,main="?dsa") > xyplot(rnorm(10) ~
    >> rnorm(10) ,main=list("???dsa",cex=1)) > xyplot(rnorm(10) ~ rnorm(10)
    >> ,main=list("???dsa",cex=3)) > xyplot(rnorm(10) ~ rnorm(10)
    >> ,main=list("???dsa",cex=4)) > xyplot(rnorm(10) ~ rnorm(10)
    >> ,main=list("???dsa",cex=5)) > xyplot(rnorm(10) ~ rnorm(10)
    >> ,main=list("???dsa",cex=6)) > xyplot(rnorm(10) ~ rnorm(10)
    >> ,main=list("???dsa",cex=7)) > xyplot(rnorm(10) ~ rnorm(10)
    >> ,main=list("???dsa",cex=1.9)) > xyplot(rnorm(10) ~ rnorm(10)
    >> ,main=list("???dsa",cex=2.1))
    >> 
    >> This isn't a really big problem (if it is one).  Peter
    >> 
    >> Version: platform = i686-pc-linux-gnu arch = i686 os = linux-gnu
    >> system = i686, linux-gnu status = major = 1 minor = 2.3 year = 2001
    >> month = 04 day = 26 language = R
    >> 
    >> Search Path: .GlobalEnv, package:grid, package:lattice,
    >> package:ctest, Autoloads, package:base

Interesting.

I have similar but different problems.
Using a redhat 6.2 version about whose X-fonts paths I've been having big
doubts for a long time;  
Anyway, here is what I get
  {for lattice-started X11();  
   by the way, with postscript() I do get pretty nonsense ..}

require(lattice)

                                        #  Redhat 6.2 as for Martin M?chler:
xyplot(rnorm(10) ~ rnorm(10) ,main="?dsa") # ok
xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=1))# ok
xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=1.9))# Cyrillic "D|Sch|3|d|s|a"
xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=2)) #ok
xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=2.1))# Cyrillic
xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=3))# Cyrillic
xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=4))# Cyrillic
xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=4.99))#Cyrillic
xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=5))# __greek__ !!!!!
xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=5.05))# greek
xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=5.08))# greek
xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=5.099))# greek
xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=5.1))# Cyrillic again
xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=5.4))# Cyrillic again
xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=6))# Cyrillic again
xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=7))# Cyrillic

Martin Maechler <maechler at 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-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Martin Maechler wrote:

            
Use trellis.device():
 
 trellis.device("postscript")
 require(lattice)
 xyplot(rnorm(10) ~ rnorm(10) ,main=list("???dsa",cex=6))# Cyrillic
again
 dev.off()

Not really nonsense, but 2 pages of output, the first blank, the second
with the expected result on WinNT.

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Thu, Jun 07, 2001 at 08:57:49AM +0200, Martin Maechler wrote:
Perhaps you have forgotten that "grid.start"

postscript("/tmp/tmp.ps")
grid.start()
for(i in seq(0,10,.2))print.trellis(xyplot(rnorm(10) ~ rnorm(10) ,main=list(
                                                                    paste("???dsa\t",i),
                                                                    cex=i)))
dev.off()

then the output and all fonts are o.k. BTW: If you look at the ylabs
you see that the are centered at the plot region, not at the y-axis
(look at that one with cex=10).
That shows the superiority of debian ;-)...

Peter