Hi

I don't have a Mac, but looking at the source, it seems that "Times-Roman" is the default "serif" family, so something like ...

quartz(family="serif")

... might get you what you want(?)

Paul


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,

quartz(family="Times-Roman"),

and also this,

quartz.options(family="Times-Roman").

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@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
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
Auckland
New Zealand
64 9 3737599 x85392
p...@stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to