<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Poppler shows a glyph when it should not"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106898">106898</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Poppler shows a glyph when it should not
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>cairo backend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mkasik@redhat.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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:

<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1589594">https://bugzilla.redhat.com/show_bug.cgi?id=1589594</a>

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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>