Re: embed fonts in eps from R?
Hi all, I can't speak for R, but perhaps some ideas here: The publisher (AIP) demands submission of separate eps file for each figure with all fonts embedded in it (even the standard 14 adobe fonts). what a pain. I recently published an article in an AIP journal but the EPS files that I submitted used didn't any font information. I'm not sure how I got away with that (but the article came out fine). Maybe I was lucky or perhaps they've changed the submission system. Is there a solution for problem within open source environment (without using of proprietary software)? I suspect that you would be able to convert from EPS to PS or PDF and then back again to get the fonts embedded. There are a lot of different tools already packaged within debian that can do this. The tools within the ghostscript packages are probably worth trying. The second picture format that AIP journals accept is TIFF, but R has no tiff device to produce that pictures. Is there a strait way to convert the EPS file into the high resolution high quality TIFF figure? Converting from a nice vector graphic format like EPS to a raster format like TIFF is, of course, the last resort. While you do produce excellent looking results from such a process, you will make the electronic version of the paper /much/ larger and the plots will usually look worse on screen at normal viewing magnifications (100% or so) even though they will print fine. But sometimes, one just has to do this There are a plethora of tools that you can use for this bit . If you open the EPS file in something like the Gimp, then you can specify the resolution at which you want to import the image. You can then save it out in TIFF format. Command line tools like imagemagick's convert can also be used to convert EPS to TIFF at a specified resolution. Sorry if this is off-top questions. Not at all off-topic, IMHO. Plotting and dealing with strange publisher requirements are very much part of the the remit of debian-science. good luck with it! Stuart -- Stuart Prescott www.nanoNANOnano.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: embed fonts in eps from R?
--- Yury Yuryev [EMAIL PROTECTED] wrote: As I understand the R does not do this embedding. It inserts only comments what resources are needed. In recent versions of R (= 2.3.0) the embedFonts() function might do what you want. For more details see Murrell and Ripley, R News 6(2):41, http://cran.r-project.org/doc/Rnews/Rnews_2006-2.pdf I haven't tested to see if this works with the standard 14 fonts. Old articles in R News are a great resource for learning R. --Andre __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: embed fonts in eps from R?
On 10/9/06, Yury Yuryev [EMAIL PROTECTED] wrote: Dear Debian-Science, Here was a discussion about software used to make a graphs for publications. Among others the R statistical software was mentioned. I spent some time to learn it and found a problem when tried to submit an eps graphs created with R. 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 resources are needed. There was a discussion on the R Help list: http://tolstoy.newcastle.edu.au/R/help/05/01/10749.html#10751qlink1 Salients points were: 1) some publishers do accept EPS files that refer to the Adobe base 13 fonts via DS comments of the form: %%DocumentNeededResources: font Times-Roman %%+ font Times-Bold %%+ font Times-Italic %%+ font Times-BoldItalic %%+ font Symbol This needs some care, as the majority of systems will substitute free fonts such as the URW versions for the real Adobe fonts. Unfortunately, there are some differences that can be significant -- compare, e.g., Helvetica-Oblique with Arial-Italic. Ghostscript now provides a ps2ps2 script that supports the Adobe distiller parameters, so you should be able to configure it to embed the fonts, but the result is plain (level 2) PS and not EPS and does not have DSC. This is similar to what you would get by converting to PDF and back to PS. 2) some proprietary programs (Corel Draw) do provide an option to embed fonts in EPS files. Is there a solution for problem within open source environment (without using of proprietary software)? My approach is to convert fonts to outline paths, in part because in the good old days many typesetters used 3rd party rasterizers that could not reliably render all Type 1 fonts, in particular, the YY/BSR versions of Computer Modern. This does mean you loose the benefits of font hinting, which affects low-res devices (400dpi, e.g.,screen viewing), but does not matter at photo-typesetter resolutions (1000 dpi). This can be done using the pstoedit tool with -f ps2ai -dt ... Try this on a trivial file: .../texmf/doc/latex/graphics/a.ps and open the eps file in an editor. You should see a bunch of lines ending in c, defined in the prologue as rcurveto, used to draw the outline of the letter. The ps2edit utility can also be used to do this. If you use the ps2ai driver you can load the results in sketch/skencil see the outline paths. I sometimes use this to create annotations for figures. The second picture format that AIP journals accept is TIFF, but R has no tiff device to produce that pictures. Is there a strait way to convert the EPS file into the high resolution high quality TIFF figure? The problem with TIFF has been the non-free status of the LZW compression method. I think the patent has lapsed in some jursidictions, so perhaps effective compression is available in current tools such as Image Magick. Sorry if this is off-top questions. Not at all, as the problem involves using tools available to debian users to do things that are commonly done using commercial tools. -- George N. White III [EMAIL PROTECTED] Head of St. Margarets Bay, Nova Scotia -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: embed fonts in eps from R?
I recently published an article in an AIP journal but the EPS files that I submitted used didn't any font information. I'm not sure how I got away with that (but the article came out fine). Maybe I was lucky or perhaps they've changed the submission system. The procedure of submission includes steps of conversion to pdf and figure quality check. Actually, my eps figures look good after conversion to pdf, but do not pass quality check. The warring is that Symbol font is should be embedded. The other fonts of Times family were not mentioned. I guess the problem is in using circle hat to make the Angstrom symbol. Did you use any symbols from Symbol font in your figures? -- Sincerely yours, Yury Yuryev. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: embed fonts in eps from R?
Thank everybody for responses and suggestions. Now I have a lot to try following your advises. Actually, I have tried conversion of text to outlines with gs using epswrite device. If other will not help I can use that way despite the screen view is not good. -- Sincerely yours, Yury Yuryev. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]