Commit graph

1271 commits

Author SHA1 Message Date
Owen Taylor
00af78735e Rip out all the code for doing anything other than linear interpolation between color stops, instead of doing different funky things based on pattern->filter. (#4184) 2005-08-23 14:53:08 +00:00
Owen Taylor
48b3a1cacd Check for AlphaBlend() with GetProcAddress() to support older compilation environments like MSVC 6. (Also fixes this portion of the code to run on Win98 and Win95, but much of the rest of cairo-win32-* won't work in that environment) (#3926, Hans Breuer, Christian Biesinger, based on code originally from Mozilla)
Remove WINVER define, since it was there only for AlphaBlend().
2005-08-23 14:52:38 +00:00
Carl Worth
c4c1c4db96 Remove assert statements that violate two intentional instances of ref_count == 0. 2005-08-23 14:51:51 +00:00
Carl Worth
2dfb7a662f Fix memory leak of pattern. 2005-08-23 14:37:09 +00:00
Owen Taylor
a96a4a7ce6 Check for AlphaBlend() with GetProcAddress() to support older compilation environments like MSVC 6. (Also fixes this portion of the code to run on Win98 and Win95, but much of the rest of cairo-win32-* won't work in that environment) (#3926, Hans Breuer, Christian Biesinger, based on code originally from Mozilla)
Remove WINVER define, since it was (hopefully) there only for AlphaBlend().
2005-08-23 14:30:52 +00:00
Owen Taylor
6d8df3957d Call _get_pattern_load_flags() on the resolved pattern, not the input pattern. (Further fix from sunmoon1997) 2005-08-23 14:12:01 +00:00
Carl Worth
f219b83466 if users attempt to twice destroy or re-reference a destroyed object. The condition for detecting this case is a ref_count of 0.
Reviewed by: otaylor Fixes bug #4198
2005-08-23 14:04:28 +00:00
Carl Worth
a0ecb16417 Move CAIRO_CONTENT_VALID and CAIRO_FORMAT_VALID from the public cairo.h to the private cairoint.h where they belong. 2005-08-23 13:57:00 +00:00
Owen Taylor
f229b1abfb when creating the temporary mask, do glyph ADD mask, not (glyph IN source) ADD mask. Set the mask as having component alpha when it's 4-channel.
test/text-antialias-subpixel.c test/Makefile.am: No longer XFAIL.
test/text-antialias-gray.c test/text-antialias-subpixel.c
Don't turn off metrics hinting, it doesn't make sense.
Update.
2005-08-23 13:34:14 +00:00
Carl Worth
c11f0376d4 Revise the description of indentation and tabs to be clear (I hope). 2005-08-23 12:48:17 +00:00
Carl Worth
317af5618c Fix inadvertent commit of incorrect reference image 2005-08-23 10:55:00 +00:00
Carl Worth
9aa1f4d868 Clear to opaque white at the beginning of the test so that the 0 alpha values in the destination don't cause bizarre results. (main): Note that only the image backend should fail now.
Add new reference image.
2005-08-23 10:39:27 +00:00
Carl Worth
9e68e0ceef Add more comments on the improved state of this bug. Commit a reference image generated with cairo_text_path; cairo_fill. (We may not require getting this exact result, but I think it is worth examining the differences closely.) 2005-08-23 10:11:16 +00:00
Carl Worth
985c919b9f Add docs-publish target to build and push documentation, (since our nightly server-side cron job is not working right now). 2005-08-23 09:10:45 +00:00
Carl Worth
0c2aa6e6ab Move comment about missing cleanup of caches on XCloseDisplay from BUGS to a _cairo_xlib_close_display. Also covered in bug #4120. 2005-08-23 08:21:46 +00:00
Carl Worth
60f9c8d9fd Remove caps-sub-paths from the XFAIL list since it is fixed now. 2005-08-23 07:51:56 +00:00
Carl Worth
256456b708 Fix for bug #4205:
Abstract the cap-addition code from the end of the stroke operation into a new _cairo_stroker_add_caps function.
Call the new _cairo_stroker_add_caps at the beginning of every move_to so that we get caps on every subpath and not just the last one.
2005-08-23 07:44:14 +00:00
Billy Biggs
55a517991e Add libpixman.la to the libcairo_la_DEPENDENCIES line so that changes to pixman get picked up. 2005-08-23 05:54:38 +00:00
Owen Taylor
099060f925 Some fixes for warnings from sparse (Part of #4208, Kjartan Maraas)
Use NULL, not 0.
Fix C99'ism of mixed code and declarations.
2005-08-23 05:18:48 +00:00
Carl Worth
704874c165 caps only added to last subpath: COVERED by test/caps-sub-paths and bug #4205. 2005-08-23 01:55:29 +00:00
Carl Worth
eb206f0a12 Use the expect_failure variant of cairo_test so that make check prints the reason this test fails. 2005-08-23 01:50:25 +00:00
Carl Worth
4b0ed008ba Add test to demonstrate bug #4205, missing caps on all but last sub-path in a complex path. 2005-08-23 01:02:16 +00:00
Carl Worth
65bfc03e72 Remove discussion of the BAD_NESTING restriction from the documentation of cairo_create. No such restriction exists anymore. 2005-08-23 00:03:09 +00:00
Carl Worth
c0bbf9ac08 Fix for bug #4192:
New function to handle both calling FT_Done_Face on unscaled->face and decrementing font_map->num_open_faces.
Call new _font_map_release_face_lock_held as approporiate.
Assert that (font_map->num_open_faces == 0) when we're done, to help guarantee the bug is fixed.
Don't call FT_Done_Face anymore, instead assert that (unscaled->face == NULL) by the time this function is called.
Prefer TRUE/FALSE as values for cairo_bool_t have_scale.
2005-08-23 00:00:42 +00:00
Billy Biggs
dc907490e3 Add version.xml to content_files so it will be copied to the right place for DESTDIR builds. 2005-08-22 22:23:54 +00:00
Billy Biggs
a68097a219 Rework the index for the reference manual.
Update descriptions and add new files for added sections.
2005-08-22 22:11:44 +00:00
Owen Taylor
2d9d744f8c Make cairo_ft_unscaled_font_backend static.
Add missing static.
Use NULL, not 0.
Use void in the definition of void functions, not ().
Make non-exported cairo_pattern_nil_* static.
2005-08-22 20:43:23 +00:00
Carl Worth
c792e6783c ref_counts will go negative: COVERED by https://bugs.freedesktop.org/show_bug.cgi?id=4198 2005-08-22 17:20:29 +00:00
Carl Worth
0fb5b1d4c4 Remove several entries in an effort to obsolete the BUGS file in favor of bugzilla and cairo/test. Specifically:
cairo_image_surface_create should clear image: NOTABUG. The user can clear if desired, and cairo clearing unconditionally would be performance overhead).
cairo_clip is really slow: FIXED/COVERED. Since the time this entry was added we've got rectangular, pixel-alignend clipping optimized. And there's a bug in bugzilla (https://bugs.freedesktop.org/show_bug.cgi?id=4191) for optimizing IN.
self-intersecting path is wrong: COVERED by test/self-intersecting.c.
Cairo is crashing Xnest: NEEDINFO. Is this still happening? Xfake has been working quite well for a very long time now.
font-size=0 in SVG does bad things: FIXED.
2005-08-22 16:56:43 +00:00
Bertram Felgenhauer
23baafbaa8 remove. 2005-08-22 16:52:40 +00:00
Bertram Felgenhauer
9883104290 correct the calculation of the error bound. 2005-08-22 16:50:30 +00:00
Bertram Felgenhauer
c0905759b0 use new function. strip comment of derivation for major axis length.
use _cairo_matrix_get_affine to retrieve matrix entries.
new function split out of cairo-pen.c. UTF8-ify the comment that explains the calculation.
2005-08-22 16:48:28 +00:00
Bertram Felgenhauer
c7a35fbd31 use correctly transposed version of the matrix and fix up the comments above to use row vector notation. 2005-08-22 16:29:56 +00:00
Tor Lillqvist
46dd21e795 Calculate LT_CURRENT_MINUS_AGE (which forms part of the DLL name on Win32), and AC_SUBST it.
Add target "zips" to create zip file based distribution for Win32.
Produce a cairo.def file for distribution by preprocessing the relevant header files and grepping for declarations of functions that start with cairo_. Works for now, will have to modify later if necessary. Use the .def file when linking on Win32.
2005-08-22 15:49:04 +00:00
Owen Taylor
aa6b2c386b Support artificial bold fonts with FC_EMBOLDEN; patch from Jackey Yang and sunmoon1997.
Check for FT_GlyphSlot_Embolden()
Call FT_GlyphSlot_Embolden for fonts where FC_EMBOLDEN is set but that aren't bold. Add another private flag for this.
2005-08-22 15:19:03 +00:00
Carl Worth
190dc79a28 Fix typo that was causing make dist to fail. 2005-08-22 13:59:52 +00:00
Owen Taylor
2ea856a21d When width/height are 0, copy the src to the dest, don't just return. (#3017) 2005-08-22 12:15:28 +00:00
Owen Taylor
31e4ade4ab Use floor(0.5+x) rather than round(), which is C99. (David Hollenberg) 2005-08-22 08:45:46 +00:00
Owen Taylor
b217f95fa0 Set LC_ALL=C rather than LANG and LC_NUMERIC to be robust against whatever settings the user has. (Martin Dobias) 2005-08-22 08:33:54 +00:00
Billy Biggs
fdb5e2aa47 Optimize away calls to cairo_paint_with_alpha() if the alpha value given is <= 0.
Add a new macro CAIRO_ALPHA_IS_ZERO.
2005-08-21 21:04:52 +00:00
Billy Biggs
89a4e13d73 Fix a typo in the last change. 2005-08-21 21:02:32 +00:00
Billy Biggs
16ce285251 Remove warning about fbCompositeTrans_0888xnx0888 not being tested on big-endian, it's not helpful at this point.
Only define _cairo_pixman_have_mmx for fbHaveMMX when the symbol will actually exist.
2005-08-21 20:49:47 +00:00
Billy Biggs
33599bc6b6 Fix for bug #4172:
Use _cairo_fixed_to_double and _cairo_double_to_fixed when converting between double and 16.16 fixed point. These functions round nicely, and solve some inconsistencies in rendering between my PPC and x86 machines. Thanks to Owen Taylor for suggesting the fix.
The above change does affect linear gradients slightly, but it seems worth it. Update the reference images to follow.
2005-08-21 14:10:39 +00:00
Owen Taylor
e3e7046cd7 Remove stray doc sentence that wasn't meant to be committed. 2005-08-21 12:13:17 +00:00
Billy Biggs
17845df95b Fix for bug #4165:
Use pointer comparison for coincident points to ensure a well-defined ordering, and avoid setting discard on both points. This fixes problems with my Mac's implementation of qsort. Final patch by Bertram Felgenhauer.
Update reference images after the change.
2005-08-21 11:41:44 +00:00
Owen Taylor
d93d56caef Check automake-<ver> if automake isn't sufficiently new. (#3593, Philip Van Hoof) 2005-08-21 11:23:58 +00:00
Owen Taylor
2396b502a5 When invoked as, say, ../autogen.sh, switch to the sourcedir to run the auto*. Based on corresponding code in GTK+'s autogen.sh. (#3402, Thomas Fitzsimmons)
Update from gtk-doc CVS, bringing in some minor output changes. (Eliminate the *** from the messages that don't indicate errors.)
Use += for EXTRA_DIST, since gtk-doc.make already defines it.
2005-08-21 09:57:19 +00:00
Owen Taylor
5462c8a585 Check for FT_Load_Sfnt_Table and disable the PDF/PS backends if not found. (#4144, Billy Biggs) 2005-08-21 09:27:52 +00:00
Owen Taylor
1ce62becd1 Fix the handling of backend->clone_similar == NULL. (#4161, Christian Biesinger) 2005-08-21 08:53:56 +00:00
Owen Taylor
8e9e40d752 Improve the documentation of internal functions. (Based on a patch from Christian Biesinger, #4162) 2005-08-21 08:24:41 +00:00