From dwinsemius at comcast.net  Wed Jun  1 03:19:24 2016
From: dwinsemius at comcast.net (David Winsemius)
Date: Tue, 31 May 2016 18:19:24 -0700
Subject: [Rd] Suggestion: pdf.options(embed=TRUE)
In-Reply-To: <CAErODj-UA62MUB4YAak-nAc9LwUy69csRa=aN+JRT9Hr1kDtPw@mail.gmail.com>
References: <CAErODj-UA62MUB4YAak-nAc9LwUy69csRa=aN+JRT9Hr1kDtPw@mail.gmail.com>
Message-ID: <6FBB20FF-F376-4FC4-ACBF-14506528F560@comcast.net>


> On May 31, 2016, at 4:59 PM, Paul Johnson <pauljohn32 at gmail.com> wrote:
> 
> I learned last week that I generated a lot of PDFs and forgot to go
> back and embed the fonts in them.
> 
> It would be very pleasant for me if pdf.options included an argument
> to turn on font embedding and have fonts always embedded. Always.
> 
> Thanks for your time, as always.

I wondered if it would be fairly simple to use .Rprofile to overwrite `pdf` with your own version that sets the value of `fonts' to a call to `options` and then also set the options("pdf_embed")-value to your choice of font(s), possibly defaulting to the current values of `names(pdfFonts())`.

Looking at the code for `pdf`, however, I see that a call to `check.options` might require a mere complex set of parameters perhaps involving disabling the check on the fonts option value.

I ended up wondering if instead the function to modify might not be `grDevices:::initPSandPDFfonts`

-- 
David.
> 
> -- 
> Paul E. Johnson   http://pj.freefaculty.org
> Director, Center for Research Methods and Data Analysis http://crmda.ku.edu
> 
> I only use this account for email list memberships. To write directly,
> address me at pauljohn
> at ku.edu.
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

David Winsemius
Alameda, CA, USA



[Rd] Suggestion: pdf.options(embed=TRUE)
David Winsemius