[R-SIG-Mac] Quartz device, font family selection.

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Jan 8 18:44:28 CET 2009

On Thu, 8 Jan 2009, Charly wrote:

> Hi All & Happy new year !
> On 10.5.6, R version R 2.8.1, I'm trying to change the family font in
> quartz device using the "family" option.

You could try using family= on the plot commands, or (base graphics)
par(family="Courier") or gpar(fontfamily="Courier") in grid/lattice.
Those work for me.

Looks (from the code) like the default family is unimplemented.

> I found this old mail and I encoutered the same problem...
> Any idea ?
> Thanks in advance, Charles
>> I'm new to R. I'm using a Mac OS X 10.5.2 and R 2.7.0. I'm trying to
>> change the font family for a plot in a quartz device.
>> Simply passing the desired font by using the family argument works
>> with other devices, but not with quartz. For instance:
>> quartz(family="Monaco") or quartz(family="Courier") don't affect the
>> font family of the output.
>> However, both commands work fine on 2.6.2. Is this a bug?

(A different device from 2.6.2, and I recall an answer at the time.)

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-SIG-Mac mailing list