<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 - Small objects in vector backends are optimized away"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=86535">86535</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Small objects in vector backends are optimized away
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>cairo
          </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>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>chris@chris-wilson.co.uk
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ajohnson@redneon.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=109815" name="attach_109815" title="test case">attachment 109815</a> <a href="attachment.cgi?id=109815&action=edit" title="test case">[details]</a></span>
test case

<a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770297">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770297</a> has a pdf that loses
the minus signs after running through pdftocairo.

I've reduced the pdf to a minimal test case that draws a single minus sign (the
minus sign is drawn as an image mask).

Reproduce with:

pdftocairo -pdf test.pdf out.pdf

or any other vector backend. The minus sign is lost.

eg

pdftocairo -ps test.pdf out.ps

and observe that the image is not included in the output:

%%EndPageSetup
q 0 883 0 1 rectclip q
Q Q
showpage


I found _cairo_pattern_get_extents was rounding the height down to 0. It seems
to be assuming that all backends are pixel based.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>