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