Bug 86535 - Small objects in vector backends are optimized away
Summary: Small objects in vector backends are optimized away
Status: RESOLVED DUPLICATE of bug 94615
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Chris Wilson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-21 21:01 UTC by Adrian Johnson
Modified: 2016-07-16 11:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
test case (33.61 KB, application/pdf)
2014-11-21 21:01 UTC, Adrian Johnson
Details

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.