Commit graph

1424 commits

Author SHA1 Message Date
Carl Worth
8a6792fe41 Add two test cases. One for caps and joins (passes), and one for dashed caps and joins, (fails, see bug #4409). 2005-09-27 11:35:18 +00:00
Carl Worth
38d526f8be Added bug 4599 and 4602 to the 1.0.2 roadmap. 2005-09-26 17:21:47 +00:00
Tor Lillqvist
1010e9052f Set LOGFONT::lfHeight negative. A negative lfHeight means "em height" which is what we want, and matches how other toolkits interpret font sizes on Win32. (Positive lfHeight means "cell height".) (#4593) (_cairo_win32_scaled_font_init_glyph_metrics): If GetGlyphOutlineW() fails, print error message and set metrics to zero. (#3927, Hans Breuer) (cairo_win32_scaled_font_select_font): Add detail on what API failed to the error messages. 2005-09-26 07:48:10 +00:00
Carl Worth
8649fc9f18 Note that the clip-all test now passes. 2005-09-19 17:30:27 +00:00
Carl Worth
8fc9e099fd Avoid attempting to create a size-0 Pixmap, (to prevent the associated X error). This actually showed up when the clip region is empty. Thanks to Radek Doulík for the bug report.
Remove clip-all from the XFAIL list since it works now.
2005-09-19 17:24:52 +00:00
Carl Worth
fa5d17f466 Originally: 2005-09-19 Hans Breuer <hans@breuer.org>
src/cairoint.h : win32 specific definitions for CAIRO_MUTEX_DECLARE, CAIRO_MUTEX_LOCK etc. [not based on win32 mutex but critical sections]
src/cairo-win32-surface.c : add DllMain() to do global, single-threaded 'mutex' (de)initialization. No ifdefs needed, some variables would simply not be used when the respective backend would not be compiled in.
2005-09-19 14:24:00 +00:00
Carl Worth
d7bdc94775 Add cairo-cache-private.h which was missing from the list, (thanks to sunmoon1997). 2005-09-19 14:14:03 +00:00
Carl Worth
80561375c4 Note that 4414 is now fixed. 2005-09-19 11:56:27 +00:00
David Reveman
91e188bc78 Add missing break to switch statement 2005-09-19 07:18:51 +00:00
Billy Biggs
079ee492b5 Fix the MMX test to only check for MMX intrinsics and not the SSE intrinsics. 2005-09-18 19:53:23 +00:00
Billy Biggs
759166f795 Only include xmmintrin.h if USE_SSE is defined. 2005-09-18 19:52:08 +00:00
Billy Biggs
0978f97e9e Bug #4414, reviewed by otaylor, cworth.
Remove -msse from the MMX CFLAGS as it causes gcc to emit SSE instructions, however the detection code only checks for processors supporting MMX and does not require SSE.
2005-09-18 19:37:44 +00:00
Billy Biggs
b7c02401b9 Bug #4414, reviewed by otaylor, cworth.
Remove CPU detection code.
Move CPU detection code out of the MMX file and into the generic code to avoid compiling it with -mmmx and -msse. Using these options causes gcc to use MMX and SSE instructions in the CPU detection code which causes SIGILLs on older processors.
2005-09-18 19:34:36 +00:00
Carl Worth
6d14b3c1fc Prefer cairo_bool_t, TRUE, and FALSE over int, 1, and 0. 2005-09-16 10:49:48 +00:00
Carl Worth
9cb31827aa Mark 4408 as resolved. 2005-09-16 10:27:32 +00:00
Carl Worth
5b9be26d26 Tested by: John Ellson Closes bug #4408 https://bugs.freedesktop.org/show_bug.cgi?id=4408
Add support for dashed splines. (The antialiasing quality isn't perfect, but at least the curves are dashed now).
2005-09-16 10:24:54 +00:00
Carl Worth
a7459e0057 Mark 4260 as resolved. Add 4414 to the 1.0.2 roadmap. 2005-09-16 10:11:52 +00:00
David Reveman
34c6f5de9b Change Carl's comment about saturate operator 2005-09-14 09:25:07 +00:00
David Reveman
6121df6b72 White-space cleanups to glitz backend 2005-09-14 09:12:13 +00:00
David Reveman
82cb5baeb2 Track changes to glitz and update glyph caching in glitz backend 2005-09-14 09:07:00 +00:00
Carl Worth
c9ad68e6e9 Set return-value *glyphs to NULL after freeing it in the error case. 2005-09-13 15:53:19 +00:00
Carl Worth
b18a3c0580 Mark bug #4299 fixed (by the several lock-related commits below). Add clip-all XFAIL to the 1.0.2 roadmap. 2005-09-13 15:47:59 +00:00
Carl Worth
56e7e9d5bd Add missing locking around the call into the thread-shared cache here. 2005-09-13 12:40:36 +00:00
Carl Worth
e8708af118 Adjust parameters to stress things a bit more, (better exposing another locking bug). 2005-09-13 12:37:45 +00:00
Carl Worth
ef35d00615 Expand locking to encapsulate any modification to the reference count of a scaled font, rather than just modifcations of the scaled_font_map, since scaled fonts are shared between threads. 2005-09-13 12:26:29 +00:00
Carl Worth
258f6f4903 Add documentation for cairo_test functions.
Abstract log fie creation into cairo_test_init for use by tests that don't use cairo_test().
Add new test for bug #4299 as reported by Alexey Shabalin.
2005-09-13 12:11:32 +00:00
Carl Worth
999c2a8a2b Originally 2005-09-06 Carl Worth <cworth@cworth.org>:
_cairo_cache_preserve -> _cairo_cache_freeze _cairo_cache_release -> _cairo_cache_thaw
Track rename of _cairo_cache_freeze/thaw.
Track rename. Add stacking behavior to _cairo_cache_freeze/thaw. Abstract out shrinking from _cairo_cache_insert so that _cairo_cache_thaw will also shrink as necessary.
Make this function static since its current limitation to accept an entry rather than a key makes it not as externally useful as would be desirable. Document this limitation.
2005-09-12 11:15:52 +00:00
Carl Worth
b1a38efd34 Fix for bug #4401 as reported by Tim Mooney:
Don't bother checking for sincos function.
Don't use sincos function since it is apparently buggy on some platforms, (Tru64 at least).
2005-09-12 11:11:33 +00:00
Owen Taylor
a1bca924b9 Bug #4260, Reviewed by B. Biggs
Use & not && for bitwise AND.
src/fbpict.c src/fbmmx.c: Take 'dest' as an argument, if pict and dest don't match for RGB, BGR, swap result.
2005-09-12 05:55:11 +00:00
Carl Worth
e06df6a38a Add two bugs to the 1.0.2 roadmap: 4408 Missing dashes on stroked curves 4409 Dashes are missing initial caps 2005-09-09 17:10:52 +00:00
Carl Worth
761cef2667 Add open bug list for 1.0.2. 2005-09-08 16:18:00 +00:00
Carl Worth
0b9c0efc3a Put win32 mutex locking on the 1.2.0 roadmap.
Portability improvements for win32 thanks to Hans Breuer <hans@breuer.org>:
Defined sized-integer types when under the influence of _MSC_VER and without stdint.h.
Use #error which is more portable than #warning, (and more indicative of where we want to be before the next release).
2005-09-07 16:57:59 +00:00
Carl Worth
63c208d83d Give cairo_public an empty definition by default.
Add new cairo_public macro before every public function call prototype.
2005-09-07 16:31:22 +00:00
Tor Lillqvist
05c0c98aee Pass appropriate pointer for image_extra to release_dest_image. 2005-09-07 09:07:13 +00:00
Tor Lillqvist
c00698ebf5 Pass scratch space instead of NULL for image_extra to acquire/release_dest_image. 2005-09-07 08:38:43 +00:00
Carl Worth
f2dc1ebe82 Ignore cairo.def.
Remove cairo_private since we only use it in .h files, not .c files.
2005-09-06 15:19:00 +00:00
Carl Worth
5b5eecc2e1 Make a very preliminary attempt at 1.0.2, 1.2.0, and 1.4.0 roadmaps. 2005-09-02 16:17:48 +00:00
Carl Worth
7d93d26e1e Add description of cairo's versioning scheme. 2005-09-02 13:42:34 +00:00
Carl Worth
93289f14cc Clean up some documentation issues pointed out by otaylor. 2005-09-02 11:22:40 +00:00
Keith Packard
0cfa350fa8 Oops. Call _cairo_scaled_font_set_metrics to set user-space metrics for scaled fonts.
reviewed by: otaylor deserves credit for noticing a problem
2005-09-01 20:38:07 +00:00
Bertram Felgenhauer
25edf235f0 Add missing pair of braces. This fixes a crash on text output. 2005-09-01 06:13:46 +00:00
Carl Worth
7e4465819b Add includes to get sized-integer types such as uint32_t.
Fix declaration of image data array to be uint32_t rather than unsigned long. Fixes four out of the remaining five failures in bug #4245.
2005-09-01 02:14:31 +00:00
Carl Worth
0f4beab507 Add call to XSynchronize, (the expected clip-all failure isn't occuring without it for some reason).
Note reason for expected failure.
src/cairo-scaled-font.c: Add an optional text_to_glyphs() virtual function that the backend can implement instead of ucs4_to_index().
Protect inclusion of fontconfig.h with HAVE_FCFINI.
2005-08-31 19:11:22 +00:00
Carl Worth
f25ebec368 Add call to XSynchronize, (the expected clip-all failure isn't occuring without it for some reason).
Note reason for expected failure.
2005-08-31 16:17:28 +00:00
Owen Taylor
d56b0d1d80 Handle displays which don't match the local endianness by byteswapping on GetImage/PutImage. (#4321, reported by Sjoerd Simons) 2005-08-31 15:09:35 +00:00
Keith Packard
b0c58593b3 Split out scaled font code to cairo-scaled-font.c
Replace cairo cache implementation (this code from cworth)
No more global glyph cache to clean up
Store glyphs in new per-scaled font caches which hold user-space metrics and device space bounding boxes
Refactor glyph drawing APIs so that the surface API is invoked directly from the gstate code.
Add path creation/destruction routines (to hold glyph paths)
New implementation of scaled fonts which uses per-scaled_font caches for glyphs and keeps user-space metrics, device-space bboxes along with glyph images and/or glyph paths.
Adapt to new scaled font API changes.
New cache and scaled_font APIs
Repond to bug fix in metrics computation for glyphs where y values were rounded up instead of down because of a sign difference between cairo and FreeType.
Reviewed by: otaylor, cworth
2005-08-31 15:08:02 +00:00
Carl Worth
568ce86026 Increment CAIRO_VERSION to 1.1.1 after making branch tag BRANCH_1_0. 2005-08-31 14:43:31 +00:00
Carl Worth
41c321fffa Add note to use ./autogen.sh instead of ./configure when working with source from cvs. 2005-08-31 13:52:19 +00:00
Carl Worth
eb2316ecc7 Fix test to not try to set a non-invertible matrix. (We'd gotten away with this due to round-off error on many systems). Fixes one out of six failures in bug #4245. 2005-08-31 13:33:42 +00:00
Carl Worth
464c6dffcf Add Radek Doulík.
Add test exposing a BadValue (0-size pixmap) bug in cairo-xlib-surface when everything is clipped away (thanks to Radek Doulík <rodo@novell.com>).
2005-08-31 09:00:01 +00:00