Summary: | pattern and dashes incompatible! | ||
---|---|---|---|
Product: | cairo | Reporter: | Charles Doutriaux <doutriaux1> |
Component: | general | Assignee: | Carl Worth <cworth> |
Status: | RESOLVED DUPLICATE | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | high | ||
Version: | 1.4.10 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
cairo configure log
good (working) ps file bad (weird lines) ps file |
Description
Charles Doutriaux
2007-11-27 11:43:59 UTC
I am unable to reproduce the problem. What PostScript viewer are you using? Can you attach the PostScript output and screenshots of the problem. Created attachment 12748 [details]
cairo configure log
reproducible under mac/lunix, cairo 1.4.10 or 1.4.12 (not 1.5.2, but i have other things that break under 1.5.2) I'm attaching the "good" (no pattenr) and bad (dash,argb32,pattern) version as ps I'm also pasting here my gs version: gs --version 8.57 and my config.log file is attached Created attachment 12749 [details]
good (working) ps file
"good" (except the black background in pattern), but the line is correct
Created attachment 12751 [details]
bad (weird lines) ps file
now simply by creating the image pattern as ARGB32 i get this!
or it works if i turn off the dashes...
NOTE I had to reduce the size of the square otherwise the ps couldn't be attached, but the bug (lines) is still here
When using the PostScript backend to draw something that is not supported by PostScript, cairo will use fallback images. Before 1.5.2 many drawing operations that could be supported by PostScript were not implemented in the PostScript backend which resulted in unnecessary fallback images. An additional problem was that full page fallback images were used. In the example you attached you are painting an ARGB32 image. The PostScript backend assumes this contains transparency. As PostScript does not support transparency the backend uses a full page image fallback. You can see in bad.ps that it contains one big image. This has been fixed in 1.5.2 where ARGB32 images are analyzed to check if they really do contain transparency and all fallback images only cover the unsupported region instead of the entire page. The problem of the incorrectly drawn dashed line is in the fallback image. I don't know what the problem is but as it is not a problem with the PostScript backend I am moving this bug to general. You mentioned that you have found regressions in 1.5.2. Please open bug reports for these problems as we would like to fix them before the 1.6 release. |
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.