Re: [R] embedFonts() and bounding box

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Fri, 29 Jun 2007 09:20:18 +0100 (BST)

As embedFonts creates a new file, the bounding box of the original one is not relevant. (Yes, outfile = file by default, but it is still a new file.)

I guess the switches

     -dDEVICEWIDTHPOINTS=w -dDEVICEHEIGHTPOINTS=h

might help to create the new file with the bounding box you want.

On Thu, 28 Jun 2007, Christoph Buser wrote:

> Dear R gurus
>
> I have a question regarding the function embedFonts().
> I assume the in that function which calls gs, the bounding box
> of the eps file is changed. Is that by intention? Do I have
> call explicitly some gs-options to avoid it and if yes, how?
> Thank you very much for your help.
>
> Best regards,
>
> Christoph Buser
>
> ## R example
> postscript("test.eps", width = 14, height = 8,
> onefile = FALSE, horizontal=FALSE, paper="special")
> plot(1:10)
> dev.off()
> embedFonts(file = "test.eps", outfile = "test1.eps")
>
>
> --------------------------------------------------------------
> Christoph Buser <buser_at_stat.math.ethz.ch>
> Seminar fuer Statistik, LEO C13
> ETH Zurich 8092 Zurich SWITZERLAND
> phone: x-41-44-632-4673 fax: 632-1228
> http://stat.ethz.ch/~buser/
>
> ______________________________________________
> R-help_at_stat.math.ethz.ch 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.
>

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

______________________________________________
R-help_at_stat.math.ethz.ch 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.
Received on Fri 29 Jun 2007 - 08:26:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 29 Jun 2007 - 08:32:40 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.