Commit graph

930 commits

Author SHA1 Message Date
Carl Worth
af8928fa8b Add svg-specific reference image for ft-show-glyphs-positioning test
There was no failure here, just minor rasterization differences.
2008-03-26 14:52:09 -07:00
Carl Worth
fbab4bbb06 Update clip-operator and operator-clear reference images
There were legitimate bugs in the ps and pdf backends for these
tests, (particularly with the row of glyphs), but these bugs
were recently fixed with:

commit d89edde84d
Author: Vladimir Vukicevic <vladimir@pobox.com>
Date:   Tue Mar 4 00:15:46 2008 -0800

    [meta] always copy glyph array before passing to _cairo_surface_show_glyphs

and we just failed to notice the fix at the time.
2008-03-26 14:52:09 -07:00
Carl Worth
75972167a2 Use floating-point offsets for color stops
Previously we were using the cairo_fixed_t type which meant we've
historically only been using 16 bits of precision for these offsets,
and recently only 8 bits. Meanwhile, all manipulatons of offsets
have been in floating-point anyway, so we might as well store them
that way.

This change also prevents a rendering regression introduced with the
24.8->16.16 change betwen snapshots 1.5.10 and 1.5.12 .

This change affected gradient-rendering details for the clip-operator
and operator-source tests, so the corresponding reference images are
updated here.
2008-03-26 14:52:09 -07:00
Vladimir Vukicevic
ae143d779b [quartz] When stroking with an image source, use the right CTM for the image
Since the CTM was modified for the stroke transform, we need to reset
it before calling ConcatCTM for the source transform.
2008-03-25 11:17:57 -07:00
Carl Worth
ee3981fb92 Add new text-transform test
Previously, the test suite wasn't supplying any coverage of transformed
text rendering.
2008-03-24 16:26:28 -07:00
Adrian Johnson
184d9cbf9c Update REFERENCE_IMAGES with PS ref images
for finer finer-grained-fallbacks.
2008-03-24 12:36:37 +10:30
Adrian Johnson
2ad3915797 Add PS reference images for finer-grained-fallbacks test 2008-03-24 12:32:07 +10:30
Adrian Johnson
179ab7d286 Add finer-grained-fallbacks test
This reproduces the bug in PS/PDF/Win32-printing where an unsupported
operation that is off the page causes an unsupported operation
assertion in the backend.
2008-03-24 11:43:29 +10:30
Adrian Johnson
c459932482 Update PS reference images
Some of the text tests require new PS specific reference images as a
result of the PS glyph positioning fix.
2008-03-21 18:12:03 +10:30
Adrian Johnson
f3a5f75701 Add PS/PDF ref images for ft-show-glyphs-positioning 2008-03-21 16:34:01 +10:30
Adrian Johnson
8348668452 Add ft-show-glyphs-positioning test
This demonstrates the glyph positioning bug in the PS backend.
2008-03-21 16:14:56 +10:30
Carl Worth
f4d4d7b3d0 Cleanup up png-test.png file in 'make clean' 2008-03-20 16:13:28 -07:00
Carl Worth
191440101e Fix the REFERENCE_IMAGES list, (like always before a snapshot) 2008-03-20 12:38:26 -07:00
Carl Worth
c91a2a2e80 Track minor change in pixman filtering sample location
This change in reference image was triggered by the following commit
in the pixman library:

	commit f2d8a5caa63596739b4dc47c00daaaafd9f522e2
	Author: Søren Sandmann <sandmann@redhat.com>
	Date:   Mon Mar 10 23:41:52 2008 -0400

	Add rounding epsilon for NEAREST filter after transformation, not before.

This hasn't appeared in a pixman release yet. So for now, getting
correct results is a matter of "use latest pixman". Soon we'll
have a new pixman release and we'll make cairo depend on that.
2008-03-20 11:51:57 -07:00
Vladimir Vukicevic
1ab804891b [quartz] Additional test reference images for quartz 2008-03-17 17:37:24 -07:00
Adrian Johnson
8238a9fd4f Add stroke-ctm-caps to .gitignore 2008-03-15 22:08:52 +10:30
Adrian Johnson
2bd15d080c Add PS reference image for stroke-ctm-caps 2008-03-14 19:46:15 +10:30
Vladimir Vukicevic
4cc93881d9 [test] Add testcase for previous stroker regression fix
Add Adrian's original testcase for reproducing the stroker device
vector issue.  (b4f518f917)
2008-03-13 17:30:59 -07:00
Vladimir Vukicevic
b4f518f917 Correctly pass the device-space vector through to stroker
Part of the earlier optimization caused the wrong slope to be used for
some computations; this passes the correct slope vector down to
_compute_face.
2008-03-13 15:37:57 -07:00
Vladimir Vukicevic
091df2c59b [quartz] properly honor text antialiasing modes in show_glyphs 2008-03-08 15:16:05 -08:00
Vladimir Vukicevic
869942a97e [quartz] some more quartz ref images 2008-03-07 16:55:47 -08:00
Vladimir Vukicevic
2e33d5f57b [quartz] Update a bunch of reference images
Generated with Bitstream Vera font family installed, using ATSUI
font backend.
2008-03-07 16:46:53 -08:00
Chris Wilson
11a2444ec8 [cairo-png] Support generating CAIRO_FORMAT_RGB24 from PNGs.
If the PNG does not have an alpha channel, then create an opaque image.
2008-03-04 09:31:21 +00:00
Chris Wilson
b181f40949 [test/a8-mask] Check negative strides as well.
Check that we also allow surfaces to be created using a negative stride.
2008-03-04 09:31:20 +00:00
Carl Worth
e7e4a03dd3 get-path-extents: Fix APPROX_EQUALS to round values on both sides of the comparison 2008-02-28 16:39:42 -08:00
Carl Worth
602489b150 get-path-extents: Use APPROX_EQUALS instead of EQUALS for text path tests
This is done grudgingly due to freetype rounding the coordinates
of the extents when hinting is enabled.
2008-02-28 16:33:51 -08:00
Carl Worth
50a6fe1a2a Remove unnecessary cairo_set_tolerance call from get-path-extents test 2008-02-28 16:32:55 -08:00
Carl Worth
4cc174f72f Mark the big-line test as XFAIL 2008-02-28 15:41:36 -08:00
Carl Worth
5d0bc97b20 Fix incorrect reference images for big-line test
I mistakenly generated the original reference images with
a 16.16 version of cairo, (which manifests a different
buggy behavior than does the current 24.8 cairo).
2008-02-28 15:35:46 -08:00
Larry Ewing
307a7448ea Add big-line test showing a 24.8 failure 2008-02-28 15:02:23 -08:00
Carl Worth
fa4b91fcac Add missing reference images to make distcheck happily 2008-02-28 12:56:31 -08:00
Carl Worth
a95b22858f Merge branch '24.8' 2008-02-28 12:30:13 -08:00
Carl Worth
c84ec58512 Add some missing .gitignore entries 2008-02-27 16:24:10 -08:00
Carl Worth
1df0b001b5 Change cairo's fixed-point format from 16.16 to 24.8
The additional 8 bits of integer allows device space to be 256
times larger before applications need to start worrying about
any issues with overflow. So this should help in many cases.
And the loss of 8 bits of sub-pixel precision shouldn't cause
any harm at all---16 was really much more than necessary.

With this change the details of rasterization for several tests
are changed slightly, (particularly on arcs, for example), so
many reference images are updated here.

NOTE: This change is currently breaking get-path-extents for
ps/pdf/svg as well as push-group for ps. We do not yet know
the reasons for these new failures.
2008-02-27 15:08:18 -08:00
Carl Worth
0532cb5c03 Remove reference images for text-zero-len
This test isn't generating any image output, so it's silly to
have a 60x60 reference image for that. Not only that, but the
rgb24 cases have always been failing due to a missing rgb24-
specific reference image, (but pdiff had been hiding that).
2008-02-27 13:18:39 -08:00
Carl Worth
427a73ab31 Add ps-specific reference images for two recently-added tests 2008-02-27 12:43:37 -08:00
Carl Worth
676c869d79 Add some new ps-specific reference images
These are necessary now due to the recent change to use pdiff
only when the differences are less than a particular threshold.
2008-02-27 11:24:59 -08:00
Chris Wilson
65a8a27943 [test] Add reflected-stroke to exercise stroking with a reflected ctm.
Parts of the stroker depend upon whether we have in effect a reflection
matrix (one whose determinant < 0). This test incopororates the same
drawing under the a couple of reflections to exercise stroking under
matrices with both positive and negative determinants.
2008-02-26 17:06:18 +00:00
Chris Wilson
76f0613e5f [test] Add long-dashed-lines to exercise _cairo_box_intersects_line_segment().
Draw a few rectangles whose vertices are outside the bounds of the
surface, but whose segments cross the surface. This exercises the new
dashed stroker optimisation which tries to determine whether the line
segment is visible.
2008-02-26 17:05:28 +00:00
Vladimir Vukicevic
9979f786ac [test] update degenerate-pen test
pdiff was hiding a rgb24 failure here, as the test was drawing using
black ink on the default black background.  Instead, explicitly fill
the surface with white first.
2008-02-25 21:27:33 -05:00
Vladimir Vukicevic
baec928a69 [quartz] More mask fixes -- handle all types via fallback mask image 2008-02-25 21:06:36 -05:00
Vladimir Vukicevic
3fcd0be522 Use pdiff only if the pixel difference is less than a limit 2008-02-25 21:06:35 -05:00
Vladimir Vukicevic
1dfb1bd45f [quartz] update test suite images for quartz 2008-02-25 21:06:28 -05:00
Behdad Esfahbod
ecb54b9696 [test/get-path-extents] Don't use short-circuit && operators
That causes some tests to be skipped if the preceding test failed.
2008-02-25 19:48:58 -05:00
Behdad Esfahbod
be316b7cfa [test]/get-path-extents] Use %g instead of %f to print doubles 2008-02-25 19:36:44 -05:00
Adrian Johnson
35295546ef Add mask pdf ref images
The mask test pdf output is now correct. Poppler ref images
are required due to minor gradient rendering differences.
2008-02-22 22:06:25 +10:30
Adrian Johnson
1df969158c Refresh clip-operator ps/pdf ref images
Because the meta surface analysis fix increased the size of some of
the fallback images.
2008-02-22 21:59:47 +10:30
Carl Worth
dcab5019d5 Add poppler-specific reference image for radial-gradient
This is justified by the previously mentioned bug on poppler
gradients. Note that this test only passes with a patch
to fix a bug in poppler (not yet upstream). Here it is:

	PATCH: Keep 'cairo_shape' and 'cairo' consistent
	https://bugs.freedesktop.org/show_bug.cgi?id=14593
2008-02-20 17:35:48 -08:00
Carl Worth
0f2ecb5ec6 Update REFERENCE_IMAGES for distcheck 2008-02-20 08:24:32 -08:00
Carl Worth
f954db72dd Add svg-specific reference image for mask-alpha
There's no apparent bug here.
2008-02-20 06:24:48 -08:00