The attached file, when processed via CVS HEAD pdfwrite, produces an output pdf where the glyphs are much too large. This does not happen when rendering the original PostScript document.
Created attachment 484 [details] g02.ps
Another customer #1110 has also reported a similar bug: The PostScript file at the end of this e-mail has some text in a bitmapped font (font included in the PostScript). If you make a PDF using GhostScript, it creates a Type 3 font where all the characters are rendered WAY too big. Adobe Distiller 5 makes a good PDF from the same PostScript. and their analysis: Suggested fix, if any: I've poked around a bit and know why the font is wrong (not how to fix it). The "TheMix" font's BuildChar procedure does a scale before the "setcachedevice" call. This scale factor appears to get lost during the conversion to PDF. If you edit the resulting PDF and add a "0.08 0 0 0.08 0 0 cm" at the start of the "CharProcs" objects' data stream, the PDF renders correctly. This 0.08 factor is the same as the "scale" call in the BuildChar proc. ------------------------------------------------------------------------ Other comments: Distiller does some VERY different things with this font and the Text calls to paint it, but it does produce a Type 3 font and both Acrobat and GhostScript render Distiller's PDF correctly.
Created attachment 488 [details] badtype3font.ps Customer #1110's test file.
Patch http://www.ghostscript.com/pipermail/gs-cvs/2004-February/004147.html