[cairo] Problem with unaligned clip regions

Uli Schlachter psychon at znc.in
Mon Mar 21 12:56:07 PDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 18.03.2011 19:39, Tristan Schmelcher wrote:
> I've received permission to contribute code to Cairo. Attached is my
> original file with the LGPL/MPL dual license.

Thanks. I added this to the test and did some further changes to it (e.g.
push_group instead of create_similar and simplified the clip).
The result is attached.

Then I noticed that cairo already has a test called "operator-source" and
thought that it would make more sense to expand it to also cover this bug
(sorry). Since this should affect all unaligned boxes drawn with operator
"source", it only needed minor modifications.
Attached are the two git commits for this (the change to the test and yet
another fix). Anyone got some comments about these?

However, even before this change "operator-source" fails for me because
apparently I don't have the right font. Is there anyone out there who has the
right font? Could that someone generate some reference images for me?
Currently, cairo has these images for "operator-source":

operator-source.image16.ref.png
operator-source.pdf.rgb24.ref.png
operator-source.quartz.argb32.ref.png
operator-source.quartz.rgb24.ref.png
operator-source.ref.png
operator-source.rgb24.ref.png
operator-source.svg12.argb32.xfail.png
operator-source.svg12.rgb24.xfail.png
operator-source.xlib-fallback.ref.png
operator-source.xlib.ref.png
operator-source.xlib.rgb24.ref.png

If no one comes up with some images, I will use my local results for the new
images and push those. Someone else can then later push the "correct" reference
images.

Cheers,
Uli

- -- 
Sometimes the people that know software the best are the ones
that hate it the most.                                      -- infogulch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBCAAGBQJNh61WAAoJECLkKOvLj8sGfZUH/js6ITvzqxcr+pBN64gCjtsk
UTyAuHs8FH5kJTohXK58CVnqCyMovYvLf7faXSmdHuS5QVPDJWxiBOB9meEaoqCt
QEILpJHGSXmufst492nPhC4X4SbXMUgJy2p8zcXrljYmOs96sIBLsYjc8CPZLLYR
UVTp6U2v/LrdVdQJrBulPx5Q6JFfyjdqOfyVPDMyH8HNR2HeDDlXlLKXenMmVYnm
WkFhigl+cp5fbZCqGRaLgSt6YbDKyEReuH8SrU18l6c1IFMwMSLcBCIK7aRt1oem
HbFbPKcKZRfCjuvZMmSVIWQhALlj7mwwxc4i4wEbrETSG3PNoH9ELmDdupgWGMk=
=K4P5
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-csrc
Size: 2720 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20110321/d5678ee7/attachment.c>


More information about the cairo mailing list