Skip to content

embedFonts() does not embed fonts?

2 messages · Sverre Stausland

#
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.
null device
          1
"C/Windows/Fonts")
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
[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
#
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
<johnsen at fas.harvard.edu> wrote: