Re: embedding fonts in eps files [message #48723] |
Tue, 16 May 2006 04:16  |
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
|
|
|