font path isn't correct set either in R or X [Edgy]

Bug #63206 reported by andbelo
4
Affects Status Importance Assigned to Milestone
r-base (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: r-base

The R package (r-base and r-core) is unable to plot graphs when the function plot() is used. The apparent cause is that X11 font path is not correct set either when compiling R or it changed from the previous version of X to the current one.

As a observation that can be helpful. I used R in Dapper (compiled by myself) and it worked fine in X but showed the same error when using Xgl.

To reproduce the error just start R and try to use the plot() function.

______________________________________________________

[andbelo@laptop ~]$ R

R : Copyright 2006, The R Foundation for Statistical Computing
Version 2.3.1 (2006-06-01)
ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> plot(2,3)
Error in X11() : could not find any X11 fonts
Check that the Font Path is correct.
>

Revision history for this message
Frank (frank-schaeffer) wrote :

Also here, with same R-Version as above
Trying to execute demo(), plot(x,y) tends to result in an error message:
Error in X11() : kann keine X11 Schriften finden; Bitte Fontpath überprüfen

Error in X11(): could not find any X11 fonts; Check that the Font Path is correct

Same procedure with R --gui=tk or gnome. To reproduce try to start R and execute any plot command

Any help is highly welcome

Revision history for this message
andbelo (andbelo) wrote :

Found a workaround:

The problem is not with R. It is with font path settings for X. The FontPath in /etc/X11/xorg.cong is not pointing to the correct directories. I changed the lines (following a lead from here: http://www.ubuntuforums.org/showthread.php?t=268024):

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

to these:

 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"

and it started working. However, a proper fix should be done in order to set the font path correctly.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.