[R] Fedora 10 KDE plasma font rendering issue

Martyn Plummer plummer at iarc.fr
Wed Apr 1 12:49:50 CEST 2009


On Tue, 2009-03-31 at 18:36 -0700, dfermin wrote:
> Nope. I checked this. Both those fonts are installed.

Well it is some kind of font rendering problem. The default device is
the Cairo X11 device, which uses the Pango layout engine for font
rendering. 

If you set the environment variable FC_DEBUG to 1 before launching your
R session, you will get some debugging information. It is very verbose,
but we only need to see this bit:

First font Pattern has 15 elts (size 15)
	family: "Nimbus Sans L"(w)
	style: "Regular"(w)
	slant: 0(i)(w)
	weight: 80(i)(w)
	width: 100(i)(w)
	foundry: "urw"(w)
	file: "/usr/share/fonts/default/Type1/n019003l.pfb"(w)
	index: 0(i)(w)
	outline: FcTrue(w)
	scalable: FcTrue(w)



> 
> Martyn Plummer-2 wrote:
> > 
> > Quoting dfermin <dfermin at umich.edu>:
> >>
> >> Hello.
> >>
> >> I've got a new workstation running Fedora 10 linux and I use the KDE 4.2
> >> desktop which uses some kind of new desktop environment called 'plasma'.
> >>
> >> If I start up R and generate a plot (for example: hist(rnorm(10000,
> >> mean=0,
> >> sd=1), breaks=100) ). The plot appears but all text (the x/y axes, title,
> >> etc..) is replaced by a square box. No font is rendered at all.
> >>
> >> Has anyone else got this problem? If so do you have a work around or a
> >> solution?
> >>
> >> I'm using R version 2.8.1 installed from the Fedora 10 repositories if
> >> that
> >> helps.
> >>
> >> Thanks in advance.
> > 
> > It sounds like you are missing some fonts. Check that the "urw-fonts" and
> > "liberation-fonts" RPMs are installed.


-----------------------------------------------------------------------
This message and its attachments are strictly confidenti...{{dropped:8}}




More information about the R-help mailing list