[gs-bugs] [Bug 691913] New: PCL files generated from ghostscript 'bust the font cache'

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Fri Jan 28 00:40:54 UTC 2011


           Summary: PCL files generated from ghostscript 'bust the font
           Product: Ghostscript
           Version: HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P4
         Component: Font API
        AssignedTo: chris.liddell at artifex.com
        ReportedBy: robin.watts at artifex.com
         QAContact: gs-bugs at ghostscript.com
   Estimated Hours: 0.0

Created an attachment (id=7163)
 --> (http://bugs.ghostscript.com/attachment.cgi?id=7163)

If you run the attached file through ghostscript as follows:

 gswin32c.exe -sDEVICE=pxlcolor -r600 -o out.pxl 100page.pdf

The generated files contain fonts where the glyphs are not reused on each
successive page. (So the 'A' character on the second page is redefined from
that of the 'A' character on the first page etc). This produces files that are
not only larger than required, but also perform poorly in the PCL interpreter.

Investigating the code, it seems that pclxl_copy_text_char is being called. We
look up the char index using pclxl_char_index and fail to spot it is one we've
had before. This is because this function is being called from above with a
unique glyph id. We should reasonably expect the glyph id to be the same the
second time a glyph is encountered.

Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the gs-bugs mailing list