Commit graph

1839 commits

Author SHA1 Message Date
Carl Worth
044bc5b2a5 Update version to 1.1.4 and add notes to NEWS file.
Also update libtool version information to 7:0:5.
2006-05-03 01:32:05 -07:00
Carl Worth
7cf6bcaeca RELEASING: Replace references to ChangeLog with git log commands (and improve those) 2006-05-03 01:30:55 -07:00
Carl Worth
65dd361c49 SVG: Enable the SVG backend to be built by default (if dependencies are met) 2006-05-03 01:18:06 -07:00
Carl Worth
6acc836df2 Add backend-specific reference images to EXTRA_DIST so they'll go out in the tar file. 2006-05-03 00:57:28 -07:00
Carl Worth
b6fefaef9b ROADMAP: Indicate that PS printing-oriented API is done now. 2006-05-03 00:56:34 -07:00
Carl Worth
09dfd6c3c1 PS: Add three new public functions for emitting DSC comments.
This commit adds the following new functions to the cairo-ps API:

	cairo_ps_surface_dsc_comment
	cairo_ps_surface_dsc_begin_setup
	cairo_ps_surface_dsc_begin_page_setup

Many thanks are due to Michael Sweet who provided invaluble guidance
during the design of this API.

It is hoped that with this API in place, basically all printer control
that is likely to be desired to be performed with cairo PostScript
output is now possible.

This commit augments the ps-features test to exercise the new API.
2006-05-03 00:26:22 -07:00
Carl Worth
253472492e pdf2png: Use new poppler_page_render to render directly through cairo.
...as opposed to using poppler_page_render_to_pixbuf.
2006-05-02 16:57:27 -07:00
Emmanuel Pacaud
e7459428dc SVG: Convert SVG file with a resolution of 72 dpi.
That means 1 point = 1 pixel
2006-05-02 23:37:23 +02:00
Emmanuel Pacaud
1264ae9af4 SVG: Really use width and height in point unit.
I guess it makes more sense to use a unit for
specifying image size that doesn't depend on context.
2006-05-02 23:35:06 +02:00
Emmanuel Pacaud
773692b7df Merge branch 'master' of git+ssh://emmanuel@git.cairographics.org/git/cairo 2006-05-02 21:52:41 +02:00
Emmanuel Pacaud
bd85701b4f SVG: Minor documentation fixes. 2006-05-02 21:48:11 +02:00
Carl Worth
8488aaee1a PS: Add cairo_ps_surface_set_size along with ps-features test
Add a new cairo_ps_surface_set_size which can be used to produce a
PostScript file consisting of pages of various different sizes (or
orientations).

Also add a new test (ps-features.c) for testing this and subsequent
ps-specific function calls.
2006-05-02 12:36:35 -07:00
Carl Worth
e59f35291f atsui: Add missing check of return-value of malloc.
This addresses the original problem noted in mozilla's bug #336129:

	Missing out-of-memory check at gfx/cairo/cairo/src/cairo-atsui-font.c:185
	https://bugzilla.mozilla.org/show_bug.cgi?id=336129

This also adds a comment pointing out another malloc that is not
checked, (but does not fix it).
2006-05-02 11:38:29 -07:00
Carl Worth
41e288a880 Make backend-specific function set a surface error on type mismatch.
If any backend-specific, surface-modifying function is called with
the wrong surface type we set an error on that surface.
2006-05-02 11:38:28 -07:00
Emmanuel Pacaud
0e4527c67e SVG: Rework of API for SVG selection.
I've removed cairo_svg_surface_create_xxx functions, and instead implemented
the following ones:

cairo_svg_surface_restrict_to_version
cairo_svg_get_versions
cairo_svg_version_to_string
2006-05-02 14:50:40 +02:00
Carl Worth
32f120e488 Don't return void from void-returning function (fix #6792).
It's a dumb part of the C standard and it's even dumber when compilers are
picky about it. But oh, well.
2006-05-01 15:12:46 -07:00
Carl Worth
df2f05876d ROADMAP: Mark bug #4705 as fixed. 2006-05-01 14:54:57 -07:00
Carl Worth
87bd00326e Fix silly typo from previous commit. 2006-05-01 14:52:25 -07:00
Carl Worth
8dff692db6 Support multiple glyph image formats within the same font (fix #4705).
If we find a glyph image of a format that is different from the font's
format, then we use a temporary image and convert to the font's
format.

This provides a simple fix for the crash identified in bug #4705:

	crash at XRenderAddGlyphs
	https://bugs.freedesktop.org/show_bug.cgi?id=4705

A later improvement would guarantee that the "font's format" was
carefully chosen to be able to contain all glyphs in the font without
information loss.
2006-05-01 14:50:48 -07:00
Emmanuel Pacaud
0c927c5388 SVG: Add reference images for tests failing on 1 digit error on color. 2006-05-01 23:23:02 +02:00
Emmanuel Pacaud
e3b3402eb8 SVG: Correct use of paginated surface. Fix emit of alpha filter. 2006-05-01 23:21:37 +02:00
Emmanuel Pacaud
8e5ada5201 SVG: Trivial indentation and comment fixes. 2006-05-01 22:53:46 +02:00
Emmanuel Pacaud
62831dc10e SVG: Remove outdated comment. 2006-05-01 22:53:12 +02:00
Emmanuel Pacaud
22c799d5b3 SVG: Fix error handling in create_for_document and in composite_image_pattern. 2006-05-01 22:52:47 +02:00
Emmanuel Pacaud
6f49f7b76d SVG: Add an additionnal API for creating SVG 1.1 or 1.2 files.
And update documentation.
2006-05-01 22:51:25 +02:00
Emmanuel Pacaud
2e4d0e5ba7 SVG: Some variable/type renaming. 2006-05-01 22:50:42 +02:00
Emmanuel Pacaud
e5ea8268b0 SVG: Reenable optimisation of CLEAR and SOURCE in paint when there's
no active clipping path.
2006-05-01 22:49:58 +02:00
Emmanuel Pacaud
55685d7173 SVG: Code cleanup. 2006-05-01 22:49:29 +02:00
Emmanuel Pacaud
926bb6480c SVG: Initial support of operators support via image fallbacks.
We need to add a public API that will let user select
a compatibility level regarding produced SVG files.

This patch also plugs a memleak.
2006-05-01 22:47:41 +02:00
Emmanuel Pacaud
061d508898 SVG: Sort of working implementation of a SVG backend with paginated surface
support.

        Unoptimized and with memory leaks.
2006-05-01 22:43:15 +02:00
Emmanuel Pacaud
59dcb95ce5 SVG: First pass for analyze-surface support 2006-05-01 22:41:12 +02:00
Emmanuel Pacaud
0625d4cd3f SVG: Ignore SVG test files. 2006-05-01 22:15:38 +02:00
Emmanuel Pacaud
d1dcbbb8c3 SVG: Update rgb24 reference files.
(cherry picked from 7173951535f4b95da37cbf3d51143deeec95e47a commit)
2006-05-01 22:13:18 +02:00
Emmanuel Pacaud
bdc1c1ac78 Copy content property when doing a snapshot of a meta surface. 2006-05-01 22:12:20 +02:00
Emmanuel Pacaud
6a33993b15 Merge branch 'origin' 2006-05-01 22:01:38 +02:00
Emmanuel Pacaud
b920dfd3df SVG: Reenable operator tests, and rgb24 surface are meta-surfaces. 2006-05-01 21:59:53 +02:00
Carl Worth
3aa5d76d23 Add missing file leaky-dash-ref.png 2006-04-29 14:28:21 -07:00
Henning Noren
516ac16de1 Fix PS Surface Memleak
Fixes leak of 16 bytes when calling _cairo_ps_surface_finish by never freeing
the closure allocated in _word_wrap_stream_create.
2006-04-28 07:04:56 -07:00
Carl Worth
9729fe6024 Add line-width-scale test to demonstrate cairo_set_line_width bug 2006-04-27 11:45:38 -07:00
Carl Worth
5821d88119 Correct documentation to say "user space", not "user-space" where appropriate. 2006-04-27 11:45:26 -07:00
Emmanuel Pacaud
5515191f84 Use CLEAR operator in mask.c in order to not trig image fallback
for polygon masking.
(cherry picked from 30b2d1c5df9d1c6b536838a6a3407fdfa7198e29 commit)
2006-04-27 06:50:37 -07:00
Emmanuel Pacaud
9bca27a1ad Optimisation of CLEAR operator in meta-surface.
This optimisation takes care to not replay what was done
before surface is cleared. We don't erase recorded commands
since we may have earlier snapshots of this surface.
(cherry picked from 926e2494ca2211e9117ab70fc427208d125e1bd5 commit)
2006-04-27 06:39:41 -07:00
Emmanuel Pacaud
a732058920 Implement paginated create_similar, moving similar images down to PS and PDF.
The new paginated create_similar simply forwards to target backend create_similar.

We maintain the fact that PS and PDF surfaces are returning image
surfaces for create_similar by moving that explicitly to their own
create_similar functions.

(This commit is the combination of the following original commits:

	6b69e8c012adb4f2fc2ee9c1579fed8214e8f510
	2589db92a4395f8e900dbc4eafc45982f0d985d3
)
2006-04-27 06:36:16 -07:00
Carl Worth
e1be80b020 paginated: Remove memory leak of analysis surface from _paint_page
Thanks to Henning Noren <henning.noren.402@student.lu.se> for pointing this out.
2006-04-27 06:02:46 -07:00
Carl Worth
09a51a4e03 Add reference to cairo_surface_set_user_data in docs. for cairo_image_surface_create_for_data 2006-04-27 05:44:57 -07:00
Carl Worth
08733a2228 Move 1.4 schedule up. Add more bugs from sunmoon1997
To hit the Firefox 3 schedule in early 2007 we'll need to have a 1.4 release
out much sooner. Let's shoot for October 2006 which gives 6 months between
1.2 and 1.4.

Also, sunmoon1997 has identified a couple more important issues to be fixed
before 1.2 releases.
2006-04-26 21:22:58 -07:00
Carl Worth
b10a0a9a21 Add a couple more items to the 1.2.0 ROADMAP 2006-04-26 16:43:59 -07:00
Carl Worth
c7a45ab49b Update ROADMAP with suggestions from discussion of 1.1.2 snapshot 2006-04-26 16:43:58 -07:00
Christian Biesinger
9ab4b81a09 Use a single LDADD variable instead of a per-test one
to avoid repeating the list of tests.
2006-04-27 00:51:01 +02:00
Carl Worth
7601a07ae9 Remove cairo.def from the generated tar file. It's not useful there. 2006-04-26 14:34:02 -07:00