Commit graph

1378 commits

Author SHA1 Message Date
Christian Biesinger
30d4aa8631 Use C-style comments rather than C++-style in C files 2006-03-04 15:43:15 +01:00
Carl Worth
7d498ca912 _cairo_xlib_surface_show_glyphs: Break up rendering into chunks to fit
into X max request length protocol limits.

This fixes bug #5528:

	_XError from XRenderCompositeText8
	https://bugs.freedesktop.org/show_bug.cgi?id=5528
2006-03-03 11:13:36 -08:00
Carl Worth
3aac0bf670 test/show-glyphs-many: New test case to demonstrate bug #5528
This demonstrates an Xlib crash when rendering many glyphs. See:

	_XError from XRenderCompositeText8
	https://bugs.freedesktop.org/show_bug.cgi?id=5528

for more details.
(cherry picked from 34a4ad1e5b commit)
2006-03-03 10:00:01 -08:00
Frederic Crozat
d8d8694ac4 Fix usage of freetype to match Xft and follow David Turner's recommendations.
Change a little the logic in hinting to follow the same
logic as Xft and doesn't try to mix FT_LOAD_TARGET which should not be
mixed (based on David Turner comments)
2006-02-23 17:09:47 -08:00
Frederic Crozat
65c32ae36f Fix for sub-pixel BGR and vRGB 2006-02-23 16:44:44 -08:00
Frederic Crozat
540c10f3fb test/text-antialias-subpixel: Modify to demonstrate problem with subpixel BGR and VRGB 2006-02-23 16:44:19 -08:00
Carl Worth
886bc4ddb0 Rename .cvsignore to .gitignore. Add *~ and *.o.
(cherry picked from d88c19071f commit)
2006-02-21 13:53:57 -08:00
Carl Worth
4dbb1500f9 Use more portable shell syntax, ('test =' rather than 'test =='). Thanks to Richard Lloyd and Klaus Heinz. Closes bug #4823. 2005-12-07 11:45:15 +00:00
Carl Worth
3d3af95489 Remove duplicate definitions of pixman_color_to_pixel and pixman_composite. 2005-11-21 11:49:34 +00:00
Carl Worth
36f8345a70 Remove spurios INT_ prefixes which break the build with very recent binutils. 2005-11-18 10:17:29 +00:00
Tor Lillqvist
d08cabcb4c Intersect clip region with target surface so we don't waste time and memory.
Reviewed by: cworth
2005-10-12 15:06:44 +00:00
Tor Lillqvist
e1c07e99b9 Apply proper transform to generated paths. 2005-10-10 11:33:18 +00:00
Carl Worth
fe254b0ebc Fix typo leading to truncated error message (Christian Biesinger <cbiesinger@web.de>). 2005-10-08 10:58:11 +00:00
Carl Worth
4ac391f861 Add missing initialization for ximage.xoffset. 2005-10-06 11:34:46 +00:00
Anders Carlsson
167c3b430f Invoke PKG_PROG_PKG_CONFIG so $PKG_CONFIG will be set early on. 2005-10-04 13:49:33 +00:00
Carl Worth
cff8f83148 Add missing initialization for _global_image_glyph_cache_mutex (Vladimir Vukicevic <vladimirv@gmail.com>). 2005-10-03 21:59:01 +00:00
Carl Worth
588ccdb5f2 Increment CAIRO_VERSION to 1.0.3 after tagging RELEASE_1_0_2. 2005-10-03 21:56:24 +00:00
Carl Worth
169e72d6b9 Increment CAIRO_VERSION to 1.0.2 and libtool versioning to 4:3:2.
Add notes for the 1.0.2 release.
2005-10-03 17:48:04 +00:00
Bertram Felgenhauer
d290a19263 simplify id initialisation of last patch
reviewed by: keithp
2005-09-29 20:03:15 +00:00
Bertram Felgenhauer
1f515c6e6c ChangeLog cosmetics. 2005-09-29 17:35:34 +00:00
Bertram Felgenhauer
7e5bdaeb62 Using a pointer comparison as the fallback total order was wrong - these pointers are not stable. So we introduce our own total order instead.
reviewed by: cworth
2005-09-29 17:28:54 +00:00
Tor Lillqvist
9b27a73020 Use _cairo_utf8_to_utf16 for character conversion. 2005-09-28 10:37:40 +00:00
Tor Lillqvist
0cb8ee21b5 Bug #4612, reviewed by cworth.
Add cast so that sign conversion doesn't alter comparison.
2005-09-28 10:27:39 +00:00
Tor Lillqvist
b8a08fbea6 Bug #4602, reviewed by cworth.
Avoid creating size-0 bitmap, which fails.
2005-09-27 13:25:06 +00:00
Carl Worth
4b1fca82a8 Note that bug #4409 (Dashes are missing initial caps) is now fixed.
Move face-flipping from inside _cairo_stroker_add_caps to new _cairo_stroker_add_leading_cap variant of _cairo_stoker_add_cap.
Change to call _cairo_stroker_add_leading_cap or _cairo_stroker_add_trailing_cap as appropriate.
Remove dash-caps-joins from the XFAIL list and add reference image.
2005-09-27 12:51:00 +00:00
Carl Worth
031943b4e4 file dash-caps-joins.c was added on branch BRANCH_1_0 on 2005-09-27 19:51:00 +0000 2005-09-27 12:44:32 +00:00
Carl Worth
e26ebe1053 file dash-caps-joins-ref.png was added on branch BRANCH_1_0 on 2005-09-27 19:51:00 +0000 2005-09-27 12:44:32 +00:00
Carl Worth
6cf8e5b58b 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:48 +00:00
Carl Worth
effdcbb5ac file caps-joins.c was added on branch BRANCH_1_0 on 2005-09-27 19:51:00 +0000 2005-09-27 11:35:18 +00:00
Carl Worth
2fb549133e file caps-joins-ref.png was added on branch BRANCH_1_0 on 2005-09-27 19:51:00 +0000 2005-09-27 11:35:18 +00:00
Carl Worth
8b4d49921d Backported from HEAD:
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-26 15:48:06 +00:00
Carl Worth
ae40e31976 Backported from HEAD:
Protect inclusion of fontconfig.h with HAVE_FCFINI.
Remove stray cairo-ft.h include.
Include stddef.h for NULL.
Open the file rb.
2005-09-26 15:43:17 +00:00
Tor Lillqvist
975bfe3730 If GetGlyphOutlineW() fails, set metrics to zero. (#3927, Hans Breuer) (Don't print error message, as this might occur frequently with a misconfigured Pango 1.10.0.) 2005-09-26 09:09:37 +00:00
Tor Lillqvist
80b2fae5f1 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) 2005-09-26 09:05:14 +00:00
Tor Lillqvist
4974affc3f Pass scratch space instead of NULL for image_extra to acquire/release_dest_image. 2005-09-20 08:23:20 +00:00
Carl Worth
e54787b78d 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:27:22 +00:00
Carl Worth
e39b239171 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:28:39 +00:00
Billy Biggs
dbe0552ed3 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. Fix the MMX test to only check for MMX intrinsics and not the SSE intrinsics.
2005-09-18 19:56:32 +00:00
Billy Biggs
178909580f Bug #4414, reviewed by otaylor, cworth.
Remove CPU detection code, only include xmmintrin.h if USE_SSE is defined.
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:55:54 +00:00
Carl Worth
4ea8d8544e 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:25:40 +00:00
Owen Taylor
a9b89bf898 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-16 06:43:41 +00:00
Carl Worth
a85f9916a9 Expand locking to include all modification of cairo_scaled_font and related objects. 2005-09-13 15:41:16 +00:00
Carl Worth
4a07803919 Adjust parameters to stress things a bit more, (better exposing another locking bug). 2005-09-13 12:38:06 +00:00
Carl Worth
36f4bb9837 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:28:00 +00:00
Carl Worth
33820b0475 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:20:15 +00:00
Carl Worth
95557db5cf file pthread-show-text.c was added on branch BRANCH_1_0 on 2005-09-13 19:22:45 +0000 2005-09-13 12:11:32 +00:00
Carl Worth
ec413ca3a4 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:48 +00:00
Carl Worth
b9809741dd Add includes to get sized-integers 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:17:37 +00:00
Carl Worth
267f272ab0 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:15:53 +00:00
Owen Taylor
d521fa3a75 Handle displays which don't match the local endianness by byteswapping on GetImage/PutImage. (#4321, reported by Sjoerd Simons) 2005-08-31 15:09:43 +00:00