Dvips bitmap fonts do not contain a FontName, so it
is impossible to handle any dvips output containing
pk fonts with ps2epsi.
I reported this problem to the authors of ghostscript,
and Peter Deutsch <gh...@aladdin.com> promised a
fix in the next version: since the FontName is optional,
ps2epsi.ps will check if it exists rather than assuming
it.
However, this makes it impossible to include the fonts
in the %%DocumentFonts list. I don't know how important
this is, but I guess it may be a good idea to include
the FontName.
There are two ways to solve the problem immediately.
These may be of interest to others experiencing
the same problem with current versions of gs. The first is
to change ps2epsi.ps by changing
/epsisetfont
{
% code here keeps a list of font names in dictionary epsifontdict
/tmpfont exch def
/tmpfontname tmpfont /FontName get def
epsifontdict tmpfontname known not { epsifontdict tmpfontname 0 put }
if
epsifontdict tmpfontname
epsifontdict tmpfontname get 1 add put
tmpfont setfont
} bind def
into
/epsisetfont
{
% code here keeps a list of font names in dictionary epsifontdict
/tmpfont exch def
tmpfont /FontName known {
/tmpfontname tmpfont /FontName get def
epsifontdict tmpfontname known not { epsifontdict tmpfontname 0 put
} if
epsifontdict tmpfontname 2 copy get 1 add put
} if
tmpfont setfont
} bind def
(suggested by Peter Deutsch).
The second is to modify dvips's tex.pro file by inserting
/FontName (foo_undefined) def
e.g. before "/FontType 3". I included original and
modified versions of ps2epsi.ps and tex.pro with this message,
as well as the reply from Peter Deutsch.
Best regards,
Mark
--
Mark Potse <mailto:M.P...@amc.uva.nl>
Medical Physics Department, Academic Medical Center
Meibergdreef 15, 1105 AZ Amsterdam, The Netherlands
+31 20 566 5363 / 5200 Fax: +31 20 691 7233