Commit graph

1900 commits

Author SHA1 Message Date
Christian Biesinger
f072d4ed66 Add missing reference images to EXTRA_DIST 2006-05-25 21:21:31 +02:00
Carl Worth
22232be759 Note the changed semantics of cairo_surface_set_device_offset
Specifically, device offsets now affect using the offset surface in
a source pattern as well as drawing to the surface. This behavior
os also verified with a new test case: test/device-offset.c
2006-05-24 17:24:52 -07:00
Carl Worth
d0dd3b822e New API: Add new function cairo_surface_get_content
This assumes that the directfb, glitz, and quartz backends
always create surfaces with content of COLOR_ALPHA which might
be totally wrong.
2006-05-24 17:19:00 -07:00
Carl Worth
0796845ae6 Add new fallback-resolution test for bug in cairo_pdf_surface_set_dpi 2006-05-24 14:03:49 -07:00
Carl Worth
65b9217cad cairo-xlib-test: Rename cairo_test_xlib function prefix to cairo_xlib_test 2006-05-24 11:37:05 -07:00
Carl Worth
5acce60291 Typo fixes 2006-05-24 10:35:24 -07:00
Carl Worth
1b1b59a4a9 New test: dash-scale
Tests interactions of cairo_set_dash and cairo_scale, (in particular with a
non-uniformly scaled pen).
2006-05-23 12:13:20 -07:00
Carl Worth
b1231e2ef3 Codify 1.0 behavior of cairo_set_line_width as a feature, not a bug.
Clarify the documentation of cairo_set_line_width to indicate that the
value will be interpreted within the user space at the time of the
stroke.

Also adjust the comments in test/line-width-scale as well as the
reference images for that test to match.
2006-05-23 12:13:19 -07:00
Carl Worth
0a1ec91977 Move prototype of cairo_debug_reset_static_data from uninstalled cairo-debug.h to cairo.h 2006-05-22 09:31:31 -07:00
Carl Worth
bf2ab0de92 PDF: Add Type3 font support to PDF output.
This uses the recently added cairo-scaled-font-subsets interface in a
style very similar to what the PS surface does.
2006-05-15 10:04:53 -07:00
Tim Mooney
b7e9506707 bug #6890: fix the signature for main() in pthread-show-text 2006-05-10 20:51:53 -07:00
Carl Worth
172fd2f6a6 Fix typo in select-font-face.c and update reference images 2006-05-09 14:39:08 -07:00
Carl Worth
f0d7e3f858 Add select-font-face test for whosing multiple faces at once. 2006-05-09 14:15:27 -07:00
Emmanuel Pacaud
09e94c6a31 SVG: Add reference images for fill-and-stroke-alpha.
It fails on a one digit color error.
2006-05-05 20:31:48 +02:00
Carl Worth
ac470b0238 Don't build pdf2svg until we start depending on newer poppler 2006-05-05 07:57:10 -07:00
Carl Worth
44572fdcc8 Revert "pdf2png: Use new poppler_page_render to render directly through cairo."
This introduced a rather gratuitous dependency on a newer version of
poppler, which caused a fair amount of pain for no significant
benefit.

This reverts 253472492e commit.
2006-05-05 07:51:59 -07:00
Carl Worth
7ba3b75efd Fix typos in EXTRA_DIST list of reference images. 2006-05-04 23:44:07 -07:00
Carl Worth
344c2c7acd Add a couple more group-using tests: fill-and-stroke-alpha[-add] 2006-05-04 21:35:23 -07:00
Carl Worth
a16f0b4223 Add push-group to test/.gitignore 2006-05-04 15:55:05 -07:00
Ian Osgood
57a0242d06 Additional piece of "Fix the XCB backend build for the XCB 0.9 release." 2006-05-04 14:43:03 -07:00
Emmanuel Pacaud
457132fc2b SVG: Don't test rectangle-rounding-error.
This test uses CAIRO_ANTIALIAS_NONE, which is not supported yet by
the SVG backend.
2006-05-04 21:41:36 +02:00
Emmanuel Pacaud
f6748ad030 SVG: Add reference image for tests failing on composited image misplacement.
There's a bug in librsvg/cairo that offsets composited images by half a pixel.
http://bugzilla.gnome.org/show_bug.cgi?id=330055
2006-05-04 21:40:17 +02:00
Emmanuel Pacaud
720edfe865 SVG: Add reference images for push-groups test.
Tests just fail for a one digit color on error.
2006-05-04 18:53:51 +02:00
Emmanuel Pacaud
a3997501fa SVG: Update reference images for shrinked tests. 2006-05-04 18:40:37 +02:00
Emmanuel Pacaud
a428f11738 SVG: Fix bug in test suite causing SVG to fail with rgb24 and device offsets.
Same fix as for PDF and PS surfaces.
2006-05-04 14:18:59 +02:00
Vladimir Vukicevic
7fa3c6eee5 Add push-group test and reference images 2006-05-04 02:53:45 -07:00
Vladimir Vukicevic
ee02c1b914 Implement push_group/pop_group
This patch adds the following API calls:

 cairo_push_group
 cairo_push_group_with_content
 cairo_pop_group
 cairo_pop_group_to_source
 cairo_get_group_target

These methods support implementing layers on top of a cairo context,
allowing for drawing with transparency and temporary buffering.
cairo_get_group_target allows an app to get access to the actual surface
created by the last push_group call, in case itneeds to perform native
drawing to it.
2006-05-04 02:52:38 -07:00
Carl Worth
a6b1b014bb Implement the device_offset functionality at surface, not gstate layer
This is a mega-patch that has the advantage that the entire test suite
passes both immediately before and immediately after this commit.

The disadvantage of the mega-patch is that it does not reflect the
development history of the device-offset branch, (with its various
fumblings and flailings). To capture that history, we will next merge
in that branch.
2006-05-04 01:45:41 -07:00
Carl Worth
40b39dddf9 Shrink the size of a couple of tests (and update reference images).
Shrink linear-gradient and text-pattern test outuput.

The real motivation for this is to hide an annoying difference in the
gradient output that occurs when under the influence of a device
offsets. My opinion is that the gradient output should not change due
to just an integer offset, but we currently don't have a precise
gradient specification, so this minor deviation really isn't relevant.

A better fix for this might have been to make the test suite more
forgiving of tiny differences, (perhaps on a per-test basis), but
another advantage of shrinking these tests is that they now run a lot
faster.

It is true that these tests now also exercise fewer different output
values, but that's not the designed purpose of the tests so I don't
feel bad about losing that characteristic.
2006-05-03 23:44:59 -07:00
Vladimir Vukicevic
b3e2252b94 Augment test framework to test everything under device offsets as well.
[With this change, two tests with gradients exhibit subtle differences
under device offsets. I don't think we actually care about them
though. -cworth]
2006-05-03 23:42:45 -07:00
Carl Worth
8a174a1139 Add test/pdf-features.c missing from an earlier commit 2006-05-03 13:20:07 -07:00
Carl Worth
7c825797c8 Add pdf2svg utility for manual testing (not used in test suite) 2006-05-03 13:18:40 -07:00
Carl Worth
c35bfffa10 Add new pdf-features test to exercise cairo_pdf_surface_set_size 2006-05-03 12:39:45 -07:00
Carl Worth
5448278d6e ps-features: Minor touchups (missing include, typo in error message) 2006-05-03 12:38:49 -07:00
Carl Worth
6acc836df2 Add backend-specific reference images to EXTRA_DIST so they'll go out in the tar file. 2006-05-03 00:57:28 -07:00
Carl Worth
09dfd6c3c1 PS: Add three new public functions for emitting DSC comments.
This commit adds the following new functions to the cairo-ps API:

	cairo_ps_surface_dsc_comment
	cairo_ps_surface_dsc_begin_setup
	cairo_ps_surface_dsc_begin_page_setup

Many thanks are due to Michael Sweet who provided invaluble guidance
during the design of this API.

It is hoped that with this API in place, basically all printer control
that is likely to be desired to be performed with cairo PostScript
output is now possible.

This commit augments the ps-features test to exercise the new API.
2006-05-03 00:26:22 -07:00
Carl Worth
253472492e pdf2png: Use new poppler_page_render to render directly through cairo.
...as opposed to using poppler_page_render_to_pixbuf.
2006-05-02 16:57:27 -07:00
Emmanuel Pacaud
e7459428dc SVG: Convert SVG file with a resolution of 72 dpi.
That means 1 point = 1 pixel
2006-05-02 23:37:23 +02:00
Carl Worth
8488aaee1a PS: Add cairo_ps_surface_set_size along with ps-features test
Add a new cairo_ps_surface_set_size which can be used to produce a
PostScript file consisting of pages of various different sizes (or
orientations).

Also add a new test (ps-features.c) for testing this and subsequent
ps-specific function calls.
2006-05-02 12:36:35 -07:00
Emmanuel Pacaud
0c927c5388 SVG: Add reference images for tests failing on 1 digit error on color. 2006-05-01 23:23:02 +02:00
Emmanuel Pacaud
0625d4cd3f SVG: Ignore SVG test files. 2006-05-01 22:15:38 +02:00
Emmanuel Pacaud
d1dcbbb8c3 SVG: Update rgb24 reference files.
(cherry picked from 7173951535f4b95da37cbf3d51143deeec95e47a commit)
2006-05-01 22:13:18 +02:00
Emmanuel Pacaud
6a33993b15 Merge branch 'origin' 2006-05-01 22:01:38 +02:00
Emmanuel Pacaud
b920dfd3df SVG: Reenable operator tests, and rgb24 surface are meta-surfaces. 2006-05-01 21:59:53 +02:00
Carl Worth
3aa5d76d23 Add missing file leaky-dash-ref.png 2006-04-29 14:28:21 -07:00
Carl Worth
9729fe6024 Add line-width-scale test to demonstrate cairo_set_line_width bug 2006-04-27 11:45:38 -07:00
Emmanuel Pacaud
5515191f84 Use CLEAR operator in mask.c in order to not trig image fallback
for polygon masking.
(cherry picked from 30b2d1c5df9d1c6b536838a6a3407fdfa7198e29 commit)
2006-04-27 06:50:37 -07:00
Christian Biesinger
9ab4b81a09 Use a single LDADD variable instead of a per-test one
to avoid repeating the list of tests.
2006-04-27 00:51:01 +02:00
Carl Worth
e0a2e1fd14 Add leaky-dash test case demonstrating bug #4863.
Test case for bug #4863:

	stroking problems with wide dashed lines
	https://bugs.freedesktop.org/show_bug.cgi?id=4863
2006-04-26 12:51:54 -07:00
Carl Worth
e4b3cb1e71 Remove deleted reference images from Makefile.am 2006-04-26 12:49:58 -07:00