[R] fonts not rendering during plot

George Dietz george_dietz at brown.edu
Thu Apr 25 05:42:54 CEST 2013


I apologize for not going in to too much detail-I didn't want to confuse people with the gory details of what I'm trying to do (trying to make a portable R installation bundled in to a mac app, among other things).  I am on a mac, Mountain Lion. Anyhow, I figured out the problem was with the paths pango looks uses to search for font configuration files. I solved it by writing a script that sets these paths at run-time.

George

On Apr 24, 2013, at 7:45 PM, David Winsemius <dwinsemius at comcast.net> wrote:

> 
> On Apr 24, 2013, at 7:29 AM, George Dietz wrote:
> 
>> Hi,
>> 
>> I am having a problem where sometimes fonts for text in plots don't get rendered-the text just shows up as boxes. If I call R from a certain directory the problem goes away, otherwise the fonts don't render (but plots get made). In both cases, my PANGO_RC and FONTCONFIG_FILE do not change…
> 
> Offering the OS details is more courteous than omitting them. (And there are several other courtesies expected of you listed in the Fine Posting Guide.) If this happens to be on a Mac, it may mean your screen fonts are corrupt. You can see their names with: names(quartzFonts()).  Using Fontbook.app will sometimes reveal that there are two copies of one of the screen graphics fonts and that one of them displays as blanks. These should be deleted with Fontbook.app.
> 
> -- 
> 
> David Winsemius
> Alameda, CA, USA
> 



More information about the R-help mailing list