Commit graph

1922 commits

Author SHA1 Message Date
Carl Worth
7bd3a037da Add documentation for the _cairo_scaled_font_subsets interface. 2006-05-10 18:52:36 -07:00
Carl Worth
7c137b7e2c SVG: Discard custom font subsetting in favor of sharing cairo-scaled-font-subsets 2006-05-10 15:14:10 -07:00
Carl Worth
f459c1f0de Tweak names to match those of cairo-scaled-font-subsets
Also, remove a now obsolete field from cairo_ps_surface_t
2006-05-10 15:12:53 -07:00
Carl Worth
8a209e6ad9 Fix cairo_output_stream_destroy to do nothing on nil stream objects. 2006-05-10 14:50:31 -07:00
Carl Worth
0544515279 Generalize font subsetting code in cairo-scaled-font-subsets for use by more than just PS backend 2006-05-10 14:47:28 -07:00
Carl Worth
906a17a6b1 Rename cairo-ps-font to cairo-scaled-font-subsets (file names only) 2006-05-10 14:40:32 -07:00
Carl Worth
f7f9bdc05b PS: Put functions in more logical order. 2006-05-09 14:40:37 -07:00
Carl Worth
f3703b1806 PS: Move type 3 support out into cairo-ps-font.c
This is in preparation for generalizing this code for sharing among
several backends.
2006-05-09 14:40:36 -07:00
Carl Worth
7ebdf4825d PS: Remove stale comment (the stuff TODO is done already) 2006-05-09 14:40:36 -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
Carl Worth
9595de96ac ROADMAP: non-substantive changes 2006-05-08 17:41:17 -07:00
Emmanuel Pacaud
7d0bcc3f1c SVG: Emit glyphs at the beginning of defs section. 2006-05-06 15:31:53 +02:00
Emmanuel Pacaud
1da2ca0f35 SVG: Implementation of glyph cache
This is an adaptation of Keith ps-type3 branch for SVG backend.
Main differences with ps stuff are font cache is a property of
document, and there's no need of subfonts.
2006-05-06 14:56:20 +02: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
Emmanuel Pacaud
d76701f465 Use CLEAR operator for initialisation of similar surface with a transparent color. 2006-05-05 16:47:06 +02:00
Emmanuel Pacaud
36fcaa76d6 SVG: Fix cairo_svg_surface_restrict_to_version.
surface parameter is actually a paginated surface.
Use the same logic as pdf backend.
2006-05-05 16:02:04 +02:00
Emmanuel Pacaud
6b40ba283b SVG: Remove special case for unclipped CLEAR and SOURCE in paint when
we're in analysis mode.

intersect_clip_path is not analyzed, so we can't know if we're clipped
when we're in analysis mode.
2006-05-05 12:59:29 +02:00
Emmanuel Pacaud
fb269aac08 SVG: Sets something sane in width and height if acquire source image fails.
In composite_image_pattern.
2006-05-05 11:10:02 +02:00
Carl Worth
c399b7a047 Increment CAIRO_VERSION to 1.1.7 after making the 1.1.6 snapshot 2006-05-04 23:48:28 -07:00
Carl Worth
7ba3b75efd Fix typos in EXTRA_DIST list of reference images. 2006-05-04 23:44:07 -07:00
Carl Worth
5b3425972d Update version to 1.1.6 and add notes to NEWS file.
Also update libtool version information to 8:0:6.
2006-05-04 23:39:12 -07:00
Carl Worth
cfdb9a1c53 RELEASING: Add a few more steps that we've been somtimes forgetting 2006-05-04 23:36:59 -07:00
Carl Worth
b948683917 Flesh out the documentation for cairo_push_group, cairo_pop_group and friends 2006-05-04 22:43:22 -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
Ian Osgood
8c9da52dc2 Fix the XCB backend build for the XCB 0.9 release.
* use split out xcb-render package
* fix deprecated calls
* use XCB-specific symbols
2006-05-04 14:29:03 -07:00
Carl Worth
450e29ce09 pixman: Remove potential memory leak in failure path.
Thanks to Petr Kobalicek <kobalicek.petr@gmail.com> for pointing this out.
2006-05-04 14:24:18 -07:00
Carl Worth
ec94f0a7e2 Remove trailing comma in enum to pander to non-C99-conformant compilers 2006-05-04 12:52:17 -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
135449ae03 SVG: Fix the previous fix for xlink namespace.
It seems libxml2 2.6.24 now requires a node using xlink
namespace to be linked to a node where it can find this
namespace.
2006-05-04 18:06:06 +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
Carl Worth
1431a9d4d3 Clean up error management of xlib surface getter functions. 2006-05-04 04:03:19 -07:00
Robert O'Callahan
4a4603d551 Add Xlib surface getter functions.
Add the following five functions:

cairo_public Display *
cairo_xlib_surface_get_display (cairo_surface_t *surface);

cairo_public Drawable
cairo_xlib_surface_get_drawable (cairo_surface_t *surface);

cairo_public Screen *
cairo_xlib_surface_get_screen (cairo_surface_t *surface);

cairo_public Visual *
cairo_xlib_surface_get_visual (cairo_surface_t *surface);

cairo_public int
cairo_xlib_surface_get_depth (cairo_surface_t *surface);
2006-05-04 04:03:19 -07:00
Emmanuel Pacaud
68915fdfcb SVG: Fix xml namespace declaration.
It looks like since libxml2 2.6.24, we can't just use xmlSetProp
for namespace declaration anymore.
2006-05-04 12:56:06 +02:00
Carl Worth
7aa2b05e48 Add missing prototype for _cairo_clip_translate 2006-05-04 03:44:45 -07:00
Robert O'Callahan
7bcf957b4e Rename cairo_rectangle_t to cairo_rectangle_fixed_t.
This is in preparation for a later function addition for extracting
clip rectangles from a cairo_t, (which will add a public
cairo_rectangle_t).
2006-05-04 03:43:34 -07:00
Carl Worth
d71ddec8df ROADMAP: Note that device-offset and push-pop-group have landed. 2006-05-04 03:05:12 -07:00
Vladimir Vukicevic
fb7f7c2f27 Fix up clip at pop_group time, to keep it in surface backend coordinates
We keep the clip in surface-backend coordinates always, so it needs
fixing whenever we change the target surface out in the gstate.  The
only place this happens is in push_group, so fix it as part of
gstate_redirect().
2006-05-04 03:02:27 -07: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
5e708b38e0 Merge branch 'device-offset-history' into cairo 2006-05-04 01:46:34 -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
99719bde9e Move device-offset touchups from the surface layer up to the gstate.
This fixes the self-copy test which was the last one that was really
failing due to device offsets.
2006-05-04 01:34:05 -07:00