Carl Worth
84a6da8f07
Remove unused libcairo_freetype_sources (thanks to Damien Carbery). Closes bug #2673 .
2005-03-18 11:15:25 +00:00
Owen Taylor
2ad590a0ee
doc fix - 90 degrees is MI_PI/2 radians.
...
src/cairo.c src/cairo_matrix.c src/cairo_ft_font.c src/cairo_ps_surface.c src/cairo_quartz_surface.c src/cairo_win32_font.c src/cairo_win32_surface.c src/cairo_xlib_surface.c: Cairo is only capitalized at the beginning of sentences.
2005-03-17 13:27:26 +00:00
Kristian Høgsberg
58420806bb
From Tor Lillqvist <tml@novell.com>:
...
Open output PNG files in binary mode.
2005-03-17 13:13:56 +00:00
Owen Taylor
e66e4c7b8c
src/cairo.h src/cairo_surface.c src/cairo-xlib.h src/cairo_xlib_surface.c: Move cairo_xlib_surface_set_device_offset() to a generic cairo_surface_set_device_offset().
...
Take the surface's device offset into account.
Update.
2005-03-17 12:57:42 +00:00
Owen Taylor
0b09748296
Fix the docs to to correctly describe the order of transformation for muliply/scale/rotate/translate. (cairo_matrix_translate): Fix translate/rotate typo in the parameter descriptions.
2005-03-17 11:24:00 +00:00
Kristian Høgsberg
1e71381756
Forgot to add this file.
2005-03-17 07:32:28 +00:00
Kristian Høgsberg
0f52fb2289
Dont call user data destroy function if it's NULL.
...
Add test case for user data with NULL destroy function.
2005-03-16 12:15:29 +00:00
Kristian Høgsberg
6993c086eb
Add cairo_output_stream.c
...
Add new errors, CAIRO_STATUS_WRITE_ERROR and CAIRO_STATUS_SURFACE_FINISHED, add cairo_surface_finish() prototype, add cairo_write_func_t.
Add strings for new errors, documentation fix.
Rename surface destroy functions to finish and change them to not free the surface.
Change PDF surface constructors to take a write function in the general case and add stdio convenience constructors. Change destroy function to finish for cairo_pdf_surface. Change implementation to use cairo_output_stream_t functions for output.
Use _cairo_surface_show_glyphs instead of calling function pointer directly.
Add prototypes for cairo output stream functions, rename destroy to finish in cairo_surface_backend_t and add finished flag to cairo_surface_t.
Add cairo_surface_finish() and call it from cairo_surface_destroy(). Check the finished flag in cairo_surface_t in functions that change the surface.
2005-03-16 12:08:41 +00:00
Owen Taylor
5fecf69e2c
src/cairo-xlib.h src/cairo_xlib_surface.c: Rework set of contructors for XLib surfaces. Add cairo_xlib_surface_set_size().
...
src/cairo-xlib.h src/cairo_xlib_surface.c: Add cairo_xlib_surface_set_device_offset().
Rewrite for clarity and efficiency.
Use a temporary pixmap to avoid possible BadMatch when fetch from windows.
src/cairo.[ch] src/cairo-xlib.h: Fix some parameter names for the docs.
Update
2005-03-15 16:25:30 +00:00
Carl Worth
30e771d811
Add reference image.
2005-03-14 11:49:12 +00:00
Carl Worth
f385e5f3e4
Fixes to force tests to run against locally compiled version (thanks to Manish Singh).
2005-03-14 11:14:13 +00:00
Carl Worth
a98430092f
Added some documentation, so we get some churn here.
...
New functions: cairo_copy_path_data, cairo_copy_path_data_flat, and cairo_append_path_data.
Add new implementation for cairo_copy_path_data and cairo_append_path_data.
New test for new path_data functions.
2005-03-11 14:29:15 +00:00
Kristian Høgsberg
1f5394ffe9
*** empty log message ***
2005-03-10 09:28:50 +00:00
Kristian Høgsberg
b032d02322
Fix assert()'s using = instead of ==.
...
Move xunlink call below the xasprintf that builds the filename to unlink.
2005-03-10 09:22:20 +00:00
Carl Worth
05a7c69c90
API Shakeup status update.
2005-03-10 09:02:41 +00:00
Carl Worth
c67ba13a6e
Originally: 2005-02-24 Carl Worth <cworth@cworth.org>
...
Add const qualifier to cairo_user_data_key_t arguments.
Originally: 2005-02-15 Kristian Høgsberg <krh@redhat.com>
Add these two functions to set and get user data on an surface.
Function prototypes for new functions.
Test case for user data functions.
2005-03-10 08:59:11 +00:00
Carl Worth
12abad4759
Move filename initialization up to before first use.
...
Add test for the most trivial cairo_get and cairo_set functions.
2005-03-09 17:43:59 +00:00
Carl Worth
c3bd9b1b8d
Change the draw function under test to return a cairo_test_status_t so that it can indicate test failure even if there is no result image.
2005-03-09 13:58:20 +00:00
Carl Worth
80b2742952
fix typos.
2005-03-09 13:56:37 +00:00
Carl Worth
2fbdcf2082
Update API Shakeup planning chart.
2005-03-09 12:53:01 +00:00
Carl Worth
6d4653fe22
Rename all the cairo_current functions to cairo_get functions instead. Add documentation for all of these functions (and a few others as well).
...
Add support so that old binarys should still run and old source should still compile, (though we'll rip that out again on the API Shakeup flag day).
2005-03-09 12:35:36 +00:00
Carl Worth
36820ec40a
Add -head to CAIRO_VERSION after tagging with SNAPSHOT_0_4_0.
2005-03-08 19:34:04 +00:00
Carl Worth
980eff38e4
Commit workaround to prevent make distcheck from making bogus complaints that gtk-doc is not enabled.
2005-03-08 19:30:19 +00:00
Carl Worth
e586688e6b
Look for png images in ${srcdir}/filename as well, so that make distcheck can still find them.
...
Add romedalen.png to EXTRA_DIST so the tests can pass from the tar file.
Fix typo: cairo-win3 -> cairo-win32.
Add cairo-win32.xml to the list, so it gets generated as well.
Add pointer to new win32 documentation.
2005-03-08 19:25:39 +00:00
Carl Worth
0c67d496a3
Increment CAIRO_VERSION to 0.4.0
...
Added notes for snapshot 0.4.0
2005-03-08 17:36:24 +00:00
Carl Worth
246a07022a
Shared function for checking unlink errrors. (cairo_test): Move all error messages to test-specific log files for quieter test output.
...
Make pixman_rotate an expected failure.
2005-03-08 13:44:14 +00:00
Carl Worth
4dcccab806
Require libpixman >= 0.1.4.
2005-03-08 08:51:48 +00:00
Kristian Høgsberg
74416f2d9a
Return CAIRO_STATUS_SUCCESS even if we don't implement masks yet, so we don't set cr->status to CAIRO_INT_STATUS_UNSUPPORTED.
2005-03-07 21:22:42 +00:00
Carl Worth
c4697bc572
Disable the "new" intersection code so that the incorrect fill problems (test/fill_rule) go away.
2005-03-07 14:23:07 +00:00
Carl Worth
32fbb0afae
Make configure fail if no font backend is available. Point the user at freetype and fontconfig.
2005-03-07 12:40:29 +00:00
Owen Taylor
e7607bb379
Comment and clean up the gradient computation. (_cairo_linear_pattern_classify): Determine if a linear gradient is horizontal or vertical. (_cairo_pattern_acquire_surface_for_gradient): Optimize horizontal/vertical gradients with a repeating surface.
...
Test case for linear gradients at angles and with a rotated pattern matrix.
2005-03-06 12:05:23 +00:00
David Reveman
023d911232
Fix gradient acceleration in glitz backend
2005-03-06 05:16:19 +00:00
Owen Taylor
50b483042d
src/cairo_win32_font.c src/cairo_win32_surface.c: Update for recent backend interface changes.
...
Reenable win32 backend by default.
2005-03-04 10:43:24 +00:00
Carl Worth
f6dcd38c8c
Fix accidental reversal of condition in previous patch.
2005-03-04 10:07:22 +00:00
Owen Taylor
66af5f9f36
src/cairoint.h src/cairo_pattern.c src/cairo_glitz_surface.c: Add _cairo_pattern_is_opaque, use it rather than pattern->alpha == 1.0.
2005-03-04 09:41:34 +00:00
David Reveman
4552898cfb
Update xcb backend
2005-03-03 20:16:23 +00:00
David Reveman
f54f78525a
Fixed variable assignments in configure.in
2005-03-03 19:09:24 +00:00
David Reveman
378fb57051
Add more mask surface acceleration to glitz backend
2005-03-03 18:55:28 +00:00
David Reveman
01b87c7d99
Add overall alpha acceleration using mask surface
2005-03-03 18:46:49 +00:00
David Reveman
50b5344d7d
Pass mask to composite operation as pattern
2005-03-03 18:39:06 +00:00
David Reveman
a97f4cce5e
Removed surface backend functions set_matrix, set_filter and set_repeat
2005-03-03 18:20:28 +00:00
David Reveman
36b69fc7f4
Major update to glitz backend
2005-03-03 18:04:51 +00:00
David Reveman
019d381b40
Change to cairo_surface_t like structure of of cairo_pattern_t
2005-03-03 17:40:04 +00:00
Carl Worth
2dcb6cd345
Note that cairo_output_stream_t patch has been reviewed.
2005-03-01 15:04:48 +00:00
Carl Worth
06bed80b9e
Fix uninitialized value for status, (reported by Manish Singh).
2005-03-01 14:50:57 +00:00
Kristian Høgsberg
85db25b8a1
Fix this function again. Problem with signed/unsigned types reported by Jeff Muizelaar <jrmuizel@nit.ca>.
2005-02-27 11:21:39 +00:00
Kristian Høgsberg
db2eb5d4cb
Remove newline in comment which was confusing gtk-doc.
...
Document these functions.
2005-02-27 11:02:48 +00:00
Carl Worth
cac994f1f8
Note that "user data" and "setters and getters" patches have been reviewed. Remove a few more TODO notes: cleanup cairo_snippets: DONE cairo_surface_finish: Now in API Shakeup snapping code: Decided against this
2005-02-25 14:06:19 +00:00
Carl Worth
f343b0b44a
From David Reveman:
...
Rewrite to use cairo_bool_t for legibility.
2005-02-25 13:31:00 +00:00
Carl Worth
ebec6df7a7
From David Reveman:
...
Simplify code to eliminate a goto.
2005-02-25 13:03:42 +00:00