[R-SIG-Mac] Cairo: Fontconfig error: Cannot load default config file

999 views
Skip to first unread message

Jeroen Ooms

unread,
Apr 15, 2014, 7:55:33 PM4/15/14
to mailman, r-sig-mac
Running on R 3.1 on my Mavericks laptop:

options(bitmapType = "cairo");
svg("cars.svg", width=11.69, height=8.27)
plot(cars)
dev.off()

Gives a message: Fontconfig error: Cannot load default config file.
The text in the svg seems heavily pixelated. The same happens when
using png().

IIRC, this did not happen on R 3.0, although I am now starting to
doubt this. Is there anything on my machine that I try to
update/reinstall to fix this?

_______________________________________________
R-SIG-Mac mailing list
R-SI...@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Murray Stokely

unread,
Apr 15, 2014, 10:03:07 PM4/15/14
to Jeroen Ooms, mailman, r-sig-mac
Can you try setting FC_DEBUG environment variable to see what fonts.conf
file it is loading, what fonts it tries to read, etc? The fontconfig
library will print useful output to stderr when the right env bars are set.

Murray (mobile)
[[alternative HTML version deleted]]

Simon Urbanek

unread,
Apr 16, 2014, 10:50:51 AM4/16/14
to Jeroen Ooms, mailman, r-sig-mac
Thanks, this was an issue in the fontconfig used by 3.1.0, now fixed. You will need to upgrade R and possibly packages that use fontconfig.

Cheers,
Simon

Yue Li

unread,
Apr 17, 2014, 9:56:48 PM4/17/14
to r-si...@r-project.org
Dear Simon,

I saw your post on this thread. I'm experiencing exactly the same issue right now and don't know how it is "now fixed". Could you please enlighten me on that?

Thanks much,
Yue

Simon Urbanek

unread,
Apr 17, 2014, 10:13:27 PM4/17/14
to Yue Li, r-si...@r-project.org

On Apr 17, 2014, at 9:56 PM, Yue Li <goril...@gmail.com> wrote:

> Dear Simon,
>
> I saw your post on this thread. I'm experiencing exactly the same issue right now and don't know how it is "now fixed". Could you please enlighten me on that?
>

Download and install the latest R 3.1.0 Patched from

http://r.research.att.com/

Cheers,
Simon

Yue Li

unread,
Apr 17, 2014, 10:20:58 PM4/17/14
to Simon Urbanek, r-si...@r-project.org
Fixed! Thanks a lot!

Jeroen Ooms

unread,
Apr 18, 2014, 4:22:26 PM4/18/14
to Simon Urbanek, mailman, r-sig-mac
I am also experiencing a performance regression for svg and png after
upgrading to R 3.1 on Linux. Could that be related to this problem, or
was this problem specific to OSX?

Simon Urbanek

unread,
Apr 18, 2014, 4:42:02 PM4/18/14
to Jeroen Ooms, mailman, r-sig-mac
On Apr 18, 2014, at 4:22 PM, Jeroen Ooms <jeroe...@stat.ucla.edu> wrote:

> I am also experiencing a performance regression for svg and png after
> upgrading to R 3.1 on Linux. Could that be related to this problem, or
> was this problem specific to OSX?
>

That was specific to the fontconfig binary linked into R for the binary distribution and the config files shipped with it - it had nothing to do with R itself and thus shouldn't really be relevant to other platforms.

Cheers,
Simon
Reply all
Reply to author
Forward
0 new messages