[R-SIG-Mac] quartz() cannot find fonts

Peter Dunn pdunn2 at usc.edu.au
Thu Dec 17 06:17:32 CET 2009


Thanks Byron.

Is there a way to ensure this happens automatically on the Mac?  (As the example code shows, I didn't explicitly request any particular font.)

The help for quartz() states Helvetic *is* the default font.

This partially works, but it looks like "Arial" is still, somewhere and somehow, being beckoned.  I don't know how R on the Mac works to know what's going on:

> quartz(family="Helvetica")
> hist(rnorm(100))
There were 19 warnings (use warnings() to see them)
> warnings()
Warning messages:
1: In title(main = main, sub = sub, xlab = xlab, ylab = ylab,  ... :
  no font could be found for family "Arial"
2: In title(main = main, sub = sub, xlab = xlab, ylab = ylab,  ... :
  no font could be found for family "Arial"
3: In title(main = main, sub = sub, xlab = xlab, ylab = ylab,  ... :
  no font could be found for family "Arial"
4: In title(main = main, sub = sub, xlab = xlab, ylab = ylab,  ... :
  no font could be found for family "Arial"
5: In title(main = main, sub = sub, xlab = xlab, ylab = ylab,  ... :
  no font could be found for family "Arial"
6: In axis(1, ...) : no font could be found for family "Arial"
7: In axis(1, ...) : no font could be found for family "Arial"
8: In axis(1, ...) : no font could be found for family "Arial"
9: In axis(1, ...) : no font could be found for family "Arial"
10: In axis(1, ...) : no font could be found for family "Arial"
11: In axis(1, ...) : no font could be found for family "Arial"
12: In axis(1, ...) : no font could be found for family "Arial"
13: In axis(2, ...) : no font could be found for family "Arial"
14: In axis(2, ...) : no font could be found for family "Arial"
15: In axis(2, ...) : no font could be found for family "Arial"
16: In axis(2, ...) : no font could be found for family "Arial"
17: In axis(2, ...) : no font could be found for family "Arial"
18: In axis(2, ...) : no font could be found for family "Arial"
19: In axis(2, ...) : no font could be found for family "Arial"
> 



I appreciate the advice.



P.


Peter Dunn: Biostatistician (Room T4.12)
School of Health and Sport Science
Faculty of Science, Health and Education  ML-34
University of the Sunshine Coast, Locked Bag 4
Maroochydore DC Qld 4558
 
Tel: +61 7 5456 5085
Fax: +61 7 5430 2896
Email: pdunn2 at usc.edu.au
www.usc.edu.au

>>> On 17/12/2009 at 03:11 PM, in message
<94D68D9B-A844-455A-A82C-D46BBC5CACE5 at gmail.com>, Byron Ellis
<byron.ellis at gmail.com> wrote: 
> Arial is a Microsoft font, try switching to Helvetica (Arial is a  
> clone of this font)
> 
> 
> 
> On Dec 16, 2009, at 8:58 PM, "Peter Dunn" <pdunn2 at usc.edu.au> wrote:
> 
>> Hi all
>>
>> I am a long-time R user, who has just recently traded in my old  
>> linux box for a Mac.  That is, I am reasonably familiar with R, but  
>> not (yet) with Macs.
>>
>> I am having this problem when producing graphics with quartz() (but  
>> not x11()):
>>
>>> quartz()
>>> hist(rnorm(100))
>> There were 23 warnings (use warnings() to see them)
>>> warnings()
>> Warning messages:
>> 1: In title(main = main, sub = sub, xlab = xlab, ylab = ylab,  ... :
>>  no font could be found for family "Arial"
>> 2: In title(main = main, sub = sub, xlab = xlab, ylab = ylab,  ... :
>>  no font could be found for family "Arial"
>> 3: In title(main = main, sub = sub, xlab = xlab, ylab = ylab,  ... :
>>  no font could be found for family "Arial"
>> 4: In title(main = main, sub = sub, xlab = xlab, ylab = ylab,  ... :
>>  no font could be found for family "Arial"
>> 5: In title(main = main, sub = sub, xlab = xlab, ylab = ylab,  ... :
>>  no font could be found for family "Arial"
>> 6: In axis(1, ...) : no font could be found for family "Arial"
>> 7: In axis(1, ...) : no font could be found for family "Arial"
>> 8: In axis(1, ...) : no font could be found for family "Arial"
>> 9: In axis(1, ...) : no font could be found for family "Arial"
>> 10: In axis(1, ...) : no font could be found for family "Arial"
>> 11: In axis(1, ...) : no font could be found for family "Arial"
>> 12: In axis(1, ...) : no font could be found for family "Arial"
>> 13: In axis(1, ...) : no font could be found for family "Arial"
>> 14: In axis(1, ...) : no font could be found for family "Arial"
>> 15: In axis(2, ...) : no font could be found for family "Arial"
>> 16: In axis(2, ...) : no font could be found for family "Arial"
>> 17: In axis(2, ...) : no font could be found for family "Arial"
>> 18: In axis(2, ...) : no font could be found for family "Arial"
>> 19: In axis(2, ...) : no font could be found for family "Arial"
>> 20: In axis(2, ...) : no font could be found for family "Arial"
>> 21: In axis(2, ...) : no font could be found for family "Arial"
>> 22: In axis(2, ...) : no font could be found for family "Arial"
>> 23: In axis(2, ...) : no font could be found for family "Arial"
>>> sessionInfo()
>> R version 2.10.1 (2009-12-14)
>> x86_64-apple-darwin9.8.0
>>
>> locale:
>> [1] en_AU.UTF-8/en_AU.UTF-8/C/C/en_AU.UTF-8/en_AU.UTF-8
>>
>> attached base packages:
>> [1] stats     graphics  grDevices utils     datasets  methods   base
>>
>>
>> This problem has been reported before on the list, but has not (as  
>> far as I can see) been resolved.
>>
>> Any advice much appreciated.
>>
>> Thanks as always.
>>
>> P.
>>
>>
>>
>>
>> Peter Dunn: Biostatistician (Room T4.12)
>> School of Health and Sport Science
>> Faculty of Science, Health and Education  ML-34
>> University of the Sunshine Coast, Locked Bag 4
>> Maroochydore DC Qld 4558
>>
>> Tel: +61 7 5456 5085
>> Fax: +61 7 5430 2896
>> Email: pdunn2 at usc.edu.au
>> www.usc.edu.au
>>
>> CRICOS Provider Number: 01595D
>>
>> This communication is intended for the recipient only and should not  
>> be forwarded, distributed or otherwise read by others without  
>> express permission. The views expressed in this email are not  
>> necessarily those of the University of the Sunshine Coast.
>>
>> -- 
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>>
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac


CRICOS Provider Number: 01595D

This communication is intended for the recipient only and should not be forwarded, distributed or otherwise read by others without express permission. The views expressed in this email are not necessarily those of the University of the Sunshine Coast.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the R-SIG-Mac mailing list