Re: [R] Embedding fonts in pdfs

From: Jeffrey Horner <jeff.horner_at_vanderbilt.edu>
Date: Fri, 18 Apr 2008 14:49:10 -0500

hadley wickham wrote on 04/18/2008 02:40 PM:
> Hi all,
>
> I'm having problems embedding fonts in my graphics - and I've tried
> embedFonts to no avail. I have a pdf file and pdffonts tells me:
>
> name type emb sub uni object ID
> ------------------------------------ ----------------- --- --- --- ---------
> ZapfDingbats Type 1 no no no 5 0
> Helvetica Type 1 no no no 10 0
>
> (both before and after running the gs script). From reading the
> documentation, I suspect that these aren't being embedded because they
> are standard PS fonts, but my publisher (lulu.com) wants them
> embedded. Does anyone have any hints?

Have you tried using the Cairo package? For instance, I just helped one of our users here at Vanderbilt to embed 'Gill Sans MT' (because apparently it's required by some journal) into her PDF graphic, like so:

CairoFonts(

     regular="Gill Sans MT",
     bold="Gill Sans MT:style=Bold",
     italic="Gill Sans MT:style=Italic",
     bolditalic="Gill Sans MT:style=Bold Italic"
)
CairoPDF(file="file.pdf")
...
dev.off()

Also, Preview or even Acrobat reader (or xpdf) should reveal in the "Properties" of the pdf file whether or not your desired fonts are embedded.

Best,

Jeff

-- 
http://biostat.mc.vanderbilt.edu/JeffreyHorner

______________________________________________
R-help_at_r-project.org 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 18 Apr 2008 - 19:54:59 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 18 Apr 2008 - 21:30:29 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.

list of date sections of archive