Re: [R] Embedding fonts in pdfs

2008-04-18 Thread Jeffrey Horner
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 1no  no  no   5  0
> HelveticaType 1no  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@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.


[R] Embedding fonts in pdfs

2008-04-18 Thread hadley wickham
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 1no  no  no   5  0
HelveticaType 1no  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?

Thanks,

Hadley

-- 
http://had.co.nz/

__
R-help@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.