Skip to content

X11 fonts problems

2 messages · carol white, Brian Ripley

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

attached base packages:
[1] stats ? ? graphics ?grDevices utils ? ? datasets ?methods ? base ? ??


Thanks in advance

Carol
#
On Wed, 15 Feb 2012, carol white wrote:

            
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.