[R] lattice (!under development!) font curiosity

Martin Maechler maechler at stat.math.ethz.ch
Thu Jun 7 08:57:49 CEST 2001


>>>>> "BDR" == Prof Brian D Ripley <ripley at stats.ox.ac.uk> writes:

    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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list