| Line 47... |
Line 47... |
| 47 |
you will need to tell Ghostscript where the font is, using
|
47 |
you will need to tell Ghostscript where the font is, using
|
| 48 |
something like \code{options="-sFONTPATH=path/to/font"}.
|
48 |
something like \code{options="-sFONTPATH=path/to/font"}.
|
| 49 |
|
49 |
|
| 50 |
You will need \code{ghostscript}: the full path to the executable can
|
50 |
You will need \code{ghostscript}: the full path to the executable can
|
| 51 |
be set by the environment variable \env{R_GSCMD}. If this is
|
51 |
be set by the environment variable \env{R_GSCMD}. If this is
|
| 52 |
unset, a \I{GhostScript} executable will be looked for by name on your
|
52 |
unset, a Ghostscript executable will be looked for by name on your
|
| 53 |
path: on a Unix alike \code{"gs"} is used, and on Windows the setting
|
53 |
path: on a Unix alike \code{"gs"} is used, and on Windows the setting
|
| 54 |
of the environment variable \env{GSC} is used, otherwise commands
|
54 |
of the environment variable \env{GSC} is used, otherwise commands
|
| 55 |
\code{"gswi64c.exe"} then \code{"gswin32c.exe"} are tried.
|
55 |
\code{"gswi64c.exe"} then \code{"gswin32c.exe"} are tried.
|
| 56 |
|
56 |
|
| 57 |
The \code{format} is by default \code{"ps2write"}, when the original
|
57 |
The \code{format} is by default \code{"ps2write"}, when the original
|
| Line 66... |
Line 66... |
| 66 |
may differ from that specified in the original file.
|
66 |
may differ from that specified in the original file.
|
| 67 |
|
67 |
|
| 68 |
Some other options which can be useful (see your Ghostscript
|
68 |
Some other options which can be useful (see your Ghostscript
|
| 69 |
documentation) are \option{-dMaxSubsetPct=100},
|
69 |
documentation) are \option{-dMaxSubsetPct=100},
|
| 70 |
\option{-dSubsetFonts=true} and \option{-dEmbedAllFonts=true}.
|
70 |
\option{-dSubsetFonts=true} and \option{-dEmbedAllFonts=true}.
|
| 71 |
In particular, while \I{GhostScript} uses \option{-dEmbedAllFonts=true} by
|
71 |
In particular, while Ghostscript uses \option{-dEmbedAllFonts=true} by
|
| 72 |
default, the standard PDF fonts are on its \verb{NeverEmbed} list. To
|
72 |
default, the standard PDF fonts are on its \verb{NeverEmbed} list. To
|
| 73 |
force the base fonts to be embedded, set \code{options = c("-c",
|
73 |
force the base fonts to be embedded, set \code{options = c("-c",
|
| 74 |
shQuote("<</NeverEmbed []>> setdistillerparams"), "-f")}.
|
74 |
shQuote("<</NeverEmbed []>> setdistillerparams"), "-f")}.
|
| 75 |
|
75 |
|
| 76 |
\code{embedGlyphs()} is recommended for \code{pdf()} files
|
76 |
\code{embedGlyphs()} is recommended for \code{pdf()} files
|