Bug 86535

Summary: Small objects in vector backends are optimized away
Product: cairo Reporter: Adrian Johnson <ajohnson>
Component: generalAssignee: Chris Wilson <chris>
Status: RESOLVED DUPLICATE QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: test case

Description Adrian Johnson 2014-11-21 21:01:56 UTC
Created attachment 109815 [details]
test case

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770297 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.
Comment 1 Adrian Johnson 2016-07-16 11:14:11 UTC

*** This bug has been marked as a duplicate of bug 94615 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.