Summary: | pdfwrite generate too large glyphs | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Jack Moffitt <jack> |
Component: | PDF Writer | Assignee: | Igor Melichev <igor.melichev> |
Status: | NOTIFIED FIXED | ||
Severity: | normal | CC: | estrik |
Priority: | P2 | ||
Version: | master | ||
Hardware: | All | ||
OS: | All | ||
Customer: | 411 | Word Size: | --- |
Description
Jack Moffitt
2004-02-06 04:05:31 UTC
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.
|