Hi there,

Here's something I found on the web ...

You'll probably have to log in as root in order to edit the xorg.conf file.

Hope this works for you.

- Mo

====================================
I edited /etc/X11/xorg.conf to change every instance of X11/fonts to
fonts/X11.

So now that section is

Section "Files"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/usr/share/fonts/X11/misc"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection


whereas the automatic configuration from my clean installation of Edgy was
Section "Files"
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
FontPath "/usr/share/fonts/X11/misc"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

The new configuration takes effect after rebooting.

========================================

On 4/9/07, fsando <fsando@fs-analyse.dk> wrote:
>
> Thanks anhnmncb
> I think the problem comes from the 'adobe' part of the font names - I
> 'solved' the problem by installing the newses Ubuntu 7.04 beta and now R
> reports the same font names without 'adobe'.
>
> anhnmncb@gmail.com wrote:
> > You haven't installed such xorg-fonts-75dpi fonts, which is the
> > default xorg's fonts.
> > I think maybe there are other better solutions like changing the default
> > fonts that r looks for, but I don't know how.
> > On Thu, Apr 05, 2007 at 01:55:53PM +0200, fsando wrote:
> >> I'm having this problem - and I have seen earlier post on the same
> >> problem - but the solutions either do not work for me or (being fairly
> >> new to linux) I do not understand the suggested actions.
> >>
> >> So here goes:
> >> Whenever I try to add a 'main' title R responds with an error that it
> >> can't find any X11 fonts.
> >>
> >> ### Very basic examples ###
> >> # 1. No error (a scatterplot x=1:10 and y=1:10):
> >> plot(1:10,1:10)
> >> # 2. No error (as above, but add a subtitle):
> >> plot(1:10,1:10,sub="subtitle")
> >> # 3a. Error (as above, but add a main title):
> >> plot(1:10,1:10,main="Main title")
> >> # 3b. Error (an equivalent way to produce the same):
> >> plot(1:10,1:10) # no error
> >> title(main="main") # error
> >>
> >> # produced error:
> >>  > plot(1:10,1:10,main="main")
> >> Error in title(...) : could not find any X11 fonts
> >> Check that the Font Path is correct.
> >>
> >> # output from sessionInfo()
> >>  > sessionInfo()
> >> Version 2.3.1 (2006-06-01)
> >> i486-pc-linux-gnu
> >>
> >> attached base packages:
> >> [1] "methods"   "stats"     "graphics"  "grDevices" "utils"
> "datasets"
> >> [7] "base"
> >>
> >> # I don't know if this is relevant but
> >> # from getOption("X11fonts")
> >>  > getOption('X11fonts')
> >> [1] "-adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*"
> >> [2] "-adobe-symbol-medium-r-*-*-%d-*-*-*-*-*-*-*"
> >>
> >> ### examples end ###
> >>
> >> The solution may obvious for somebody more familiar with Linux, but as
> >> stated, I'm new to Linux, so I would appreciate detailed explanations.
> >> Thanks
> >>
> >> ______________________________________________
> >> R-help@stat.math.ethz.ch 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.
> >
> >
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>

	[[alternative HTML version deleted]]

