Commit graph

4798 commits

Author SHA1 Message Date
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
67d543716e PS: Fix to never break the final ~> that terminates a base85 stream.
This was recently broken in commit 40d5082c24
which uses a base85-stream but without strings for encapsulating image
data. The bug was that the protection for ~> was only being applied
to the string encodings rather than all base85 streams.

We got lucky recently that the 24.8 change just happened to put the ~>
sequence on the line-wrap boundary so the test suite tripped up the
bug. Otherwise, we could have missed this for quite some time.
2008-02-27 20:39:53 -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
Vladimir Vukicevic
1889427e78 Fix usage of rectangle_int16_t in ps surface, and rename types
The rectangle_int16_t usage was causing failures on 24.8 (due to a wrong
pointer used to get_extents); I removed all the specific int16/int32 typedefs
to avoid this situation in the future.
2008-02-27 12:36:16 -05:00
Chris Wilson
4f7d306352 [cairo-paginated-surface] Fix enum compiler warning.
Add a CAIRO_SURFACE_TYPE_QUARTZ_IMAGE to the switch to suppress a
compiler warning.
2008-02-27 10:11:08 +00:00
Chris Wilson
cb5ea8abfd [cairo-image-surface] Compiler warnings and whitespace.
Silence a couple of enum compiler warnings and tweak the whitespace.
2008-02-27 09:51:37 +00:00
Chris Wilson
22600e2393 [cairo-gstate] Remove a couple of impossible guards.
Delete a couple of superfluous gstate != NULL guards.
2008-02-27 09:48:24 +00:00
Chris Wilson
37e597f1e5 [cairo-gstate] Propagate the error from _cairo_gstate_clone().
Propagate the true status value back from the _cairo_gstate_init_copy()
instead of assuming that is a NO_MEMORY and re-raising the error in the
caller.
2008-02-27 09:48:13 +00:00
Chris Wilson
127d7f43ea [cairo-path-bounds] _cairo_path_fixed_bounds() can fail...
I was wrong in my assertion that the call to
_cairo_path_fixed_interpret_flat() could not possibly fail with the
given _cairo_path_bounder_* callbacks - as I had missed the implicit
spline decomposition. (An interesting exercise would be to avoid the
spline allocation...) As a result we do have to check and propagate the
status return through the call stack.
2008-02-27 09:47:35 +00: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
Chris Wilson
cdeffc69d9 [cairo-quartz-surface] Make check fixup.
A couple of minor corrections to satisfy make check.
2008-02-26 17:05:22 +00:00
Adrian Johnson
40f4750f5e Use PDF 're' operator for rectangle paths
Modify cairo-pdf-operators.c to emit to 're' path operator when the
path contains only a rectangle. This can only be done when the path is
logically equivilent to the the path drawn by the 're'
operator. Otherwise dashed strokes may start on the wrong line.

ie the path must be equivalent to:

  cairo_move_to (cr, x, y);
  cairo_rel_line_to (cr, width, 0);
  cairo_rel_line_to (cr, 0, height);
  cairo_rel_line_to (cr, -width, 0);
  cairo_close_path (cr);

which is also equivilent to cairo_rectangle().
2008-02-26 23:17:04 +10:30
Vladimir Vukicevic
7acfee38b1 [atsui] Make default font 'Helvetica'
The previous default font was Monaco, which is a fixed-pitch font; Helvetica
is more inline with the other platform defaults.
2008-02-25 21:44:04 -05: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
Vladimir Vukicevic
b439e63808 [quartz] fix mask to correctly take CTM into account 2008-02-25 21:06:25 -05:00
Vladimir Vukicevic
a4975ab117 [quartz] Optimize path handling where possible 2008-02-25 21:06:23 -05:00
Vladimir Vukicevic
63711b1d4a [quartz] Add quartz-image-surface type 2008-02-25 21:06:21 -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
7c8c9cf334 PDF: Support OPERATOR_SOURCE when pattern is opaque 2008-02-25 21:50:37 +10:30
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
Adrian Johnson
eae259168f Using correct surface size and clip when analyzing meta surface patterns
The surface size and clip needs to be saved before and restored after
replaying meta surface patterns back to the analysis surface. The clip
is reset and the correct surface size is set before replaying the meta
surface.
2008-02-22 21:07:31 +10:30
Adrian Johnson
0db2c67cc5 PS: Replace gsave/grestore with q/Q 2008-02-22 19:43:03 +10:30
Adrian Johnson
187ace8024 PS: Make debug code compile 2008-02-22 19:43:03 +10:30
Carl Worth
8f0ec1174a Patch hole in fabric of time-space continuum 2008-02-21 08:17:33 -08:00
Behdad Esfahbod
70bb2abed0 [cairo-ft] Handle font sizes smaller than 1px correctly
The FT_Set_Char_Size() docs say it replaces sizes smaller than 1.0 with 1.0.
So, we can't use x_scale and y_scale values less than one.  The fix is easy thouh,
cap them to 1.0 and let the FT transform do the scaling down.
2008-02-20 20:55:21 -05:00
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
Emmanuel Pacaud
70b683363f [SVG] Fix a8-mask test failure.
For A8 and A1 masks, the embedded mask image doesn't have an alpha channel.
In this case, the feColorMatrix should not be used, since it's goal is to
discard the color channels and to only keep the alpha one (which is what
we want when we have an ARGB32 mask image, since SVG uses all the channels
for the mask operation, where cairo only use the alpha channel).
2008-02-20 23:46:27 +01:00
Emmanuel Pacaud
c5d056aaeb [SVG] Fix the extend-reflect-similar test failure.
SVG doesn't support extend reflect for image pattern, and there isn't
any trivial way to emulate this feature. So we use the image fallback
for now. This fix also forces an image fallback for extend-reflect, but
in the end, it generates more or less the same file (one big image for
the pattern). No other test is forced to use an image fallback by this
patch.
2008-02-20 21:51:21 +01:00
Carl Worth
1d236521a5 Increment cairo version to 1.5.11 after the 1.5.10 snapshot 2008-02-20 10:00:41 -08:00
Carl Worth
83489f623f SGML churn 2008-02-20 10:00:31 -08:00
Carl Worth
0f2ecb5ec6 Update REFERENCE_IMAGES for distcheck 2008-02-20 08:24:32 -08:00
Carl Worth
ee62a5fad6 Mention that cairo_get_current_point is void again 2008-02-20 08:08:52 -08:00
Carl Worth
118657136d Increment cairo version to 1.5.10 and libtool versioning to 17:0:15 2008-02-20 08:06:39 -08:00
Carl Worth
5aacc54c43 NEWS: Add notes for cairo 1.5.10 2008-02-20 08:02:45 -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
Carl Worth
c197c684a6 Update ps-specific reference images for ghostscript 8.61
I was wrong in the previous message where I said I had ghostscript 8.61
installed. I do now, (and "gs --version" says the same thing), and
here are the new reference images.
2008-02-20 05:58:42 -08:00
Carl Worth
8d2d413014 Expand the documentation of cairo/test/README
Add notes on CAIRO_REF_DIR and the version requirements of
poppler and ghostscript necessary for getting no failures.
2008-02-20 05:11:53 -08:00
Carl Worth
4d42f56900 Update ps-specific reference images
Presumably these are due to ghostscript version churn. I don't
know what version was used in the past, but we're going to be
more careful about documenting versions now.

The ghostscript package I used here advertises itself as "8.61"
and "gs --version" reports 8.15.3.
2008-02-20 04:22:58 -08:00
Carl Worth
78b270601c Add poppler-specific reference image for source-clip-scale
This one doesn't have any associated poppler bug report. The
rendering by poppler is totally reasonable, and not problematic
at all with respect to what the test is actually testing for.
2008-02-20 04:04:05 -08:00