Commit graph

4015 commits

Author SHA1 Message Date
Adrian Johnson
d24f019101 Add support for PDF meta-surface patterns 2007-09-05 22:26:16 +09:30
Behdad Esfahbod
b85032584b [configure.in] Fix non-pkgconfig Xrender detection path (#4724) 2007-09-05 00:26:56 -04:00
Behdad Esfahbod
1d788da517 Merge branch 'no-xrender.h' into cairo 2007-09-04 19:12:48 -04:00
Behdad Esfahbod
e1819a24fb [cairo-xlib-xrender-private] Remove some protocol-specific macros 2007-09-04 19:12:14 -04:00
Behdad Esfahbod
5e09126ce1 [cairo-xlib-xrender-private] Add copyright/license info for copied files 2007-09-04 18:40:54 -04:00
Carl Worth
49ae376840 Fix error in description of cairo version numbers
And eliminate a bit of redundant text.
2007-09-04 11:37:46 -07:00
Chris Wilson
b60c0a672f [cairo-boilerplate] Introduce CAIRO_TEST_TARGET_EXCLUDE.
As opposed to the CAIRO_TEST_TARGET env var which lists the exact
targets to test, CAIRO_TEST_TARGET_EXCLUDE instead supplies a list of
targets to filter from the testing set. This is useful under
circumstances where the build environment prevents testing of a target,
for example no DirectFB support or the glitz library is broken, but where
you still want to perform the minimal check that the code compiles.
2007-09-03 14:37:16 +01:00
Behdad Esfahbod
740fed62d2 [xlib] Make it compile without Xrender available at compile time (#12210) 2007-08-31 20:52:43 -04:00
Jody Goldberg
c8ed3e1827 [PDF] The symbol 'GROUP' is already used on some win32 systems; add a prefix 2007-08-31 17:00:36 -04:00
Chris Wilson
c14cf02f61 [cairo-surface] Add a comment about why the glyph array is not const.
As penance for attempting to make the glyph array constant, add a
comment block to explain that the backends rely on being able to modify
the array.
2007-08-31 17:21:02 +01:00
Chris Wilson
e8e3bfc130 Revert "[cairo-gstate] Avoid copying untransformed glyphs."
This reverts commit 919bea6dbb.

Sadly as Behdad points out some backends do modify the glyph array and,
for example cairo-xlib-surface, hide this from the compiler with some
evil casts.
2007-08-31 16:53:21 +01:00
Chris Wilson
919bea6dbb [cairo-gstate] Avoid copying untransformed glyphs.
Skip the memory duplication of the incoming glyphs if we do not need
to transform them into the backend coordinate system.

As a consequence we need to constify the glyphs passed to the backend
functions.
2007-08-31 16:28:06 +01:00
Behdad Esfahbod
62377cbac1 [cairo-path-fixed] Remove leftover typedef keyword
Oops!
2007-08-30 19:45:44 -04:00
Behdad Esfahbod
dd406b1ffa [cairo-path-fixed] typedef char cairo_path_fixed_op_t
So it consumes one byte only, instead of the previous enum with
the __attribute__((packed)) that didn't do anything on non-gcc systems.
2007-08-30 18:45:47 -04:00
Carl Worth
e7324454a0 Disable radial-gradient and unbounded-operator tests for pdf
These are failing due to (already reported) poppler bugs.

There were also problems with the gradients in the PDF
files previously, but these have recently been fixed.
2007-08-29 15:26:41 -07:00
Adrian Johnson
f72078fb76 Fix unbounded operator bug in analysis surface 2007-08-29 14:58:48 -07:00
Adrian Johnson
3216275fd9 Fix PDF gradients bug
The PDF surface was adding extra stops at the 0.0 and 1.0 offset when
there was not already stops at these offsets. This has been replaced
with code to move the coordinates of the linear gradient line in to
the position of the first and last offset.
2007-08-29 14:58:36 -07:00
Vladimir Vukicevic
bdc70d1fc2 [win32] call scaled_font_fini in create before returning NULL 2007-08-29 12:52:00 -07:00
Behdad Esfahbod
114b07881e [configure.in] Make PS backend require zlib too (#12210)
The PS backend uses zlib these days.  Make it depend on zlib being available
like PDF has been doing.
2007-08-29 12:19:05 -04:00
Behdad Esfahbod
7f726e5754 [configure.in] Document version scheme 2007-08-29 12:19:05 -04:00
Vladimir Vukicevic
93aee43690 Fix previous create_similar fallback patch
We can't use composite, as some backends don't implement it.
Use paint() instead.
2007-08-28 16:47:24 -07:00
Vladimir Vukicevic
6525d4debb [win32] call free() and not scaled_font_destroy() if scaled init fails
If scaled_font_destroy() is called, a deadlock can result; there's no
reason to call destroy since the initialization failed (and, indeed,
it might not be valid to do so anyway).
2007-08-28 10:54:20 -07:00
Vladimir Vukicevic
ae19b1c991 [win32] Add cairo_win32_font_face_create_for_logfontw_hfont
Patch from: Robert O'Callahan <roc@ocallahans.org>

Add cairo_win32_font_face_create_for_logfontw_hfont, allow win32
scaled_fonts to rescale themselves properly to the required CTM and
only use the font_face's hfont if we're sure it's appropriate.
2007-08-28 10:54:20 -07:00
Vladimir Vukicevic
69dae7ee4a Implement fallback for clone_similar 2007-08-28 10:54:19 -07:00
Vladimir Vukicevic
19fa097f51 [win32] Update win32 Makefiles
Happy building with msys, one location for CFLAGS/etc changes (toplevel),
new pdiff makefile.
2007-08-28 10:54:18 -07:00
Vladimir Vukicevic
f4a8633fce [win32] check correct surface for BitBlt support in get_subimage 2007-08-28 10:54:18 -07:00
Vladimir Vukicevic
9aad6efd2b Fix image_extra arg in call to _cairo_release_source_image 2007-08-28 10:54:17 -07:00
Behdad Esfahbod
7ccae2de6d [perf] Make cairo-perf-diff build cairo-perf-diff-files 2007-08-28 13:46:28 -04:00
Adrian Johnson
766346aa5c PDF: Remove unused code 2007-08-28 20:35:49 +09:30
Adrian Johnson
ad43b7fe6b PDF: Clean up comments 2007-08-28 20:35:23 +09:30
Adrian Johnson
a60beb2eef Fix PDF regression with multipage documents 2007-08-28 20:34:55 +09:30
Carl Worth
1a6b62e599 Disable 7 cairo-pdf tests due to poppler knockout-group bug
The following 7 tests currently fail with poppler due to:

	Poppler does not correctly handle knockout groups
	https://bugs.freedesktop.org/show_bug.cgi?id=12185

and we've verified with acroread that the cairo-pdf output
does render as intended there. The disabled tests are
clip-operator, operator-clear, operator-source, over-above-source,
over-around-source, over-below-source, and over-between-source.
2007-08-27 14:45:51 -07:00
Adrian Johnson
1cdd11873b Add finer-grained fallback support to the PDF surface
The stream handling has been changed to support writing the content to
one or more group objects. Each page has a top level knockout
group. The first operation in the knockout group paints another group
containing the content. Fallback images are painted from the knockout
group. This ensures that fallback images do not composite with any
content under the image.
2007-08-27 14:21:36 -07:00
Carl Worth
1e8446609b Add explanation of pdf_ignored_tests with links to upstream poppler bug reports 2007-08-27 14:02:55 -07:00
Carl Worth
463493af73 Remove svg2pdf and pdf2svg programs from test directory
These are useful programs, but they don't belong in test/.
They are never used in the test suite at all. Instead, these
should exist in some demo package, or as applications in their
own right.

(The motivation for the removal is that someone just encountered
a build error with one of these. And I'm not interested in debugging
build errors for unused components.)
2007-08-27 10:40:06 -07:00
Carl Worth
495c9d19bf One more PS-specific reference image (for over-between-source)
A pixman bug had kept this from being correct earlier. It
works now as long as pixman includes the following fix:

	8ff7213f39edc1b2b8b60d6b0cc5d5f14ca1928d
	rasterize traps that extend outside of the image bounds correctly
2007-08-25 23:39:28 -07:00
Carl Worth
a3c3fe2296 Modify ps-specific reference images for ft-text-vertical tests
I've been seeing failures with the PS backend for these tests
for a while. This is in spite of the face that we've had a PS-
specific reference image for each of these tests. I'm not sure
what the difference is between my current system and the
system used to generate the original ps-specific reference
images.

One thing we definitely need to do is to bundle fonts with the
test suite to avoid problems like this. Another is to start
documenting the systems used to generate reference images.
I get very confused with ghostscript versioning, but I can
at least say that "gs --version" reports 8.15.3 here, (though
the package appears to have an 8.56 version).
2007-08-25 19:24:07 -07:00
Carl Worth
71cc245d5a Add PS-specific reference images for 4 tests
The following 4 tests recently started drawing with native operations
in the place of image fallbacks, so we need ps-specific reference images
to account for minor rasterization differences: over-above-source,
over-around-source, over-below-source, and trap-clip.
2007-08-25 19:24:07 -07:00
Carl Worth
ae185f803a Add four new test to exercise interactions of native and fallback objects
The new tests are: over-above-source, over-around-source, over-below-source,
and over-between-source
2007-08-25 19:24:07 -07:00
Emmanuel Pacaud
5929a1defb [SVG] Suppress code duplication by using _cairo_svg_surface_emit_stroke_style
from _cairo_svg_surface_stroke.
2007-08-25 21:28:33 +02:00
Emmanuel Pacaud
726ed30401 [SVG] Don't emit transform property when matrix is identity. 2007-08-25 20:50:36 +02:00
Emmanuel Pacaud
89881187f2 [SVG] Implement fill_stroke method. 2007-08-25 20:50:20 +02:00
Emmanuel Pacaud
ac51fff0db Add a new fill_stroke surface backend method.
This method is for use in vector backends, where fill immediatly followed by
stroke command with the same path can be emited in the same backend command.
This commit also factorize the detection of such cases in the meta surface
backend and automatically call the fill_stroke method on replay.
2007-08-25 20:49:50 +02:00
Emmanuel Pacaud
43d35e0110 [SVG] fix modeline for vim. 2007-08-25 20:45:16 +02:00
Carl Worth
3ceaa6e74e Merge branch 'cairo-origin' into cairo 2007-08-24 08:03:44 -07:00
Carl Worth
e3b5a65021 Remove build-breaking debugging helper.
Sorry! Totally my fault on this one.
2007-08-24 08:03:03 -07:00
Chris Wilson
24075f1bdd [cairo-perf] Blacklist xlib-fallback.
Do not try and create non-Render xlib surfaces as they explicitly do
not support performance testing.
2007-08-24 14:30:19 +01:00
Chris Wilson
8894894d9d [cairo-boilerplate-xlib] Check that the surface will fit in the screen.
Whilst testing the fallback surface, the resultant image was being
clipped to the screen size. Be conservative and refuse to create
windows (for CAIRO_CONTENT_COLOR surfaces) that are larger than the
 screen.
2007-08-24 14:14:10 +01:00
Chris Wilson
a29544a0b6 [cairo-boilerplate-xlib] Clear Render data for the non-Render fallback.
As well as marking the XRender extension unavailable in
_cairo_boiler_player_xlib_disable_render(), we need to clear any
XRender derived information stored during the surface creation.
2007-08-24 12:27:15 +01:00
Carl Worth
177a3b8a32 Remove include of cairoint.h from *-private.h header files.
These were recently added, (as part of sparse integration?), but they
break boilerplate which reaches into at least cairo-types-private.h
and cairo-scaled-font-private.h. But boilerplate cannot see cairoint.h
or else it gets the internal sybol renaming, (with the INT_ prefix),
and then all the test suite tests refuse to link.

If this change reverts some recently-added functionality, (or
cleanliness), then we'll just need to find some other way to add that
back again without the breakage.
2007-08-23 16:13:04 -07:00