[R] umlauts in a plot label in X11

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Thu Jun 13 16:17:56 CEST 2002

Florian Hars <hars at bik-gmbh.de> writes:

> After I have found out that I have to tell ess-mode in emacs to use an
> iso-latin<n> encoding scheme to communicate with the R subprocess,
> including umlauts in labels works, at least for writing to postscript.
> Only the X11-display still makes trouble: It uses a font that has some
> russian characters in the position of the umlauts in latin-1/9.
> Is there a way to tell R to use a font that fits to the current locale?

Not without recompiling. The font is basically defined by:

static char *fontname_R6 = "-adobe-helvetica-%s-%s-*-*-*-%d-*-*-*-*-*-*";

which you could fix by changing the last two "*" to 8859-1. However,
it would likely make our eastern colleagues unhappy to change it in
the distribution.

However, I and I suspect most others actually do get the 8859-1
encoded fonts, so the problem is with your system configuration.

What you could do is to arrange that the system finds the  8859-1
fonts before any other font. This is generally done by manipulating
the font path, or reconfiguring your font server.

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
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