Displaying 20 results from an estimated 49 matches for "embedfonts".
2007 Oct 08
3
embedFonts rotates figure
...5),lty="dashed")
segments(1,0,1,dlnorm(1,0,1.5),lty="dashed")
segments(exp(1.5^2),0,exp(1.5^2),dlnorm(exp(1.5^2),0,1.5),lty="dashed")
axis(2)
axis(1,at=c(exp(-1.5^2),1,exp(1.5^2)),labels=c(expression(mu[0]),expression(mu[e]),expression(mu)))
box()
dev.off()
and now:
embedFonts("figure.pdf")
The figure.pdf gets rotated. Any ideas about how to prevent the
rotation? I am using R 2.5.1 on F7 (Linux).
Thanks in advance,
Paul
2011 Aug 09
1
embedFonts() does not embed fonts?
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-9...
2008 Mar 05
1
embedFonts() side-effect under 2.6.2 ?
...oduce:
1) Run the following commands:
filename <- 'test.pdf'
pdf(filename)
plot(1:10)
dev.off()
2) Open test.pdf (I use Evince, but the same with Adobe Acrobat). Make
sure there are ten hollow points in the plot. This is correct.
3) Run command
embedFonts(filename)
4) Open test.pdf again. The points are now solid.
The bug was introduced in one of the recent versions (I think in
2.6.x). I'm ready to provide any additional info.
I don;t have r-devel (or r-patched) handy right now. Could someone kindly
confirm / deny is this is st...
2009 Mar 14
1
Problem with figure size when embedding fonts
...sfy a requirement from a journal for electronic
submission of figures. I do the following:
postscript('lowess.eps', onefile=FALSE, pointsize=18, horizontal=FALSE,
family='NimbusSan')
spar(mfrow=c(3,2))
. . .
dev.off()
At this point lowess.eps looks fine. When I run:
embedFonts('lowess.eps') or
embedFonts('lowess.eps', options='-sPAPERSIZE=letter')
the figures are wider and the right panel of the 3x2 matrix of plots
expands past the paper edge. Advice welcomed.
Thanks
Frank
platform i486-pc-linux-gnu
arch i486
os l...
2009 Sep 04
3
eps file with embedded font
Dear list,
I am trying to make eps file with embedded font.
I use:
postscript("ranking-exp-all.eps", horizontal=TRUE, onefile=FALSE,
paper="special", height=8, width=12, family="Helvetica")
# plot stuff
dev.off()
since R does not embed font, I then use:
embedFonts(file="indegdistr.eps", outfile="indegdistrEMB.eps",
fontpaths="System/Library/Fonts")
the problem is that the second file, with font embedded, is cutted
near the end, and the very last part of the plots and the border are
off the page...
I use R 2.8.1 on a Mac OSX
a...
2007 Oct 17
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h test/trace
...ber) = 17000000 (number)
+wordWrap: (57) -17000000 (number) = -17000000 (number)
+wordWrap: (58) input (string) = input (string)
+wordWrap: (59) 34000000 (number) = 34000000 (number)
+wordWrap: (60) -34000000 (number) = -34000000 (number)
+wordWrap: (61) input (dynamic) = dynamic (string)
+Testing: embedFonts (default: )
+embedFonts: (0) (undefined) = (undefined)
+embedFonts: (1) null (null) = null (null)
+embedFonts: (2) true (boolean) = true (boolean)
+embedFonts: (3) false (boolean) = false (boolean)
+embedFonts: (4) 0 (number) = 0 (number)
+embedFonts: (5) 1 (number) = 1 (number)
+embedFonts: (6)...
2010 Sep 11
2
Latex fonts in R graphics
...a.afm", "fcmbi8a.afm"), sep=""),
+ "./cmsyase.afm"))
> pdf("cm.pdf", width=3, height=3, family="CM")
> plot(1:length(y), y, xlab="ss", ylab=expression(x[2])) ## for any
vector y
> dev.off()
null device
1
> embedFonts("cm.pdf", outfile="cmembed.pdf",
fontpaths=c("cm-lgc/fonts/type1/public/cm-lgc", "."))
Error in embedFonts("cm.pdf", outfile = "cmembed.pdf", fontpaths =
c("cm-lgc/fonts/type1/public/cm-lgc", :
status -1 in running command...
2008 Sep 18
1
PDF fonts problem
...t("gg\u151hh\uF6ii\uF3jj kk\u171ll\uFCmm\uFAnn")
dev.off()
#everything is perfect
#CMS
pdf("tryfont-cms.pdf", family="CMS")
grid.text("gg\u151hh\uF6ii\uF3jj kk\u171ll\uFCmm\uFAnn")
dev.off()
#u151 and u171 doesn't show, though the other accented ones do
embedFonts("tryfont-cms.pdf",
outfile="tryfont-cms-embed.pdf",
fontpaths="/cm-super/afm/")
#after embedding the same "slipping" occurs
postscript("tryfont-cms.eps", family="CMS")
grid.text("gg\u151hh\uF6ii\uF3jj kk\u171ll\uFCmm\uFAnn")
dev...
2009 Feb 08
2
Embedding fonts in pdf graphics
I know you can control this with the cairo package, but I was hoping
that embedFonts( ) would provide a way to embed all fonts, not just the
non-standard ones. I'm submitting graphics to a journal that wants
Helvetica and Helvetica-bold embedded for some reason. Is there an easy
way to do this on a pdf graphic created wit pdf()? A linux system
command would be excellent...
2024 Mar 11
1
evince not showing "greek" and "math" in *.pdf plots
...ld work, and may be a better solution
anyway, given that embedding the fonts is probably more cross-
platform/viewer friendly:
You can embed the fonts if you have Ghostscript installed (I think it
comes with Fedora already(?) if not then:?
sudo dnf install ghostscript
)
You can then use the embedFonts() function in R:
(pdfil <- paste0("plotmath-example_R",
with(R.version, paste0(major, sub("[.]", "", minor))),
".pdf"))
pdf(pdfil)
example(plotmath); mtext(R.version.string)
dev.off()
# Use embedFonts to embed the fonts in the PDF
embed...
2006 Oct 10
3
eps embedded fonts again
Dear friends,
I am sorry, I again rise that boring question about font embedding in
EPS figure.
I found some discussions on this topic but there were no strait solution.
The publisher (AIP) demands submission of separate EPS file
for each figure with all fonts embedded in it (even the standard
14 Adobe fonts).
As I understand the R does not do this embedding. It inserts only
comments what font
2024 Mar 11
2
evince not showing "greek" and "math" in *.pdf plots
...that embedding the fonts is probably more cross-
> platform/viewer friendly:
>
>
> You can embed the fonts if you have Ghostscript installed (I think it
> comes with Fedora already(?) if not then:
>
> sudo dnf install ghostscript
>
> )
>
>
> You can then use the embedFonts() function in R:
>
> (pdfil <- paste0("plotmath-example_R",
> with(R.version, paste0(major, sub("[.]", "", minor))),
> ".pdf"))
>
> pdf(pdfil)
> example(plotmath); mtext(R.version.string)
> dev.off()
>
> # Use...
2007 Oct 04
3
pdf() device uses fonts to represent points - data alteration?
...cs to ensure
fonts consistency or such, and this will be destructive in the case
of these pdfs. For example, Inkscape interprets points as squares
(more like U+2751 in ZapfDingbats) and Adobe Illustrator does not
even recognize the font (substituting AdobePiStd).
I tried to embed fonts with embedFonts() but his does not solves the
issue with editing (Inkscape produces a kind of star and AI still
chokes on the font) and worst, it modifies how the original graphic
renders in pdf viewers: the circles are now filled (I believe this is
because this is the default state of the ZapfDingbats cha...
2024 Mar 12
1
evince not showing "greek" and "math" in *.pdf plots
...endly:
> >
> >
> > You can embed the fonts if you have Ghostscript installed (I think
> > it
> > comes with Fedora already(?) if not then:?
> >
> > sudo dnf install ghostscript
> >
> > )
> >
> >
> > You can then use the embedFonts() function in R:
> >
> > (pdfil <- paste0("plotmath-example_R",
> > ? ? ? ? ? ? ? ? ?with(R.version, paste0(major, sub("[.]", "",
> > minor))),
> > ".pdf"))
> >
> > pdf(pdfil)
> > example(plotmath); mtext(R...
2007 Oct 23
0
11 commits - libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_object.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h
...as_object_add_native_variable (proto, SWFDEC_AS_STR_scroll,
swfdec_text_field_movie_do_get_scroll,
swfdec_text_field_movie_do_set_scroll);
@@ -1342,11 +1339,9 @@ swfdec_text_field_movie_init_properties (SwfdecAsContext *cx)
swfdec_as_object_add_native_variable (proto, SWFDEC_AS_STR_embedFonts,
swfdec_text_field_movie_get_embedFonts,
swfdec_text_field_movie_set_embedFonts);
- if (cx->version >= 7) {
- swfdec_as_object_add_native_variable (proto, SWFDEC_AS_STR_styleSheet,
- swfdec_text_field_movie_get_styleSheet,
- swfdec_text_field_movie_set_styleSheet);
- }
+ s...
2008 May 23
2
Preparing high quality figures with tiff as end result
...lot(rnorm(100))
dev.off()
,crashes R (i.e "R GUI has encountered a problem and needs to
close...") every third time or so.
When it does work, the resulting output is not too pretty.
So I turned to using postscript files. However, Plos One requires that
fonts be embedded into the figure.
embedFonts() works for this, but the result is that text becomes
low-res bitmaps, and I don't know how to solve this.
So basically my question is: How should I go about generating graphics
that will look as nice as possible given the above constraints?
Many thanks in advance,
Gustaf
--
Gustaf Ryd...
2008 Apr 18
1
Embedding fonts in pdfs
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...
2011 Sep 14
0
pdf font example
...es not seem to be used
? berasans <- Type1Font("BeraSans", paste(absolute.path.to.font.files,
bera.names, ".afm", sep=""))
? pdf(file = paste(pdfbasename,".PDF", sep=""), family=berasans, ...)
}
pdf.end <- function(verbose =1) {
? dev.off()
? embedfonts( options("pdf.current") )
}
embedfonts <- function( fname ) {
? commandline <- paste( "ps2pdf14 -DPDFSETTINGS=/prepress
-sFONTPATH=", absolute.path.to.font.files, sep="")
? stopifnot(system( paste(commandline, paste(fname, ".PDF", sep=""),
pa...
2024 Mar 12
1
evince not showing "greek" and "math" in *.pdf plots
...robably more cross-
> platform/viewer friendly:
>
>
> You can embed the fonts if you have Ghostscript installed (I think it
> comes with Fedora already(?) if not then:
>
> sudo dnf install ghostscript
>
> )
>
>
> You can then use the embedFonts() function in R:
>
> (pdfil <- paste0("plotmath-example_R",
> ? ? ? ? ? ? ? ? ?with(R.version, paste0(major, sub("[.]", "", minor))),
> ".pdf"))
>
> pdf(pdfil)
> example(plotmath); mtext(R.version.string)
>...
2024 Mar 13
1
evince not showing "greek" and "math" in *.pdf plots
...ndly:
> >
> >
> > You can embed the fonts if you have Ghostscript installed (I think it
> > comes with Fedora already(?) if not then:
> >
> > sudo dnf install ghostscript
> >
> > )
> >
> >
> > You can then use the embedFonts() function in R:
> >
> > (pdfil <- paste0("plotmath-example_R",
> > with(R.version, paste0(major, sub("[.]", "",
> minor))),
> > ".pdf"))
> >
> > pdf(pdfil)
> > example(plot...