[gs-bugs] [Bug 692267] New: wrong glyph width used if two cids map to the same gid

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Thu Jun 9 15:47:46 UTC 2011


           Summary: wrong glyph width used if two cids map to the same gid
           Product: MuPDF
           Version: unspecified
          Platform: PC
               URL: http://code.google.com/p/sumatrapdf/issues/detail?id=1
        OS/Version: Windows 7
            Status: NEW
          Severity: normal
          Priority: P4
         Component: mupdf
        AssignedTo: tor.andersson at artifex.com
        ReportedBy: zeniko at gmail.com
         QAContact: gs-bugs at ghostscript.com
   Estimated Hours: 0.0

contains a font with /BaseEncoding and /Differences. Due to this, several
encoding points (gids) are referred to by two cids (one from the BaseEncoding,
another one from the Differences). However /Widths contains non-zero entries
only for the cids pointing into /Differences.

pdf_make_width_table uses the width for the last cid encountered for any gid.
In this case, the first non-zero width is thus overwritten by a zero-width for
the (unintended) second width, even though the latter cid is never used in the

Not sure what the correct fix is here: We've started to prefer the non-zero
widths for now, but the better fix would probably be to index font->width_table
by cid instead of gid (which would however require passing both cid and gid

Our fix: http://code.google.com/p/sumatrapdf/source/detail?r=3894

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