Commit graph

721 commits

Author SHA1 Message Date
Carl Worth
1b11d3830b test/zero-alpha: Drop REPS from 100 to 10 for a faster test.
Hopefully this still triggers the bug of interest. I think it should.
2006-06-13 16:42:06 -07:00
Carl Worth
2d269664f1 Add new zero-alpha test to demonstrate (X server?) bug found by Paul Giblock 2006-06-13 16:13:23 -07:00
Kristian Høgsberg
17d41d1f71 Only run fallback-resolution test case when all of PDF, PS and SVG are enabled. 2006-06-13 17:24:36 -04:00
Carl Worth
0662928e4f Clarify that fallback_resolution acts on a per-page granularity.
This explains why the SVG result from the fallback-resolution test
doesn't actually show multiple resolutions in effect at the same time.
2006-06-10 09:44:30 -07:00
Carl Worth
13ba5316fb Test PS and SVG backends in addition to PDF in test/fallback-resolution. 2006-06-10 09:15:31 -07:00
Carl Worth
ebb53b2572 Add text and stroke to falback-resolution test (showing bugs in each). 2006-06-10 08:21:18 -07:00
Carl Worth
b2f274b3e8 New API: Replace cairo_{ps,pdf,svg}_set_dpi with new cairo_surface_set_fallback_resolution.
This just provides the mechanics for storing the value and removing the old
function calls. The new value is still not used anywhere (though nor where
the old values), so there should be no functional change (other than forcing
any programs calling the old API to be updated).
2006-06-09 16:52:17 -07:00
Carl Worth
a812b3c490 Ignore ft-text-vertical-layout binary 2006-06-09 15:37:50 -07:00
Carl Worth
d3c782320a Rename ft-text-vertical-layout reference image according to standard convention.
The standard convention is that the ARGB32 reference image has no
-argb32- component in its name (no real important reason, just
historical). So let's be consist and rename:
test/ft-text-vertical-layout-argb32-ref.png -> test/ft-text-vertical-layout-ref.png
2006-06-07 17:38:09 -07:00
Carl Worth
b7b3d05d78 Fix bug in get-group-target (in the test itself) letting it now pass. 2006-06-07 14:00:15 -07:00
Jinghua Luo
45ca22e5e1 Make image-*-ref.png image as reference image. 2006-06-08 04:06:30 +08:00
Jinghua Luo
6b5be506ed Add ft-text-vertical-layout test case for vertical layout. 2006-06-08 03:33:38 +08:00
Carl Worth
b7c7d2e57c Add new test get-group-target (currently failing with paginated).
This test exercises the combination of cairo_get_group_target along
with cairo_surface_get_device_offset. Something funny is currently
going on with the surfaces based on the paginated surface.
2006-06-07 10:37:29 -07:00
Carl Worth
53bf2f8d5d Remove debugging "prints" of images from test/device-offset.c 2006-06-07 10:29:33 -07:00
Carl Worth
ef10a0403a Remove initial, final, and duplicate blank lines.
This patch was produced by running git-stripspace on all *.[ch] files
within cairo. Note that this script would have also created all the changes
from the previous commits to remove trailing whitespace.
2006-06-06 15:50:33 -07:00
Carl Worth
5278de0997 Remove all remaining trailing whitespace.
This patch was produced with the following (GNU) sed script:

	sed -i -r -e 's/[ \t]+$//'

run on all *.[ch] files within cairo.

Note that the above script would have also created all the changes
from the previous commits to remove trailing whitespace.
2006-06-06 15:41:31 -07:00
Carl Worth
00592e0757 Remove trailing whitespace from lines with a single brace.
This patch was produced with the following (GNU) sed script:

	sed -i -r -e '/^[ \t]*[{}][ \t]*/ s/[ \t]+$//'

run on all *.[ch] files within cairo.
2006-06-06 15:38:58 -07:00
Carl Worth
4670366ede Remove trailing whitespace from lines that look like comments.
This patch was produced with the following (GNU) sed script:

	sed -i -r -e '/^[ \t]*\/?\*/ s/[ \t]+$//'

run on all *.[ch] files within cairo, (though I manually excluded
src/cairo-atsui-font.c which has a code line that appears as a comment
to this script).
2006-06-06 15:35:48 -07:00
Carl Worth
80b8deb1e4 Remove extraneous whitespace from "blank" lines.
This patch was produced with the following (GNU) sed script:

	sed -i -r -e 's/^[ \t]+$//'

run on all *.[ch] files within cairo.
2006-06-06 15:25:49 -07:00
Christian Biesinger
79c86b04a7 Add "html" Makefile target to run make-html.pl 2006-05-28 16:50:54 +02:00
Christian Biesinger
508d0955fb Distribute make-html.pl 2006-05-27 15:00:49 +02:00
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