[Poppler-bugs] [Bug 106898] New: Poppler shows a glyph when it should not

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jun 12 15:36:42 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=106898

            Bug ID: 106898
           Summary: Poppler shows a glyph when it should not
           Product: poppler
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: cairo backend
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: mkasik at redhat.com

Cairo backend shows a glyph when rendering a text using Type3 font even if
there is no glyph for current char code. This was reported to me downstream
here together with reproducer:

https://bugzilla.redhat.com/show_bug.cgi?id=1589594

The PDF seems wrong because it does not have glyph for space in its Type3 font.

Looking at the code, the codeToGID table of CairoFont is initialized with zeros
and only existing glyphs get a valid index.
I propose to initialize the table with -1s and propagate this information
through getGlyph() so the CairoOutputDev::drawChar() can check whether the
index was actually set.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20180612/b7df3df6/attachment.html>


More information about the Poppler-bugs mailing list