[R] Using system fonts in MacOS
p.murrell at auckland.ac.nz
Mon Aug 10 01:54:38 CEST 2009
I don't have a Mac, but looking at the source, it seems that
"Times-Roman" is the default "serif" family, so something like ...
... might get you what you want(?)
Daniel J Farrell wrote:
> Dear r-help,
> I am using R for MacOS (R 2.9.1 GUI 1.28 Tiger build 32-bit (5444))
> and would like to be able to use MacOS system fonts for the labels on
> my plots. So far I have been unsuccessful, to get this to work.
> Reading the help I found the quartz() and quartzFonts() commands. In
> an attempt to set the font family I have tried this,
> and also this,
> This opens a new Quartz window, but the labels are still in the
> default font, when I make a new plot.
> I have two question:
> (1) Why doesn't the quartz(family="Times-Roman") make the fonts change?
> (2) Is it possible to use any MacOS system fonts with R and the Quartz
> device window?
> Best regards,
> Daniel Farrell
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
64 9 3737599 x85392
paul at stat.auckland.ac.nz
More information about the R-help