<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - pdftops 0.45.0 generates ps that gets /rangecheck in --xyshow--"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96644#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - pdftops 0.45.0 generates ps that gets /rangecheck in --xyshow--"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96644">bug 96644</a>
              from <span class="vcard"><a class="email" href="mailto:williambader@hotmail.com" title="William Bader <williambader@hotmail.com>"> <span class="fn">William Bader</span></a>
</span></b>
        <pre>The file works for me now, and I checked my notes, and this file along with
some other files are in the section where I worked on the patch that I
submitted in <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - pdftops - some fonts are encoded incorrectly in level2 postscript"
   href="show_bug.cgi?id=63963">https://bugs.freedesktop.org/show_bug.cgi?id=63963</a>
I don't remember exactly what happened, but I think that this file generated
the spaces around the bullets by using a 0 size character high up in the font
and showing it in a way that the show command added the space. Since the glyph
was empty, something didn't include it when building the font, and the
generated postscript got a range error trying to access it.
In my patch at 
<a href="https://bugs.freedesktop.org/page.cgi?id=splinter.html&bug=63963&attachment=128294">https://bugs.freedesktop.org/page.cgi?id=splinter.html&bug=63963&attachment=128294</a>
the sequence below in PSOutputDev.cc is what stops the range check while
preserving the spacing. For the glyph used for spacing, code > maxGlyph (which
is no loss because the glyph is empty and 0 size) but dx > 0 and needs to be
counted.
William


5179 } else if (maxGlyph > 0 && code > maxGlyph) {
5180            // Ignore this code.
5181            // Using it will exceed the number of glyphs in the font and
generate
5182            // /rangecheck in --xyshow--
5183            if (nChars > 0) {
5184              dxdy[2 * (nChars-1) ] += dx;
5185              dxdy[2 * (nChars-1) + 1 ] += dy;
5186            }</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>