Commit graph

4633 commits

Author SHA1 Message Date
Carl Worth
fa6aedf2d6 Fix typo in printf arguments in error message 2008-01-29 09:01:47 -08:00
Carl Worth
e2bb36fe08 wAdd proper error propagation to _cairo_matrix_compute_scale_factors
Before there was just an assert statement here that the
determinant of the matrix was not infinite. That was bogus
since a user-provided can end up here. So instead, do the
correct error propagation of any CAIRO_STATUS_INVALID_MATRIX
error as necessary.

This eliminates the current failure of the invalid-matrix
test case.
2008-01-29 09:01:00 -08:00
Carl Worth
8493222357 Initialize return values for cairo_*_extents in case of error
Previously we left the return values alone, which set the
user up for a nasty trap, (using potentially uninitialized
values with no indication that there was an error). So now
we initialize these values to 0.0 if the cairo_t is in error.

The fixed functions include:

	cairo_path_extents
	cairo_stroke_extents
	cairo_fill_extents
	cairo_clip_extents
	cairo_font_extents
2008-01-29 05:40:39 -08:00
Carl Worth
6bdba4b4be Add missing libcairo_font_subset_sources to fix the build 2008-01-29 05:27:10 -08:00
Nis Martensen
3d82056cee Fix typos 2008-01-29 05:32:24 -05:00
Behdad Esfahbod
b28f4f57f2 [src/Makefile.am] Reorganize
Main goal was to be able to pass list of all cairo sources, enabled or
not, to check-doc-syntax.sh such that it doesn't check *.h, *.c, *.cpp
because that can be annoying when bisecting.
2008-01-29 04:32:55 -05:00
Adrian Johnson
41a5700793 Fix undefined macro that was preventing the tests from compiling 2008-01-29 20:27:06 +11:00
Behdad Esfahbod
cfce362375 [cairo_operator_t] Mark DestAtop unbounded and document boundedness 2008-01-29 01:27:47 -05:00
Behdad Esfahbod
f9b90e475e [doc] Fix cairo_operator_t docs to make Carl (and Keith) happy 2008-01-29 01:20:03 -05:00
Behdad Esfahbod
9ee7a48b33 [Makefile.am] Minor wording change 2008-01-29 00:50:48 -05:00
Behdad Esfahbod
013781137f [cairo-image-surface.c] Cleanup stride checking and improve docs 2008-01-29 00:43:10 -05:00
Behdad Esfahbod
8e3250b856 [Makefile.am] Remove ROADMAP and TODO from dist files 2008-01-29 00:43:10 -05:00
Behdad Esfahbod
81e4cc3bd7 [cairo_image_surface_create_for_data] Document stride error status 2008-01-29 00:43:10 -05:00
Behdad Esfahbod
6153a3b620 [doc] Run check-doc-syntax.sh for SGML docs too 2008-01-29 00:43:10 -05:00
Behdad Esfahbod
3f7d301786 [src/check-doc-syntax.sh] Skip test if GNU grep is not available 2008-01-29 00:43:10 -05:00
Carl Worth
247e101199 Fix bitmap-font test by using near-equality for double comparison 2008-01-28 21:26:05 -08:00
Behdad Esfahbod
468caac068 [configure.in] Minor change to cairo-features.h comments to make tests pass 2008-01-28 23:30:09 -05:00
Behdad Esfahbod
b4c7a0dc6e [doc] Document CAIRO_HAS_* macros. We now finally have real 100% coverage. 2008-01-28 23:27:10 -05:00
Behdad Esfahbod
47e0ecbea5 [configure.in] Generate a cairo-no-features.h with macros for disabled supported backends
to trick gtk-doc with it.
2008-01-28 23:26:35 -05:00
Behdad Esfahbod
9d8990b6bd [doc] Remove excess paranthesis 2008-01-28 23:23:00 -05:00
Behdad Esfahbod
6e495e9488 [doc] More syntax fixes 2008-01-28 23:10:28 -05:00
Behdad Esfahbod
a00d719682 [configure.in] Add commented-out #undef's for disable stable backends in cairo-features.h 2008-01-28 23:05:00 -05:00
Behdad Esfahbod
6a089247a1 [doc] Rename cairo-font.sgml to cairo-font-face.sgml 2008-01-28 22:45:06 -05:00
Behdad Esfahbod
1d17a7f781 [doc] Document the surface type of win32-printing surface being different 2008-01-28 22:42:46 -05:00
Behdad Esfahbod
a55f65b5d2 [doc] Fix typo 2008-01-28 22:25:37 -05:00
Behdad Esfahbod
52cc603db1 [doc] Stricter syntax check for type names, update test 2008-01-28 22:10:20 -05:00
Behdad Esfahbod
b790c5a6bc [doc] Replace 'NOTE' by 'Note' and add it to test 2008-01-28 21:53:44 -05:00
Behdad Esfahbod
f0633f4449 [doc] Make sure all function names in docs are followed by () 2008-01-28 21:49:57 -05:00
Behdad Esfahbod
9ba8f6b1b0 [src/check-doc-syntax.sh] Check for various doc syntax consistency rules 2008-01-28 21:49:26 -05:00
Behdad Esfahbod
e15fcdd747 [doc] Improve syntax 2008-01-28 21:48:23 -05:00
Behdad Esfahbod
587508528c [doc] Minor improvement 2008-01-28 21:12:51 -05:00
Behdad Esfahbod
fd5dfedbb7 [doc/public/check-doc-coverage.sh] Test that doc coverage is 100%
Yay!
2008-01-28 21:02:44 -05:00
Behdad Esfahbod
c133ee5acc [doc] Improve docs for new API 2008-01-28 21:00:21 -05:00
Behdad Esfahbod
0d898f2bad [doc] Make sure all type names in docs are prefixed by # 2008-01-28 20:49:44 -05:00
Behdad Esfahbod
9ecde82d35 [doc] Make sure all macro names in docs are prefixed by % 2008-01-28 20:48:48 -05:00
Behdad Esfahbod
099c3c2602 [doc] Another enum nick expansion 2008-01-28 20:32:35 -05:00
Behdad Esfahbod
72feed5b54 [doc] Update templates for recently added APIs 2008-01-28 20:16:01 -05:00
Behdad Esfahbod
b7d43d235c [src/check-*] Shut make up 2008-01-28 20:14:52 -05:00
Behdad Esfahbod
dd7ce76294 [doc] Expand a couple nicks to full enum names 2008-01-28 19:54:27 -05:00
Behdad Esfahbod
c624ff4654 [cairo_operator_t] Improve docs 2008-01-28 19:45:18 -05:00
Behdad Esfahbod
f1271babcd [doc] Add Long_Description and some See_Also for all chapters 2008-01-28 19:45:18 -05:00
Behdad Esfahbod
73b184fb9c [src] Fix gtk-doc warnings 2008-01-28 19:45:18 -05:00
Carl Worth
8709b943c6 Fix some documentation typos 2008-01-28 16:15:28 -08:00
Carl Worth
e48d7ca802 Add example to documentation of cairo_pattern_set_filter
It's helpful to let the reade know about cairo_get_source here.
2008-01-28 16:11:39 -08:00
Carl Worth
cd26fa266b Add documentation for cairo_filter_t 2008-01-28 16:10:10 -08:00
Carl Worth
7c00269e00 Add pdf-specific reference images for meta-surface-pattern
This test has been "failing" ever since we had native
replay of metasurfaces to pdf. But looking at the results,
they are actually superior to the image-backend reference
images.
2008-01-28 15:39:40 -08:00
Carl Worth
9cd198d200 Test the no-Render-extension-available case in get-xrender-format 2008-01-28 15:39:40 -08:00
Carl Worth
d7fd3bd536 Add get-xrender-format test to test cairo_xlib_surface_get_xrender_format 2008-01-28 15:39:40 -08:00
Carl Worth
cc94dce250 Return NULL from cairo_xlib_surface_get_xrender_format without an error
The NULL return value will only happen if the X Render extension
is not available. We've already got that NULL return value
documented, so it's not an error if the user asks for it. In
particular, it's definitely not a surface-type mismatch.
2008-01-28 15:39:39 -08:00
Carl Worth
3c018a6e5a Add new API cairo_xlib_surface_get_render_format 2008-01-28 15:39:39 -08:00