Re: [tex-k] Dvips fix for font in EPSF improperly downloaded
I send a copy to ntg-pdftex@ntg.nl because I don't know how pdftex deals with fonts in embedded PDF files.
"Tomas" == Tomas G Rokicki
writes:
I just submitted a fix for the problem where a document includes a figure that uses a downloaded PostScript font, and that same font is also used by the main document itself. Dvips was partially downloading the font in this case when it should have downloaded the entire font. It now does download the entire font.
If I understand you correctly, you want to put the entire font into
the output file if the /FontName of the font in the included eps-file
is the same as a font used by TeX (the /FontName in psfonts.map).
This will solve a few problems but not all. The main problem is that
this solution assumes that a font in an embedded eps file and a font
in texmf with the same /FontName are identical. But unfortunately we
cannot rely on this.
One example is /Courier. http://ms25.ath.cx/courier.pdf shows the
difference between /leftquote in URW Courier and IBM Courier provided
by XFree86 (/usr/X11R6/lib/fonts/Type1/cour.pfa).
If you have problems downloading the file, let me know.
Both have "/FontName /Courier def" but they are totally different.
Another problem are the free URW fonts. They are under GPL and
someone added cyrillic glyphs to the fonts. The modified fonts are
distributed with ghostscript. When I looked into them, they still
needed some refinement. Walter Schmidt maintains the original URW
fonts on CTAN for exactly this reason.
Assume that someone creates an eps file using the cyrillic glyphs from
the gs fonts, does it really help if dvips include the entire font
from the the texmf tree (which does not have cyrillic glyphs)?
I think it's better not to touch eps files if possible. People expect
that if they can be printed, they can be included into a TeX document.
In most cases you get better results if you replace an embedded font
by one provided by a TeX distribution but in some cases the result
might be not what people expect. Checking the /UniqueID would
minimize the risk but for fonts under GPL I wouldn't even rely on
this.
Isn't it better to rename the TeX fonts (the fonts mentioned in
dvips.map)? For instance, from psfonts.map:
bchb8r CharterBT-Bold "TeXBase1Encoding ReEncodeFont" <8r.enc
participants (1)
-
Reinhard Kotucha