Some of you might see that there's a tiny mistake in the embedFonts() call. fontpaths = "C/Windows/Fonts" should of course be fontpaths = "C:/Windows/Fonts". I fixed this, but it didn't change the fact that the new .pdf does not have its fonts embedded.
Sverre On Tue, Aug 9, 2011 at 4:48 PM, Sverre Stausland <john...@fas.harvard.edu> wrote: > Dear helpers, > > I'm trying out the embedFonts() to embed fonts into my pdf files. > However, when I inspect the new pdf with a program designed to look > for embedded fonts, I see that the fonts have in fact not been > embedded. Below are my calls. > > > R version 2.13.1 (2011-07-08) > Copyright (C) 2011 The R Foundation for Statistical Computing > ISBN 3-900051-07-0 > Platform: i386-pc-mingw32/i386 (32-bit) > > R is free software and comes with ABSOLUTELY NO WARRANTY. > You are welcome to redistribute it under certain conditions. > Type 'license()' or 'licence()' for distribution details. > > R is a collaborative project with many contributors. > Type 'contributors()' for more information and > 'citation()' on how to cite R or R packages in publications. > > Type 'demo()' for some demos, 'help()' for on-line help, or > 'help.start()' for an HTML browser interface to help. > Type 'q()' to quit R. > >> Sys.setenv("R_GSCMD"="C:/Downloads/gs9.04/bin/gswin32c.exe") >> >> pdf(file = "test.pdf", family = "serif") >> plot(1:10) >> dev.off() > null device > 1 >> >> embedFonts(file = "test.pdf", format = "pdfwrite", outfile = >> "test_em.pdf",fontpaths = > > "C/Windows/Fonts") >> >> Sys.unsetenv(x = "R_GSCMD") >> >> sessionInfo() > R version 2.13.1 (2011-07-08) > Platform: i386-pc-mingw32/i386 (32-bit) > > locale: > [1] LC_COLLATE=English_United States.1252 > [2] LC_CTYPE=English_United States.1252 > [3] LC_MONETARY=English_United States.1252 > [4] LC_NUMERIC=C > [5] LC_TIME=English_United States.1252 > > attached base packages: > [1] stats graphics grDevices utils datasets methods base >> Sys.getlocale() > [1] "LC_COLLATE=English_United States.1252;LC_CTYPE=English_United > > States.1252;LC_MONETARY=English_United > States.1252;LC_NUMERIC=C;LC_TIME=English_United > > States.1252" >> > > ------------------------------------ > pdffonts.exe test_em.pdf > name type emb sub uni object ID > ------------------------------------ ----------------- --- --- --- --------- > ZapfDingbats Type 1 no no yes 10 0 > Times-Roman Type 1 no no no 11 0 > ______________________________________________ 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.