Carl Worth
a2af89b04a
Replace all structure tags to have _ prefix. struct cairo_foo -> struct _cairo_foo Also, prefer cairo_foo_t over struct _cairo_foo in .c files.
2005-01-13 06:50:23 +00:00
Carl Worth
5235dbb80f
A NULL cairo_t * is not sane.
...
Add freetype flags so that things work with freetype in a non-standard location, (a little extra work here since freetype doesn't use pkg-config).
Add several items culled from recent mailing list discussions.
Add bugs on cache locking and surface pattern scaling.
2005-01-12 14:40:14 +00:00
Carl Worth
4796dc0b26
Add big_star_path which shows we still have fill bugs, (even now that little_star_path is working).
2005-01-12 14:38:22 +00:00
Keith Packard
72832b9760
Scale factors shouldn't include mirroring.
...
int32x32_64_mul and int64x64_128_mul are different from their unsigned compatriots
2005-01-11 14:52:16 +00:00
Øyvind Kolås
18680d494b
renamed CAIRO_COLOR_DEFAULT to CAIRO_COLOR_WHITE
2005-01-11 13:50:13 +00:00
Øyvind Kolås
c7e80e6bff
reverted accidental change
2005-01-11 13:36:41 +00:00
Øyvind Kolås
7dd4d7aad4
changed default paint color to opaque black
2005-01-11 13:28:50 +00:00
Keith Packard
ad2225c6f4
Fix math library detection to use autotools helper
...
Remove cache memory usage assertions as single objects can be larger than the cache size
Decompose font matrix transformations into a couple of helper routines. Return all metrics in font space.
Eliminate compiler warning
Expect glyph metrics to be in font space. Compute text extents by fetching one glyph metric at a time, transforming to user space and computing the overall bounding box.
use 'sincos' where available. Scale factors now ensure the non-scale transform is area preserving. Scale factors requires another parameter to mark the fixed axis.
Change license to LGPL Mark int32x32_64_mul as broken (which it still is)
Ensure each glyph is located as close to the specified position as possible
interface change to _cairo_matrix_compute_scale_factors
2005-01-11 10:03:01 +00:00
Carl Worth
dc0d812f6c
Restore extern tag for variable declarations, (accidentally removed when recently removing extern from function prototypes).
2005-01-07 12:14:40 +00:00
Kristian Høgsberg
a850136805
Add -lz to CAIRO_LIBS when compiling the PDF backend.
...
Don't use compressBound, since it's only available in zlib 1.2 and newer.
2005-01-06 23:20:07 +00:00
Carl Worth
f4a51d9154
Add Owen's new equation to fix clipping: ((src Op dest) In clip) Add (dest Out clip)
2005-01-06 21:28:07 +00:00
Carl Worth
cf354e9924
Added cairo_show_surface_mask and note about clipping problems.
2005-01-06 10:28:10 +00:00
Carl Worth
a513fa18c7
Added some TODO items from mailing list traffic.
2005-01-06 08:51:48 +00:00
Kristian Høgsberg
c9f545672a
Implement image compression (taken from cairo_ps_surface.c).
2005-01-05 17:46:31 +00:00
Kristian Høgsberg
b1ec8ae13e
New PDF backend.
...
Add PDF surface constructors.
New file - generic array implementation.
Add cairo_array prototypes.
Add cairo_array.c and cairo_pdf_surface.c.
2005-01-05 14:29:31 +00:00
Carl Worth
c90bd12ec7
Do nothing if src image has width or height == 0 to avoid potential divide-by-zero.
2005-01-04 11:55:36 +00:00
Carl Worth
7a5a3cb208
Remove unused CAIRO_TRAPS_GROWTH_INC.
...
Resize arrays by doubling rather than by linear increments.
Add new bug exposed centi_unfinished.svg.
2004-12-23 13:49:56 +00:00
Carl Worth
f76d898cf1
Rename __internal_linkage to pixman_private.
...
Track rename to pixman_private and move it to before the function return value to quiet gcc warnings about visibility attribute ignored for non-class type.
2004-12-23 11:10:08 +00:00
Carl Worth
cd21775ef9
Fix to actually call pixman_fill_rect_32bpp in the 32 bpp case. Thanks to TOKUNAGA Hiroyuki <tkng@xem.jp>. (pixman_fill_rect_8bpp, pixman_fill_rect_32bpp): Fix typo in naming: bbp -> bpp.
2004-12-23 11:00:01 +00:00
Carl Worth
e5d48545e0
Rename __internal_linkage to cairo_private and move it to the beginning of the line for function declarations. Also, drop unneeded "extern" from function declarations.
2004-12-21 13:22:44 +00:00
Carl Worth
1a21b8289f
With thanks to Kristian Høgsberg <krh@bitplanet.net>:
...
Tag a few private functions/data that were missing __internal_linkage.
Mark cache backends as static.
2004-12-21 13:14:45 +00:00
Carl Worth
8ffb7df16c
Change "head -1" to more standard "head -n 1".
2004-12-21 12:57:33 +00:00
Alexander Larsson
153bf60b3a
Fix bug in earlier change.
2004-12-20 12:22:50 +00:00
Carl Worth
eecfec86f1
Re-enabled __internal_linkage for all internal functions. Now avoid the warning by moving the * from the return type after the __internal_linkage macro. It looks awaful, but it keeps the compiler quiet.
2004-12-20 09:53:06 +00:00
Alexander Larsson
5c1c5e67dc
Add _cairo_gstate_restore_external_state, _cairo_fixed_integer_floor and _cairo_fixed_integer_ceil.
...
Call _cairo_gstate_restore_external_state on restore.
Fix cache-misses.
Implement floor and ceil
Restore surface clip region on restroe.
(_calculate_region_for_intermediate_clip_surface), (_cairo_gstate_clip_and_composite_trapezoids), (_cairo_gstate_show_surface), (_cairo_gstate_show_glyphs): Create intermediate clip surfaces of the minimal required size.
2004-12-20 09:43:59 +00:00
Carl Worth
8fe87a32a8
Add Alexander Larsson to AUTHORS list.
2004-12-20 08:58:38 +00:00
Carl Worth
cc0c442d04
Split off from _cairo_xlib_surface_create to avoid roundtrip when size is already known. (cairo_xlib_surface_create): Simplified to just call XGetGeometry that defer to _cairo_xlib_surface_create_with_size. Add comment about remaining roundtrip and possible plans to eliminate it later with a new interface requiring width/height. Thanks to Alexander Larsson <alexl@redhat.com>.
2004-12-20 08:56:50 +00:00
Carl Worth
e3fe2138fe
Split off from _cairo_xlib_surface_create to avoid roundtrip when size is already known. (cairo_xlib_surface_create): Simplified to just call XGetGeometry that defer to _cairo_xlib_surface_create_with_size. Add comment about remaining roundtrip and possible plans to eliminate it later with a new interface requiring width/height.
2004-12-20 08:52:47 +00:00
Carl Worth
682202fdfa
Disabled test that was killing my machine for some reason. Scary.
2004-12-20 08:08:29 +00:00
Carl Worth
725d363877
Change return value from cairo_status_t to cairo_int_status_t to match definition in cairo_surface_backend_t.
2004-12-20 07:38:38 +00:00
Carl Worth
31534f264c
Add bug about gcc 3.4 warning: '__visibility__' attribute ignored on non-class types.
...
Remove __internal_linkage macro from all functions returning pointers to shut up warning from gcc 3.4.
2004-12-20 07:32:45 +00:00
Alexander Larsson
e291f1d882
Special case solid color rectangle fills.
2004-12-20 06:15:21 +00:00
Carl Worth
a827069cc5
Fix to find reference images in local directory when run directly, (rather than by "make check").
2004-12-17 13:23:32 +00:00
Carl Worth
5c33c78c8c
Add bug about invalidating font caches.
2004-12-17 11:31:05 +00:00
Øyvind Kolås
e656b1f3ba
normalizing ChangeLog headers
2004-12-06 00:01:45 +00:00
David Reveman
cb0364a28c
Revert clipping changes
2004-12-01 16:27:18 +00:00
Carl Worth
e5d50e0759
Fix typo: LPGL->LGPL.
2004-11-29 18:25:23 +00:00
Carl Worth
d098370411
Remove unintentional copyright statement from user-generated output image.
2004-11-29 14:11:26 +00:00
Carl Worth
5c143241df
Note that text_cache_crash is expected to fail.
...
Add test to demonstrate bug when item is too big for cache.
Really remove that refcount assertion this time.
2004-11-23 13:38:09 +00:00
Carl Worth
7478ea5051
Add note that bug has been fixed. (main): Instrumentation code for testing cache destruction.
...
Support tests that produce no output, (don't check image if (width,height) == (0,0)).
Add #include <assert.h> here rather than in multiple .c files.
Add const qualifier to static cache_arrangements table. (_cache_sane_state): Remove refcount assertion as it it false during the cairo_cache_destroy. (_cache_sane_state): #include <assert.h> moved up to cairoint.h (_entry_destroy): Fix bug in assertion (used_memory >= entry->memory), not >. (_cairo_cache_destroy): Fix timing of refcount decrement so that the destroy function actually works.
2004-11-23 12:53:46 +00:00
Carl Worth
78f1206bf8
Don't destroy a NULL font.
2004-11-14 10:07:54 +00:00
Carl Worth
2b76ec2d46
Unconditionally destroy the old font, (otherwise, if the same font was selected twice in a row, a reference was lost to it, leading to assertion failures).
2004-11-13 19:46:18 +00:00
Stuart Parmenter
d29237e9c0
Added GDI+ backend to Cairo.
2004-11-12 14:46:23 +00:00
Carl Worth
b6a2e10301
Move declarations above statements to satisfy pre-C99 compilers. Thanks to Michael Johnson <ahze@ahze.net>.
2004-11-12 06:12:20 +00:00
Carl Worth
10deb4c4ae
Added BUG entry
2004-11-11 12:15:12 +00:00
Carl Worth
fe728e5532
(draw): Move x_off, y_off calculation outside of loop to emphasize loop-independence.
2004-11-09 14:27:32 +00:00
Carl Worth
9dacc32fbc
Increase size and increase number of different angles drawn. (draw): Fix broken usage of extents (missing bearings), add stroked bounding box (shifted out by 0.5 units to just abut the text), and increase position adjustments to make room for this larger box.
2004-11-09 14:22:37 +00:00
Dave Beckett
a373313c73
Fix the bit that patch --reverse failed to do. "cvs diff -r1.256 ChangeLog" is just my change now.
2004-11-08 14:15:31 +00:00
Dave Beckett
186f14eeb6
Restore the huge bit of ChangeLog I just deleted, then add my 6 lines.
2004-11-08 14:08:16 +00:00
Dave Beckett
9d03237884
require libpixman 0.1.2 since src/cairo_glitz_surface.c depends on two new functions of 0.1.2 - pixman_format_get_masks and pixman_image_get_format
2004-11-08 13:33:42 +00:00