Skip to content

Ubuntu Linux and X11

8 messages · Dirk Eddelbuettel, Yuelin Li, Oleg Sklyar +2 more

#
Hello,

i have a problem with creating histograms and plots under ubuntu linux.
After creating a vector "test" i want to make a histogram, but the following
error appears:
Error in X11() : could not find any X11 fonts
Check that the Font Path is correct.


Does anybody know this problem and a solution for this?

Thanks in advance,
Thomas
#
On Fri, Feb 16, 2007 at 09:53:39PM +0100, preuth at slf.ch wrote:
Hm, you didn't by chance built this yourself and thereby ignored the
BIG FAT warnings about x11 headers not being found ?   

Take a shortcut, install the (backported) Ubuntu packages from any
of the CRAN mirrors and then sit back and enjoy a nice hist() chart?

Dirk
#
If you are using edgy, try changing your FontPath settings in
/etc/X11/xorg.conf (mine listed below).

Reboot, and check to see there are no warnings about missing font
files in /var/log/Xorg.0.log.

Yuelin.



Section "Files"
        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/TTF"
        FontPath        "/usr/share/fonts/X11/OTF"
        FontPath        "/usr/share/fonts/X11/CID"
        FontPath        "/usr/share/fonts/X11/misc"
        # path to defoma fonts
        FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
On Fri, Feb 16, 2007 at 05:05:35PM -0600, Dirk Eddelbuettel wrote:
On Fri, Feb 16, 2007 at 09:53:39PM +0100, preuth at slf.ch wrote:
> i have a problem with creating histograms and plots under ubuntu linux.
   > After creating a vector "test" i want to make a histogram, but the following
   > error appears:
   > > hist (test)
   > Error in X11() : could not find any X11 fonts
   > Check that the Font Path is correct.
   > 
   > 
   > Does anybody know this problem and a solution for this?
   
   Hm, you didn't by chance built this yourself and thereby ignored the
   BIG FAT warnings about x11 headers not being found ?   
   
   Take a shortcut, install the (backported) Ubuntu packages from any
   of the CRAN mirrors and then sit back and enjoy a nice hist() chart?
   
   Dirk
   
   -- 
   Hell, there are no rules here - we're trying to accomplish something. 
                                                     -- Thomas A. Edison
   
   ______________________________________________
   R-help at 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.
   

 
     =====================================================================
     
     Please note that this e-mail and any files transmitted with it may be 
     privileged, confidential, and protected from disclosure under 
     applicable law. If the reader of this message is not the intended 
     recipient, or an employee or agent responsible for delivering this 
     message to the intended recipient, you are hereby notified that any 
     reading, dissemination, distribution, copying, or other use of this 
     communication or any of its attachments is strictly prohibited.  If 
     you have received this communication in error, please notify the 
     sender immediately by replying to this message and deleting this 
     message, any attachments, and all copies and backups from your 
     computer.
#
The problem occurs after updating from Dapper to Edgy. Dapper had font 
paths: /usr/share/X11/fonts and Edgy, to make the whole font system 
unified, moved X11 fonts to /usr/share/fonts/X11. Oleg
Yuelin Li wrote:

  
    
#
On 17 February 2007 at 11:23, Oleg Sklyar wrote:
| The problem occurs after updating from Dapper to Edgy. Dapper had font 
| paths: /usr/share/X11/fonts and Edgy, to make the whole font system 
| unified, moved X11 fonts to /usr/share/fonts/X11. Oleg

Good point.  But on my systems , the upgrade only affected Emacs which
'looked ugly' but still worked.  In other words, nothing "failed" after the
Dapper / Edgy upgrade. In particular, R -- which I use day-in and day-out on
Ubuntu at work -- worked just fine.  So I am still puzzled as to exactly how
one can manage to get R so scrippled on Ubuntu that graphics fail...

Dirk
#
After I updated to Edgy 'convert' of ImageMagick stopped working as well 
as its 'display' API command and also nedit stopped functioning -- all 
because of X11 fonts. And in fact, I now recall that I had for while no 
test in my R plots, I thought some R options were set wrongly. But 
correcting the paths in xorg.conf solved all these issues.

Oleg
#
Well after installing a debian package of the cran mirors and reconfiguning the
xorg.conf as yuelin li suggested the hist() and other graphical commands now
work properly.
Thanks to the fruitful contributions.
Thomas

Quoting Oleg Sklyar <osklyar at ebi.ac.uk>:
1 day later
#
Oleg Sklyar wrote:
I think I changed the font path in the X config file *and* added a 
symlink of /usr/share/X11/fonts to point to /usr/share/fonts/X11 in case 
any other package had this coded into it.

Barry