[R] X11 fonts problems

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Feb 15 14:56:47 CET 2012


On Wed, 15 Feb 2012, carol white wrote:

> Hello,
> I installed R--2-1.14.1.pkg on mac OS v 10.7.2 and when I wanted to invoke hist, I got the following error msg:
>
> Error in title(main = main, sub = sub, xlab = xlab, ylab = ylab, ...) : 
>   could not find any X11 fonts
> Check that the Font Path is correct.
> In addition: Warning messages:
> 1: In function (display = "", width, height, pointsize, gamma, bg,  :
>   locale not supported by Xlib: some X ops will operate in C locale
> 2: In function (display = "", width, height, pointsize, gamma, bg,  :
>   X cannot set locale modifiers
>
>
> Should I have installed any package or should I install any thing 
> else for X11 like free type-2.4.8? I have found some directories 
> related to fonts but apparently, are useless for this purpose? I 
> installed devpack4-darwin8-bin4 but didn't help.
>
>> sessionInfo()
> R version 2.14.1 (2011-12-22)
> Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
>
> locale:
> [1] C/UTF-8/C/C/C/C

We've been here before on r-sig-mac (which is the best place to 
discuss Mac-specific issues): UTF-8 is not a valid locale name.  To 
use X11 you need to set a valid locale, e.g. "en_US.UTF-8".

What we never found out last time was how this got set to the invalid 
value.

In any case the reason is clear: X11 looks for fonts encoded for a 
given locale, and has no fonts in that locale.

>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base     
>
>
> Thanks in advance
>
> Carol
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
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-help mailing list