comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: embedding fonts in eps files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: embedding fonts in eps files [message #48723] Tue, 16 May 2006 04:16
Maarten[1] is currently offline  Maarten[1]
Messages: 176
Registered: November 2005
Senior Member
George N. White III wrote:
>> 1 - Convert the eps to pdf (epstopdf that comes with TeX distributions
>> will do just fine).
>
> I'm not sure this step is neecessary -- perhaps it helps with certain
> files that call themselves EPS but really are something quite different.

Without out this step I've had problems with the epswrite module not
being able to find the fonts. Since pdf includes the fonts (the URW
replacements that is), and epstopdf knows where to find them, this step
just adds some convenience.

Note that for some types of IDL graphics, you want to avoid jpeg
compression that epstopdf uses by default on bitmaps. --nocompress
might come in handy.

>> 2 - Now the tricky bit: obtaining an eps file without the fonts:
>>
>> gs -dNOPAUSE -dNOCACHE -dBATCH -sDEVICE=epswrite \
>> -sOutputFile=your-output-file.eps \
>> your-source-file.pdf
>>
>> (change file-names as needed)
>>
>> This will replace the fonts with their outlines, and produce an eps
>> file that is perfectly acceptable (it doesn't rely on external files at
>> all).
>
> The tricky thing here is to know that the "-dNOCACHE" converts fonts to
> outline paths, without it you get bitmaps!

No, without it, the original fonts will be referenced. Be aware though
that the -dNOCACHE is considered a debug option, and that some versions
of gs do not support it properly. (some versions between 8.00 (which
worked) and 8.51 and later (which work too). Somewhere in between,
things didn't work.

Maarten
Re: embedding fonts in eps files [message #48726 is a reply to message #48723] Mon, 15 May 2006 16:03 Go to previous message
George N. White III is currently offline  George N. White III
Messages: 56
Registered: September 2000
Member
On Mon, 15 May 2006, Maarten wrote:

>
> Geoff Cureton wrote:
>> I just submitted a journal manuscript (to IEEE-TGRS, if that helps), and
>> used the IEEE-TGRS graphics file checker to check my encapsulated
>> postscript figures (generated using IDL). The checker said that the eps
>> files did not have the required fonts "embedded". Does anyone know if the
>> embedding of fonts for IDL-generated EPS files is something that can be
>> specified within IDL? Anyone had this problem before?
>
> The only fonts IDL can use in eps output (AFAIK) are the base 14
> postscript fonts that (at least in pdf) should never be embedded. But,
> OK, if the journal insists:

Replacing fonts with outline paths in figures is generally the best
approach. Many publishers (actually often the lowest bid print shop) are
under the impression that EPS is what you get from Adobe Illustrator and
nothing else, and expect to be able to load "EPS" files and edit them
in Illustrator. There are still problems if the embedded font isn't one
that is installed on the system running Illustrator.

> 1 - Convert the eps to pdf (epstopdf that comes with TeX distributions
> will do just fine).

I'm not sure this step is neecessary -- perhaps it helps with certain
files that call themselves EPS but really are something quite different.

> 2 - Now the tricky bit: obtaining an eps file without the fonts:
>
> gs -dNOPAUSE -dNOCACHE -dBATCH -sDEVICE=epswrite \
> -sOutputFile=your-output-file.eps \
> your-source-file.pdf
>
> (change file-names as needed)
>
> This will replace the fonts with their outlines, and produce an eps
> file that is perfectly acceptable (it doesn't rely on external files at
> all).

The tricky thing here is to know that the "-dNOCACHE" converts fonts to
outline paths, without it you get bitmaps!


--
George N. White III <aa056@chebucto.ns.ca>
Re: embedding fonts in eps files [message #48729 is a reply to message #48726] Mon, 15 May 2006 03:14 Go to previous message
Maarten[1] is currently offline  Maarten[1]
Messages: 176
Registered: November 2005
Senior Member
Geoff Cureton wrote:
> I just submitted a journal manuscript (to IEEE-TGRS, if that helps), and
> used the IEEE-TGRS graphics file checker to check my encapsulated
> postscript figures (generated using IDL). The checker said that the eps
> files did not have the required fonts "embedded". Does anyone know if the
> embedding of fonts for IDL-generated EPS files is something that can be
> specified within IDL? Anyone had this problem before?

The only fonts IDL can use in eps output (AFAIK) are the base 14
postscript fonts that (at least in pdf) should never be embedded. But,
OK, if the journal insists:

1 - Convert the eps to pdf (epstopdf that comes with TeX distributions
will do just fine).

2 - Now the tricky bit: obtaining an eps file without the fonts:

gs -dNOPAUSE -dNOCACHE -dBATCH -sDEVICE=epswrite \
-sOutputFile=your-output-file.eps \
your-source-file.pdf

(change file-names as needed)

This will replace the fonts with their outlines, and produce an eps
file that is perfectly acceptable (it doesn't rely on external files at
all).

Maarten
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: change the ratio z_axis / x_axis
Next Topic: Re: change the ratio z_axis / x_axis

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:49:16 PDT 2025

Total time taken to generate the page: 0.00625 seconds