[R-SIG-Mac] quartz bug?

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Oct 16 23:41:47 CEST 2008


pdf() is not involved when you save from a quartz() device.  There 
certainly is a difference, a completely different R graphics device 
involving MacOS system calls is used by quartz().

On Thu, 16 Oct 2008, David Airey wrote:

>> I'm having problems printing a PDF via LaTeX that was created in R for OS X 
>> (latest versions). The package that created the files was akima; that's 
>> probably irrelevant. I can't print the PDFs from Preview when they are in a 
>> LaTeX generated PDF, although I can print them in their original form. The 
>> files are temporarily at
>> 
>> http://public.me.com/dairey
>> 
>> in the bad_pdf directory. I'm printing to an HP Laserjet (1320). The PS 
>> error is complaining about ArialMT as far as I can tell. But when I read 
>> help for quartz(), the top of the help file says,
>> 
>> family
>> this is the family name of the font that will be used by the device. 
>> Default "Helvetica".
>> 
>> and the bottom of the help file says,
>> 
>> The default font family is Arial.
>> 
>> So which is it? And why when I use quartz.options(family="Arial", 
>> reset=TRUE), do quartz() devices not respect my command? All resulting 
>> graphs still look like Helvetica. Could this be the problem with printing 
>> PDFs? Why is the GUI preferences for changing the font there but one cannot 
>> alter the font?
>
> I wrote the above earlier. Turns out, when I save a PDF from the quartz 
> device, and include it in a latex document, I get a memory full error 
> associated with definefont postscript command. If I make the PDF using the 
> pdf() function, I get no error from printing the figures in latex. So I think 
> there is some kind of bug/difference between saving a PDF from the quartz() 
> device and creating a PDF using pdf(). Also, I note that the figures are not 
> quite rendered exactly the same.
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

-- 
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