ChangeLog 71.9 KB
Newer Older
1
2
2004-04-16  Carl Worth  <cworth@isi.edu>

Carl Worth's avatar
Carl Worth committed
3
4
5
6
7
	* NEWS: Added notes for snapshot 0.1.22.

	* configure.in: Now depends on libpixman 0.1.1.
	Bump version to 0.1.22.

8
9
10
11
12
13
14
15
16
17
18
	* src/cairo_image_surface.c (_create_pixman_format): Track pixman
	fixes to PIXMAN_FORMAT_NAME_*.

	* src/cairo_png_surface.c (cairo_png_surface_create): Explicitly
	add cases for all enum values to eliminate compiler warnings.

	* src/cairo.h: Remove proposal for surface_clip interface as
	cairo_clip should be able to cover this case now.

	* BUGS: Added bug concerning negative ref_counts.

19
20
2004-04-09  David Reveman  <c99drn@cs.umu.se>

David Reveman's avatar
David Reveman committed
21
22
23
24
	* NEWS: Added notes for snapshot 0.1.21.

	* configure.in: Bump version to 0.1.21.

David Reveman's avatar
David Reveman committed
25
26
27
28
29
30
31
32
33
34
35
36
	* src/cairo_surface.c (_cairo_surface_create_pattern):
	* src/cairo_pattern.c (_cairo_pattern_get_image): Fixed
	incorrect rounding of pattern image size.

	* AUTHORS: Added myself to the AUTHORS file.

	* cairo.pc.in:
	* src/Makefile.am:
	* src/cairo-features.h.in:
	* src/cairo.h:
	* src/cairo_gl_surface.c (added): Added OpenGL surface backend.

37
38
	* configure.in: Automatically detect available backends.

Carl Worth's avatar
Carl Worth committed
39
40
41
42
43
44
2004-04-06  Carl Worth  <cworth@isi.edu>

	* NEWS: Added notes for snapshot 0.1.20.

	* RELEASING: Added new RELEASING file.

David Reveman's avatar
David Reveman committed
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
2004-04-04  David Reveman  <c99drn@cs.umu.se>

	* src/cairoint.h: Added create_pattern backend function and pattern
	prototypes.

	* src/cairo_xlib_surface.c: Added _cairo_xlib_surface_create_pattern.

	* src/cairo_xcb_surface.c: Added _cairo_xcb_surface_create_pattern.

	* src/cairo_traps.c: Added _cairo_trap_extents and 
	_cairo_traps_extents.

	* src/cairo_surface.c: Added _cairo_surface_create_pattern.

	* src/cairo_ps_surface.c: Added _cairo_ps_surface_create_pattern.

	* src/cairo_png_surface.c: Added _cairo_png_surface_create_pattern.

	* src/cairo_pattern.c (added): All functions needed for the new
	pattern API.

	* src/cairo_image_surface.c: Added
	_cairo_image_abstract_surface_create_pattern.

	* src/cairo_gstate.c (_cairo_gstate_init): Create solid pattern
	and set alpha to 0.0.
	(_cairo_gstate_init_copy): Increment pattern references.
	(_cairo_gstate_fini): Destroy pattern.
	(_cairo_gstate_set_pattern): Destroy current pattern,
	increment references to the new pattern and update pattern
	offset with the current point.
	(_cairo_gstate_set_rgb_color): Destroy current pattern and
	create a new solid pattern.
	(_cairo_gstate_current_rgb_color): Get RGB from current pattern.
	(_cairo_gstate_set_alpha): Set gstate->alpha without modifying
	the current pattern.
	(_cairo_gstate_stroke):
	(_cairo_gstate_fill): Removed surface matrix computations as
	they are now handled by _cairo_gstate_create_pattern.
	(_cairo_gstate_clip_and_composite_trapezoids): Create a
	possibly backend accelerated pattern source and use it for
	compositing trapezoids.
	(_cairo_gstate_clip): Allow backends to not support rectangular
	clipping regions. Use solid pattern for creating clip surface.
	(_cairo_gstate_show_surface): Use solid pattern for alpha mask.
	(_cairo_gstate_show_text):
	(_cairo_gstate_show_glyphs): Use current pattern when compositing
	glyphs.

	Added _cairo_gstate_current_pattern and _cairo_gstate_create_pattern,
	_cairo_gstate_stroke_extents, _cairo_gstate_fill_extents.
	Removed restore_text_rendering_context, setup_text_rendering_context,
	_cairo_gstate_ensure_source.

	* src/cairo_ft_font.c (_cairo_ft_font_show_glyphs): Advance
	source offset.

	* src/cairo.h: Added cairo_current_pattern,
	cairo_pattern_create_for_surface, cairo_pattern_create_linear,
	cairo_pattern_create_radial, cairo_pattern_reference,
	cairo_pattern_destroy, cairo_pattern_add_color_stop,
	cairo_pattern_set_matrix, cairo_pattern_get_matrix,
	cairo_pattern_set_extend, cairo_pattern_get_extend,
	cairo_pattern_set_filter, cairo_pattern_get_filter. cairo_set_pattern
	now takes a cairo_pattern_t pointer instead of a cairo_surface_t
	pointer. Added CAIRO_FILTER_GAUSSIAN filter type. Added cairo_extend_t
	enum.

	* src/cairo.c: _cairo_restrict_value declared not static as it's
	used in cairo_pattern.c. Added rectangular extents functions
	cairo_stroke_extents and cairo_fill_extents. cairo_set_pattern now
	takes a cairo_pattern_t pointer instead of a cairo_surface_t
	pointer. Added cairo_current_pattern function.

	* src/Makefile.am (libcairo_la_LIBADD): Removed -lz and added PS_LIBS.

	* configure.in: Bump version to 0.1.20. Includes new pattern
	API. Removed an extra AC_SUBST(XRENDER_LIBS). 
	PS_SURFACE_LIBS -> PS_LIBS.

	* cairo.pc.in: PS_SURFACE_LIBS -> PS_LIBS.

127
128
129
130
131
132
133
134
135
136
137
2004-04-02  Carl Worth  <cworth@east.isi.edu>

	* src/cairo.h: Move weight after slant to match the order in
	cairo_select_font.

	* TODO: Added notes on DPI for image-based backends and on
	proposal for new cairo_text_glyphs function.

	* BUGS: Added BUG about cairo_show_text not advancing the current
	point.

Carl Worth's avatar
Carl Worth committed
138
139
140
141
2004-03-30  Carl Worth  <cworth@isi.edu>

	* src/Makefile.am (libcairo_la_LIBADD): Add -lz.

142
143
2004-03-30  Carl Worth  <cworth@isi.edu>

144
145
146
147
	* configure.in: Add checks for Xrender.h in xrender.pc is not
	found. Remove AC_HELP_STRING to be compatible with older versions
	of autoconf (thanks to Bill Spitzak <spitzak@d2.com>).

148
149
150
151
152
153
154
155
156
157
158
159
	* src/cairo_xlib_surface.c (_cairo_xlib_surface_set_clip_region):
	Add question on semantics with empty region. Fix missing return
	value.

	* src/cairo_image_surface.c
	(_cairo_image_surface_set_clip_region): Export for internal use.
	(_cairo_image_abstract_surface_set_clip_region): Add silly wrapper
	to match the backend interface.

	* src/cairo_gstate.c (_cairo_gstate_init_clip): Remove unused
	variables.

160
161
162
163
	* src/cairo.h: Add proposal for cairo_xlib_surface_set_size.

	* BUGS: Added note about problem with cairo_scale_font.

164
165
166
167
168
169
170
171
172
173
174
2004-03-23  Olivier Andrieu  <oliv__a@users.sourceforge.net>
	
	* src/cairo_ps_surface.c (_cairo_ps_surface_set_clip_region)
	* src/cairo_png_surface.c (_cairo_png_surface_set_clip_region):
	Implement _set_clip_region by delegating it to the image backend.

	* src/cairo_xcb_surface.c (_cairo_xcb_surface_set_clip_region):
	Add a stub.

	* src/cairo.h: Add missing (?) cairo_init_clip

175
176
2004-03-20  Dave Beckett  <Dave.Beckett@bristol.ac.uk>

177
178
179
180
	* configure.in: Move the PNG_CFLAGS/_LIBS substitutes outside
	the conditional, to match what is already done for XCB.
	Do the same for XRENDER_CFLAGS/LIBS.

181
182
183
184
	* configure.in: Substitute PNG_CFLAGS, PNG_LIBS on
	the configure path when use_png is not enabled to prevent
	the substituions being undefined.

Graydon Hoare's avatar
Add.    
Graydon Hoare committed
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
2004-03-19  Graydon Hoare  <graydon@redhat.com>

	* src/cairo.c (cairo_init_clip): Add.
	* src/cairo_gstate.c:
	Initialize, finalize and copy clip.region.
	Detect rectangular clips and push down to backend.

	* src/cairoint.h
	(cairo_surface_backend_t): Add set_clip_region slot.
	(cairo_clip_rec_t): Add region slot.
	(_cairo_gstate_init_clip)
	(_cairo_surface_set_clip_region): Prototype.

	* src/cairo_surface.c
	(_cairo_surface_set_clip_region): Add.
	
	* src/cairo_xlib_surface.c 
	(_cairo_xlib_surface_set_clip_region): Add.

	* src/cairo_image_surface.c 
	(_cairo_image_surface_set_clip_region): Add.

	* src/cairo_ps_surface.c
	(_cairo_ps_surface_set_clip_region): Stub, not implemented.

210
211
212
213
214
215
216
217
218
219
2004-03-16  Jamey Sharp <jamey@minilop.net>

	* src/cairo.h:
	* src/cairo_xcb_surface.c:
	Updated for XCB typename renaming. The Xlib and XCB surfaces can
	be compiled in the same library now.

	* src/cairo_surface.c:
	Initialize the surface's filter value.

220
221
2004-02-26  Carl Worth  <cworth@isi.edu>

Carl Worth's avatar
Carl Worth committed
222
	* AUTHORS: Add Jordi and Olivier to the AUTHORS file.
223
224
225
226

	* src/cairo_ft_font.c (_utf8_to_ucs4): Fix broken return value for
	nchars (thanks to Jordi Mas <jordi@ximian.com>).

Olivier Andrieu's avatar
Olivier Andrieu committed
227
228
229
230
231
232
233
234
235
236
237
238
239
240
2004-02-24  Olivier Andrieu  <oliv__a@users.sourceforge.net>

	* src/cairo.h:
	* src/cairo-features.h.in:
	* src/cairo_png_surface.c: Add PNG backend (cairo_set_target_png
	and cairo_png_surface_create).

	* cairo.pc.in:
	* configure.in: autoconf support for the PNG backend. Bump version
	to 0.1.19.
	
	* src/Makefile.am: PNG backend support, removed references to
	X_LIBS and X_CFLAGS.

241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
2004-02-24  Carl Worth  <cworth@isi.edu>

	* AUTHORS: Add attribution for many people who have made generous
	contributions to cairo. This list was generated by sifting through
	the ChangeLog. Please let me know if I have missed anyone.

	* NEWS: Add some historical notes on cairo development, prior to
	when we began to maintain this NEWS file.

	* README (http): Add pointer to cairographics.org. Fix to use
	"cairo" rather than "Cairo" when not at the beginning of a
	sentence.

	* TODO: Remove cairo_current_path, cairo_current_path_flat,
	cairo_text_extents, cairo_glyph_extents, cairo_text_path, and
	cairo_glyph_path from the TODO list as they have all been
	implemented now.

259
260
2004-02-17  Carl Worth  <cworth@isi.edu>

261
262
263
	* src/cairo.h: Add comment indication cairo_copy will be going
	away at some point. Some indentation fixes.

264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
	* configure.in: Bump version to 0.1.18. Includes new functions
	cairo_current_path, cairo_current_path_flat,
	cairo_surface_get_filter. Support for XCB backend. Fixes for
	building in cygwin. Adds cairo_surface_get_filter.

	* src/cairo.h: 
	* src/cairo.c (cairo_current_path): 
	(cairo_current_path_flat): Add new path query functions.

	* src/cairo_gstate.c (_gpi_move_to):
	(_gpi_line_to):
	(_gpi_curve_to):
	(_gpi_close_path):
	(_cairo_gstate_interpret_path): Implement support for
	cairo_current_path and cairo_current_path_flat. These functions
	just provide an interface to _cairo_path_interpret and take care
	of mapping from device space back to user space.

282
283
284
285
286
287
2004-02-13  Carl Worth  <cworth@east.isi.edu>

	* TODO: Add some notes from JG's TODO list on the wiki:
	http://cairographics.org/CairoToDoList. (Also testing automated
	mailing to cairo-commit list).

288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
2004-02-12  Carl Worth  <cworth@isi.edu>

	* src/cairo.h: Add typedefs for new callbacks to be used by
	cairo_current_path: cairo_move_to_func, cairo_line_to_func,
	cairo_curve_to_func, and cairo_close_path_func.

	* src/cairoint.h: cairo_path.last_move_point and
	cairo_path.current_point are now fixed-point not doubles for
	consistency.

	* src/cairo_path.c (_cairo_path_interpret): Now accept 4 explicit
	function pointers rather than a structure. Eliminate unnecessary
	done_path callback.
	
	* src/cairo_path_bounds.c (_cairo_path_bounds):
	* src/cairo_path_stroke.c (_cairo_path_stroke_to_traps): 
	* src/cairo_path_fill.c (_cairo_path_fill_to_traps): Track change
	in _cairo_path_interpret. Code previously in done_path callback is
	now here immediately after call to _cairo_path_interpret.

	* src/cairo_path.c (_cairo_path_move_to):
	(_cairo_path_rel_move_to):
	(_cairo_path_line_to):
	(_cairo_path_rel_line_to):
	(_cairo_path_curve_to):
	(_cairo_path_rel_curve_to):
	(_cairo_path_current_point): Internal _cairo_path API modified to
	accept fixed-point data everywhere. Much cleaner this way.

	* src/cairo_gstate.c (_cairo_gstate_move_to):
	(_cairo_gstate_line_to):
	(_cairo_gstate_curve_to):
	(_cairo_gstate_rel_move_to):
	(_cairo_gstate_rel_line_to):
	(_cairo_gstate_rel_curve_to):
	(_cairo_gstate_current_point):
	(_cairo_gstate_show_text):
	(_cairo_gstate_text_path): Have to convert doubles to fixed-point
	to track changes in _cairo_path API.

	* src/cairo_ft_font.c (_move_to, _line_to, _conic_to, _cubic_to):
	Keep data in fixed-point rather than going through intermediate
	doubles. Track changes in _cairo_path API.

	* src/cairo_fixed.c (_cairo_fixed_from_26_6): New function to help
	when working with freetype.

335
336
337
338
339
340
341
342
343
2004-02-02  Jamey Sharp  <jamey@minilop.net>

	* configure.in:
	* src/Makefile.am:
	* src/cairo-features.h.in:
	* src/cairo.h:
	* src/cairo_xcb_surface.c (added):
	Ported the Xlib surface backend to XCB.

344
345
346
347
348
349
350
2004-02-02  Graydon Hoare  <graydon@redhat.com>

	* src/cairo_xlib_surface.c 
	(CAIRO_SURFACE_RENDER_HAS_FILTERS): New predicate.
	(_cairo_xlib_surface_set_filter): Skip filterless servers.
	(_cairo_xlib_surface_clone_similar): Fix typo.

Graydon Hoare's avatar
Graydon Hoare committed
351
352
353
354
355
356
357
358
359
360
361
2004-01-27  Graydon Hoare  <graydon@redhat.com>

	* src/cairoint.h (cairo_surface): New "filter" field.
	* src/cairo_surface.c 
	(cairo_surface_get_filter): New function.
	(cairo_surface_set_filter): Store filter in surface.
	* src/cairo.h (cairo_surface_get_filter): Declare.
	* src/cairo_xlib_surface.c
	(_cairo_xlib_surface_clone_similar): Copy filter setting.
	(_cairo_xlib_surface_set_filter): Use constants from Xrender.h

362
363
2004-01-24  Carl Worth  <cworth@isi.edu>

364
365
366
367
368
	* src/cairo_path_stroke.c (_cairo_stroker_add_sub_edge): Fix to
	use tessellate_polygon instead of tessellate_rectangle as the
	matrix may have skewed the coordinates into a non-rectangular
	shape.

369
370
371
	* src/cairo_xlib_surface.c (_cairo_xlib_surface_set_filter): Add
	missing break statements to switch.

372
373
374
375
376
377
378
379
380
381
382
383
384
385
2004-01-22  Richard D. Worth  <richard@theworths.org>

	* src/Makefile.am: Add '-no-undefined' to end of
	libcairo_la_LDFLAGS to enable building shared library under
	cygwin.

	* src/cairo.h: Remove all 'extern ' and ' __external_linkage'
	(macro for __declspec(dllexport) and __declspec(dllimport))
	from function declarations. These are no longer needed for cygwin.

	* src/cairo_traps.c: Changed type of _line_segs_intersect_ceil
	from 'static cairo_fixed_t' to 'static int' to match definition.
	This was necessary to compile under cygwin.
	
386
387
388
389
390
2003-12-17  Carl Worth  <cworth@east.isi.edu>

	* src/cairo.h: Remove trailing commas from enums, (some compilers
	like to complain about them).

391
392
393
394
2003-12-16  Dave Beckett  <Dave.Beckett@bristol.ac.uk>

	* README: Do not require libpixregion, libic.

395
396
397
398
2003-12-16  Carl Worth  <cworth@east.isi.edu>

	* NEWS: Add more notes culled from the ChangeLog.

399
400
2003-12-16  Carl Worth  <cworth@isi.edu>

401
402
	* NEWS: Begin maintaining NEWS file. Add notes on 0.1.17.

403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
	* configure.in: Bump version to 0.1.17 for new functions:
	cairo_text_extents, cairo_glyph_extents, cairo_text_path,
	cairo_glyph_path.

	* src/cairo.h: 
	* src/cairo.c (cairo_text_path): 
	(cairo_glyph_path): Re-enable cairo_text_path and cairo_glyph_path.

	* src/cairo_gstate.c (_cairo_gstate_glyph_path): Add missing
	transformation.

	* src/cairo_ft_font.c (_move_to):
	(_line_to):
	(_conic_to):
	(_cubic_to):
	(_cairo_ft_font_glyph_path): Initial implementation of glyph_path.

420
421
2003-12-16  Carl Worth  <cworth@isi.edu>

422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
	* src/cairoint.h: Move all current_point state fields from
	cairo_gstate_t to cairo_path_t.

	* src/cairo_path.c (_cairo_path_init): 
	(_cairo_path_init_copy): 
	(_cairo_path_fini): 
	(_cairo_path_move_to): 
	(_cairo_path_line_to): 
	(_cairo_path_curve_to): 
	(_cairo_path_close_path): Add current_point state.
	(_cairo_path_current_point): New function.
	(_cairo_path_rel_move_to): 
	(_cairo_path_rel_line_to): 
	(_cairo_path_rel_curve_to): New functions.

	* src/cairo_gstate.c (_cairo_gstate_init):
	(_cairo_gstate_new_path):
	(_cairo_gstate_move_to):
	(_cairo_gstate_line_to):
	(_cairo_gstate_curve_to):
	(_cairo_gstate_rel_move_to):
	(_cairo_gstate_rel_line_to):
	(_cairo_gstate_rel_curve_to):
	(_cairo_gstate_close_path):
	(_cairo_gstate_current_point): Eliminate current_point state.
	(_cairo_gstate_show_text):
	(_cairo_gstate_text_path): Use new _cairo_path_current_point.

2003-12-16  Carl Worth  <cworth@isi.edu>


453
454
455
456
	* src/cairo_ft_font.c (_cairo_ft_font_glyph_path):
	(_cairo_ft_font_text_path): A couple of changes missed in the last
	batch of commits (reordering so that path is final argument).

457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
	* src/cairoint.h: Change cairo_font_backend_t to use a void * for
	the abstract font. Put create, copy, and destroy as the first
	functions in the list. Fix text_path and glyph_path so that the
	path to be returned is the last argument. Add x,y arguments to
	text_path.

	* src/cairo_gstate.c (_cairo_gstate_text_path): Compute x,y now
	needed by cairo_font_text_path.
	(_cairo_gstate_glyph_path): Track change in
	cairo_font_text/glyph_path (path argument is now last).

	* src/cairo_ft_font.c: Switch to new macro-based mechanism for
	including freetype headers.
	(cairo_ft_font_face):
	(cairo_ft_font_pattern): Minor cleanup.
	(_cairo_ft_font_copy):
	(_cairo_ft_font_destroy):
	(_utf8_to_glyphs):
	(_cairo_ft_font_font_extents):
	(_cairo_ft_font_glyph_extents):
	(_cairo_ft_font_text_extents):
	(_cairo_ft_font_show_glyphs):
	(_cairo_ft_font_show_text): Track changes to cairo_font_backend_t
	interface.

	* src/cairo_font.c (_cairo_font_text_path):
	(_cairo_font_glyph_path): Track changes to cairo_font_backend_t
	interface.

486
487
488
489
490
2003-12-16  Carl Worth  <cworth@isi.edu>

	* TODO: Change instances of Cairo to cairo where necessary. Add
	note about broken dashing on splines.

491
492
493
494
495
496
497
498
499
500
501
502
2003-12-15  Carl Worth  <cworth@isi.edu>

	* src/cairo_gstate.c (_cairo_gstate_text_extents): 
	(_cairo_gstate_glyph_extents): 
	* src/cairo_ft_font.c (_cairo_ft_font_glyph_extents): 
	(_cairo_ft_font_glyph_extents): 
	* src/cairo.h: Rename cairo_text_exextents_t fields:
		left_side_bearing -> x_bearing
		ascent -> y_bearing
		right_side_bearing (replaced by) width
		descent (replaced by) height

503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
2003-12-15  Carl Worth  <cworth@isi.edu>

	* src/cairo_gstate.c (_cairo_gstate_text_extents):
	(_cairo_gstate_glyph_extents): Need to divide out the scale factor
	to return user-space extents.
	(_cairo_gstate_glyph_extents): Don't transform glyph locations as
	they're not relevant to extents.

	* src/cairo_ft_font.c (_cairo_ft_font_font_extents): Clean up
	implementation.
	(_cairo_ft_font_glyph_extents): Initial implementation. Thanks to
	John Ellson <ellson@research.att.com> for most of the work on this
	function.
	(_cairo_ft_font_show_text): Clean to use num_glyphs not nglyphs.

	* src/cairo.h: 
	* src/cairo.c (cairo_text_extents): 
	(cairo_glyph_extents): Re-enable cairo_text/glyph_extents.

522
523
2003-12-15  Carl Worth  <cworth@isi.edu>

524
525
526
	* src/cairo_matrix.c (_cairo_matrix_compute_scale_factors): Move
	this function from cairo_ft_font.c (_get_scale_factors).

527
528
529
	* src/cairo_ft_font.c (DOUBLE_TO_16_16): Fix minor errors in
	fixed/floating-point conversion.

530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
	* src/cairoint.h: font->show_glyphs no longer accepts an offset
	point.

	* src/cairo_ft_font.c (_utf8_to_glyphs):
	(_cairo_ft_font_text_extents):
	(_cairo_ft_font_show_text):
	(_cairo_ft_font_text_path): _utf8_to_glyphs now accepts a point by
	which each glyph should be offset.
	(cairo_ft_font_backend): Remove evil void * casts on function
	pointers.

	* src/cairo_font.c (_cairo_font_show_glyphs): Fix to not require a
	current point.

	* src/cairo_gstate.c (_cairo_gstate_show_text):
	(setup_text_rendering_context): Move initialization of current
	device-space point from setup_text_rendering_context to
	_cairo_gstate_show_text.
	(_cairo_gstate_show_glyphs): Fix to not reference current point.

550
551
552
553
554
555
2003-12-12  Dave Beckett  <Dave.Beckett@bristol.ac.uk>

	* src/Makefile.am: Add compatibility defines FONTCONFIG_LIBS,
	X_LIBS, XRENDER_LIBS to keep automake happy - they look like
	automake variable names.

556
557
2003-12-12  Carl Worth  <cworth@east.isi.edu>

558
559
560
561
562
563
	* src/cairo_font.c (_cairo_font_create): Add comment about
	building in a font.

	* src/cairo_ft_font.c (_cairo_ft_font_create): Check for NULL
	return value from cairo_ft_font_create.

564
565
566
567
568
569
570
571
572
573
574
575
	* src/cairo.h: 
	* src/cairo-features.h.in: 
	* src/Makefile.am (libcairo_ps_sources): Add conditionals for
	ps_surface functions, etc.

	* configure.in: Get rid of AC_PATH_XTRA. Instead, find X
	includes/libraries only via pkg-config xrender.
	Switch option from --without-x to --disable-xlib
	Add option --disable-ps

	* cairo.pc.in (Libs): Add -lz only if ps_surface backend is compiled.

576
577
578
	* src/cairo.h (__external_linkage): Add missing definitions from
	slim_import.h.

579
580
2003-12-11  Carl Worth  <cworth@isi.edu>

581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
	* src/cairoint.h: Rename surface->ic_image to
	surface->pixman_image.

	* src/cairo_image_surface.c
	(_cairo_image_surface_create_for_pixman_image):
	(_cairo_image_surface_create_with_masks):
	(_create_pixman_format):
	(cairo_image_surface_create):
	(cairo_image_surface_create_for_data):
	(_cairo_image_abstract_surface_destroy):
	(_cairo_image_surface_set_matrix):
	(_cairo_image_surface_set_filter):
	(_cairo_image_surface_set_repeat):
	(_pixman_operator):
	(_cairo_image_surface_fill_rectangles):
	(_cairo_image_surface_composite_trapezoids): Rename functions and
	indentifiers with ic_ in the name that were missed by the recent
	renaming. Fix indentation problems left by the recent renaming.

	* Shift everything over from libic/libpixregion/slim to
	libpixman. Many thanks to Dave Beckett
	<dave.beckett@bristol.ac.uk> for all of the heavy lifting with
	this renaming effort.

605
606
607
608
609
610
611
612
613
614
615
616
617
618
	* src/cairoint.h (slim_hidden_proto1): Directly fold in slim stuff
	rather than depending on it from an external package.

	* src/cairo_ps_surface.c (_cairo_ps_surface_copy_page): 
	* src/cairo_image_surface.c: Switch from libic to libpixman.

	* src/cairo.h: Include pixman.h not ic.h.
	(__external_linkage): Directly fold in slim stuff rather than
	depending on it from an external package.

	* configure.in (PKG_CHECK_MODULES): 
	* cairo.pc.in (Requires): Look for libpixman instead of libic and
	slim.

619
620
621
622
623
624
625
626
2003-12-11  Andrew Chant <andrew.chant@utoronto.ca>

	*  cairo_select_font:
	 _cairo_font_create:
	 _cairo_ft_font_create:
	 _cairo_gstate_select_font:
	 	change char * family to const char * family

627
628
629
630
631
632
2003-12-11  Carl Worth  <cworth@isi.edu>

	* src/cairo_xlib_surface.c (_cairo_xlib_surface_set_image):
	Replace mysterious image->depth == 32 ? 24 : image->depth with
	simply image->depth.

633
634
635
636
637
2003-12-11  Carl Worth  <cworth@east.isi.edu>

	* cairo.pc.in (Requires): 
	* configure.in: Add xrender to cairo.pc Renders line if needed.

638
639
640
641
642
643
644
2003-12-11  Carl Worth  <cworth@east.isi.edu>

	* src/cairo_ps_surface.c (_cairo_ps_surface_copy_page): Fix to use
	shifts and masks for endianness-correct PS image
	generation. Rename bgr to rgb now that the byte order issues are
	clear.

645
646
2003-12-08  Carl Worth  <cworth@isi.edu>

647
648
649
650
651
652
	* src/cairo_path_bounds.c (_cairo_path_bounder_move_to):
	(_cairo_path_bounder_line_to):
	(_cairo_path_bounder_curve_to):
	(_cairo_path_bounder_close_path): Track change in
	cairo_path_callbacks interface.

653
654
655
656
657
658
659
660
661
662
663
664
665
666
	* src/cairoint.h: 
	* src/cairo_path_stroke.c: 
	* src/cairo_path_fill.c: 
	* src/cairo_path.c: Clean up cairo_path_callbacks to have move_to,
	line_to, curve_to, abd close_path instead of add_edge, add_spline,
	and done_sub_path. Much, much nicer.

	* src/cairo_polygon.c (_cairo_polygon_move_to): Provide
	cairo_polygon_move_to and cairo_polygon_line_to instead of
	cairo_polygon_add_point.

	* src/cairo_pen.c (_cairo_pen_stroke_spline_half): Track change in
	cairo_polygon interface.

667
668
669
670
671
2003-12-08  Carl Worth  <cworth@isi.edu>

	* configure.in: Bump version to 0.1.16 since it actually has a
	hope of building, (due to fix for broken cairo-xlib.h includes).

672
673
2003-12-05  Carl Worth  <cworth@east.isi.edu>

674
675
	* src/cairo_xlib_surface.c: Don't include obsolete cairo-xlib.h.

676
677
678
	* autogen.sh (AUTOCONF): Allow names of all autofoo programs to be
	overridden via environment variables.

679
680
681
682
683
684
685
686
687
688
689
690
	* configure.in: Bump version to 0.1.15 for new
	CAIRO_HAS_XLIB_SURFACE macro.

	* src/cairo.h: Add missing #include <cairo-features.h>

	* Rename cairo-config.h to cairo-features.h.

	* configure.in: Rename XLIB_BACKEND_DEFINE to
	XLIB_SURFACE_FEATURE. Rename AM_CONDITIONAL HAVE_XLIB_BACKEND to
	CAIRO_HAS_XLIB_SURFACE. Rename user-visibile macro
	CAIRO_HAS_XLIB_BACKEND to CAIRO_HAS_XLIB_SURFACE.

691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
2003-12-03  Carl Worth  <cworth@east.isi.edu>

	* configure.in: Bumped version to 0.1.14 to indicate dropped
	cairo-xlib.h and new cairo-config.h.

	* New support for "./configure --without-x" to compile without the
	xlib backend. Many thanks to Sasha V. <sasha@aftercode.net>.
	
	* configure.in: We do three things here: Make the pkg-config check
	for xrender conditional, set XLIB_BACKEND_DEFINE to either
	CAIRO_HAS_XLIB_BACKEND or CAIRO_HAS_NO_XLIB_BACKEND to be
	substituted into cairo-config.h, and set an AM_CONDITIONAL for
	HAVE_XLIB_BACKEND to enable conditional compilation of
	cairo_xlib_surface.c.  Perhaps that could be simplified a tad, but
	it's what we have working now.  Also split up various
	PKG_CHECK_MODULES into separate checks.

	* src/cairo_gstate.c: Remove errant reference to
	cairo_gstate_set_drawable.

	* src/cairo.h: Move xlib-specific calls in from old cairo-xlib.h,
	now guarded in #ifdef CAIRO_HAS_XLIB_BACKEND.

	* src/Makefile.am (libcairo_xlib_sources): Make compilation of
	cairo_xlib_surface.c conditional.
	(INCLUDES, libcairo_la_LIBADD): Add the new variables from
	splitting up the PKG_CHECK_MODULES calls.

719
720
721
722
723
2003-12-03  Carl Worth  <cworth@east.isi.edu>

	* cairo.pc.in (Libs): Add -lz for the compress function used in
	the PS backend.

724
725
726
727
728
2003-12-01  Keith Packard  <keithp@keithp.com>

	* TODO:
	Add note about degenerate path caps being broken

729
730
731
732
733
734
735
736
737
738
2003-11-21  Carl Worth  <cworth@east.isi.edu>

	* src/cairo_polygon.c (_cairo_polygon_add_edge): Use 0 and 1 not
	False and True, (to avoid false dependency on X headers).

	* src/cairo_path_stroke.c (_compute_face): Use
	cairo_point_double_t not XPointDouble, (to avoid false dependency
	on X headers). Thanks to "Sasha V." <sasha@aftercode.net> for
	pointing these out.

739
740
741
742
743
744
2003-11-18  Carl Worth  <cworth@east.isi.edu>

	* configure.in: Bump version to 0.1.13 for new freetype header
	compatibility.
	Fix comments regarding freetype version checking.

745
746
747
748
749
750
751
752
753
2003-11-18  James Henstridge  <james@daa.com.au>

	* cairo.pc.in (Cflags): add FREETYPE_CFLAGS/LIBS to Libs/Cflags
	rather than requiring "freetype2", which doesn't exist in anything
	but the most recent version of freetype.

	* configure.in (FREETYPE_LIBS): add freetype cflags/libs
	substitutions.

754
755
756
757
758
2003-11-18  Carl Worth  <cworth@east.isi.edu>

	* src/cairo.h: Fix build for new freetype header include
	mechanism, (thanks to Christof Petig <christof@petig-baender.de>)

759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
2003-11-17  Carl Worth  <cworth@isi.edu>

	* Remove infinite looping when stroking with a line width at or
	close to 0.0. Thanks to Rob Buis <buis@kde.org> and Noah Levitt
	<nlevitt@columbia.edu> for providing in-the-wild examples of SVG
	files with stroke-width:0 that demonstrated the problem,
	(cowboy.svg and albania.svg).

	* src/cairo_pen.c (_cairo_pen_stroke_spline): Do nothing if the
	pen is a degenerate, single point. This happens when the line
	width is a very small, non-zero value.

	* src/cairo_gstate.c (_cairo_gstate_stroke): Do nothing when asked
	to stroke a path with a line_width of 0.0. Previously, this would
	lead to an infinite loop.

	* src/cairo.c (cairo_set_line_width): Force negative line width
	to 0.0.

	* TODO: Updated TODO list.

780
781
782
783
784
785
786
787
2003-11-10  Carl Worth  <cworth@east.isi.edu>

	* configure.in: Fix typo (thanks to John Ellson
	<ellson@research.att.com>)

	* TODO: Add TODO items for intersection problem, programmatic
	patterns, missing text functions.

788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
2003-11-06  Carl Worth  <cworth@isi.edu>

	* configure.in (CAIRO_VERSION): Bumped version to 0.1.12 for new
	cairo_in_stroke and cairo_in_fill functions.

	* src/cairo.h:
	* src/cairo.c (cairo_in_stroke):
	(cairo_in_fill): Added new cairo_in_stroke and cairo_in_fill.

	* src/cairo_traps.c (_cairo_trap_contains):
	(_cairo_traps_contain): * src/cairo_gstate.c
	(_cairo_gstate_in_stroke):
	(_cairo_gstate_in_fill): New functions to support for
	cairo_in_stroke and cairo_in_fill. Many thanks to Thomas Hunger
	<info@teh-web.de> for the initial implementation which
	demonstrated how easy this would be and pushed me to go and write
	it already.

	* src/cairo_gstate.c (_cairo_gstate_clip_and_composite_trapezoids):
	* src/cairo_traps.c (_line_segs_intersect_ceil): 
	* src/cairo_path.c (_cairo_path_move_to):
	(_cairo_path_line_to):
	(_cairo_path_curve_to): Fixed to use _cairo_fixed_from_double
	instead of XDoubleToFixed.

813
814
2003-11-06  Carl Worth  <cworth@east.isi.edu>

815
816
817
	* src/cairo.c (cairo_current_font): Move declaration to beginning
	of function to avoid requiring a C99-compatible compiler.

818
819
820
821
822
823
824
825
826
827
	* src/cairo.h: Add comment pondering memory management semantics
	of cairo_current_target_surface.

	* src/cairo_pen.c (_cairo_pen_fini): NULL out pen->vertices after
	free.

	* src/cairo_image_surface.c
	(_cairo_image_abstract_surface_destroy): NULL out durface->data
	after free.

828
829
2003-11-04  Carl Worth  <cworth@east.isi.edu>

830
831
832
833
	* src/cairo_gstate.c (_cairo_gstate_set_target_surface): Enable
	cairo_set_target_surface (cr, NULL) to work. This can be useful to
	force the current target surface to be finalized.

834
835
836
837
	* configure.in: 
	* cairo.pc.in (Requires): Add explicit fontconfig and freetype2
	dependencies that were implicitly dropped along with Xft.

838
839
840
841
842
843
2003-11-04  Carl Worth  <cworth@isi.edu>

	* TODO: Note that cairo_show_page, cairo_copy_page, PostScript
	backend, "real" text API, and text support for the image backend
	have now all been implemented.

844
845
846
847
848
849
2003-11-04  Carl Worth  <cworth@east.isi.edu>

	* configure.in:
	* cairo.pc.in (Requires): cairo doesn't depend on Xft after the
	recent text work.

850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
2003-11-03  Carl Worth  <cworth@isi.edu>

	* configure.in (CAIRO_VERSION): Bump version to 0.1.11 for new
	cairo_copy_page.

	* src/cairo_ps_surface.c (cairo_ps_surface_create): Now print
	header at time of surface_create rather than in show_page.
	(_cairo_ps_surface_destroy): Print document footer at time of
	surface_destroy rather than in show_page.
	(_cairo_ps_surface_erase): New function for sharing.
	(_cairo_ps_surface_copy_page): Now keep proper page count.
	(_cairo_ps_surface_show_page): Real work is now done in
	copy_page. show_page is only distinct in that it erases the
	surface afterwards.

	* src/cairo.h: 
	* src/cairo.c (cairo_copy_page):
	* src/cairo_gstate.c (_cairo_gstate_copy_page): 
	* src/cairo_surface.c (_cairo_surface_copy_page):
	* src/cairo_image_surface.c (_cairo_image_surface_copy_page): 
	* src/cairo_xlib_surface.c (_cairo_xlib_surface_copy_page): Add
	support for new cairo_copy_page function.

873
874
875
876
877
878
879
880
881
882
883
884
885
886
2003-11-03  Carl Worth  <cworth@isi.edu>

	* src/cairo_ps_surface.c (cairo_set_target_ps): Add missing check
	for out of memory.

	* src/cairo_image_surface.c
	(_cairo_image_surface_create_with_masks):
	(_cairo_image_surface_create_with_masks):
	(cairo_image_surface_create):
	(cairo_image_surface_create):
	(cairo_image_surface_create_for_data):
	(cairo_image_surface_create_for_data): Add several missing checks
	for out of memory.

887
888
889
890
891
2003-11-03  Carl Worth  <cworth@east.isi.edu>

	* src/cairo.h: Added __external_linkage to a few functions that
	were missing it.

892
893
2003-11-01  Carl Worth  <cworth@isi.edu>

894
895
896
897
	* src/cairo_ps_surface.c (_cairo_ps_surface_show_page): Fix
	misplacement of PS origin, (was translating vertically by width
	instead of height).

898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
	* configure.in (CAIRO_VERSION): Bumped version to 0.1.10 for new
	functions cairo_set_target_ps, cairo_ps_surface_create, and
	cairo_show_page.

	* src/cairo_ps_surface.c: New file with preliminary support for
	drawing to a PostScript file. Most of the ps_surface backend
	functions are just tiny wrappers, deferring to image_surface
	functions to do the real work. Then, in show_page, the image is
	compressed and spit out into the file. Crude and effective.

	* src/cairo.c (cairo_show_page):
	* src/cairo_gstate.c (_cairo_gstate_show_page):
	* src/cairo_image_surface (_cairo_image_surface_show_page):
	* src/cairo_xlib_surface.c (_cairo_xlib_surface_show_page): 
	* src/cairo_surface.c (_cairo_surface_show_page): Implement new
	support for cairo_show_page -- just a stub in the non-PS surfaces.

	* src/cairo_image_surface.c (_cairo_image_surface_set_filter):
	Export this function for internal use.

	* src/cairo.h: Added cairo_set_target_ps, cairo_ps_surface_create,
	and cairo_show_page. Noted plans for new cairo_surface_clip_begin,
	perhaps moving some cairo_surface functions to cairo_set_pattern,
	and possibly renaming cairo_matrix_t to cairo_transform_t.
	
	* src/Makefile.am (libcairo_la_SOURCES): Added cairo_ps_surface.c.

925
926
927
928
929
930
2003-10-31  Carl Worth  <cworth@isi.edu>

	* src/cairo_gstate.c (_cairo_gstate_arc):
	(_cairo_gstate_arc_negative): Do nothing when radius <= 0.0,
	(which is much better than the current infinite loop).

931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
2003-10-31  Carl Worth  <cworth@isi.edu>

	* Moved all libic-related drawing into cairo_image_surface.c.
	Details below:

	* src/cairo_xlib_surface.c: Add width, height, format to
	cairo_xlib_surface_t.
	(_cairo_xlib_surface_get_image):
	(_cairo_xlib_surface_set_image): Implement new get_image/set_image
	interface instead of pull_image/push_image.
	(_cairo_xlib_surface_get_image): Fix memory leak that showed up
	with non-Render servers.
	(_cairo_xlib_surface_set_matrix): Implement set_matrix with new
	interface.
	(_render_operator): Translate from cairo_operator_t to
	Render-defined operator values rather than assuming they are the
	same.

	* src/cairo_surface.c: Move all libic-related code into
	cairo_image_surface.c. cairo_surface is now a thin wrapper around
	concrete surface types, (with fallback code to cairo_image_surface
	whenever a backend does not provide support for a particular
	function). Remove checks for NULL backend functions.
	(_cairo_surface_get_image):
	(_cairo_surface_set_image): New interface to replace
	pull_image/push_image. Now uses a cairo_image_surface rather than
	an IcImage and now also passes it externally rather than storing
	it in the surface.

	* src/cairo_gstate.c (_cairo_gstate_fini):
	(_cairo_gstate_set_target_surface):
	(_cairo_gstate_set_rgb_color): Avoid useless calls to
	cairo_surface_destroy for NULL surfaces.
	(_cairo_gstate_show_surface): 
	(_cairo_gstate_clip): 
	(_cairo_gstate_clip_and_composite_trapezoids):
	(_cairo_gstate_begin_group): Add status checking for calls to
	surface_create_similar, surface_fill_rectangles,
	surface_composite, and surface_composite_trapezoids.

	* src/cairo_ft_font.c (_cairo_ft_font_show_glyphs): Remove one
	gratuitous level of nesting.
	(_cairo_ft_font_show_glyphs): Bubble up NULL_MEMORY status.

	* src/cairo.h: Portability improvements: Remove include of
	X11/extensions/Xrender.h. Move include down near the freetype
	include.
	cairo_format_t: Eliminate Render-based values for this enum.
	cairo_operator_t: Eliminate Render-based values. Drop
	disjoint/conjoint operators.
	cairo_filter_t: Eliminate libic-based values for this enum.
	Add cairo_image_surface_create and cairo_image_surface_create_for_data.

	* src/cairo.c (cairo_status_string): Add new CAIRO_STATUS_NULL_POINTER.
	This can be returned only if the user passes a NULL object in to a
	cairo function.

	* src/cairoint.h: Move include of <X11/extensions/Xrender.h> from
	cairo.h to here.

	* src/Makefile.am (libcairo_la_SOURCES): Add
	cairo_image_surface.c. Reformat line continuation characters.

	* src/cairoint.h: Remove prototypes for obsolete functions:
	_cairo_gstate_set_visual and _cairo_gstate_set_format.

Carl Worth's avatar
Carl Worth committed
997
998
999
1000
1001
1002
1003
1004
2003-10-30  Carl Worth  <cworth@isi.edu>

	* src/cairo_xlib_surface.c (_cairo_xlib_surface_destroy): Fix
	memory leaks of surface->gc and surface->ximage.
	(_cairo_xlib_surface_composite):
	(_cairo_xlib_surface_composite_trapezoids): Fix memory leaks of
	cloned surfaces.

1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
2003-10-30  Carl Worth  <cworth@isi.edu>

	* configure.in (CAIRO_VERSION): Bumped version to 0.1.9 for change
	in argument list of cairo_ft_font_create.

	* src/cairo_ft_font.c: A set of changes to eliminate the static
	FT_Library field, (which could introduce nasty problems with
	respect to threading). With the new code, each font created with
	the toy API will own its own FT_Library. Meanwhile,
	cairo_ft_font_create now accepts an FT_Library parameter.

	* src/cairo_ft_font.c: Add ft_library field so that fonts that own
	their own FT_Library can also clean it up.  Eliminate static
	FT_Library and _init_cairo_ft_lib.
	(cairo_ft_font_create): Now accepts an FT_Library argument.
	(_cairo_ft_font_create): Create an FT_Library owned by this font,
	(this only happens as part of the "toy API")
	(_cairo_ft_font_destroy): Clean up ft_font->ft_library if
	necessary.
	(cairo_ft_font_create_for_ft_face): Initialize ft_library and
	owns_ft_library.

	* src/cairo.h: Add FT_Library parameter to cairo_ft_font_create.

1029
1030
2003-10-30  Carl Worth  <cworth@isi.edu>

1031
1032
	* cairo_font: A few cleanups to eliminate a memory leak.

1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
	* src/cairo_gstate.c (_cairo_gstate_init_copy):
	(_cairo_gstate_fini):
	(_cairo_gstate_select_font):
	(_cairo_gstate_set_font): Replace calls to _cairo_font_fini with
	cairo_font_destroy.

	* src/cairo_ft_font.c (_cairo_ft_font_destroy): Rename
	_cairo_ft_font_close to _cairo_ft_font_destroy.

	* src/cairo_font.c: Eliminate unnecessary cairo_font_fini
	function.
	(cairo_font_destroy): Put reference decerement here where it
	belongs.

	* src/cairoint.h: Eliminate unnecessart family, slant, and weight
	fields from cairo_font_t.
	Rname font backend->close to backend->destroy.

Carl Worth's avatar
Carl Worth committed
1051
1052
1053
1054
1055
2003-10-28  Carl Worth  <cworth@isi.edu>

	* README: Updated to match latest text from web page. Fixed stale
	references to Xc and xrtest.

1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
2003-10-28  Carl Worth  <cworth@isi.edu>

	* src/cairo_xlib_surface.c (_cairo_xlib_surface_pixels_per_inch):
	Implement new backend function.

	* src/cairo_surface.c (_cairo_surface_pixels_per_inch): Add new
	function to query surface pixels_per_inch.

	* src/cairo_gstate.c (_cairo_gstate_init): Rename gstate->ppm to
	gstate->pixels_per_inch. Swithc from default 3780 pixels per meter
	to 96.0 pixels per inch which is slightly different.

1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
2003-10-28  Carl Worth  <cworth@isi.edu>

	* src/cairo_gstate.c (_cairo_gstate_ensure_source):
	(_cairo_gstate_clip_and_composite_trapezoids):
	(_cairo_gstate_clip):
	(_cairo_gstate_show_surface): Track changes to
	_cairo_surface_create_similar_solid.

	* src/cairo_surface.c (_cairo_surface_create_similar_solid): Now
	that this function is internal, it can accept a cairo_color_t
	which makes the interface much cleaner.

	* src/cairo.h: Remove problematic function
	cairo_surface_create_similar_solid from the public API.

1083
1084
1085
1086
1087
1088
1089
1090
2003-10-28  Carl Worth  <cworth@isi.edu>

	* src/cairo_surface.c (_cairo_surface_composite):
	(_cairo_surface_fill_rectangles):
	(_cairo_surface_composite_trapezoids): Fix bug introduced in last
	commit: must check for NULL backend function before calling
	through it.

1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
2003-10-27  Carl Worth  <cworth@isi.edu>

	* src/cairo_surface.c (_cairo_surface_composite):
	 (_cairo_surface_fill_rectangles):
	 (_cairo_surface_composite_trapezoids): backend functions must not
	be NULL. Track new cairo_int_status_t return value for backend
	drawing functions.

	* src/cairo_xlib_surface.c: Remove casts when initializing
	cairo_xlib_surface_backend.  Rename cairo_xlib_surface as
	cairo_xlib_surface_t.
	(_cairo_xlib_surface_create_similar):
	(_cairo_xlib_surface_destroy):
	(_cairo_xlib_surface_pull_image):
	(_cairo_xlib_surface_push_image):
	(_cairo_xlib_surface_set_matrix):
	(_cairo_xlib_surface_set_filter):
	(_cairo_xlib_surface_set_repeat):
	(_cairo_xlib_surface_composite):
	(_cairo_xlib_surface_fill_rectangles):
	(_cairo_xlib_surface_composite_trapezoids): Track changes in
	cairo_surface_backend API.

	* src/cairoint.h: cairo_surface_backend now accepts a void * for
	the virtual surface.

1117
1118
1119
1120
1121
1122
2003-10-27  Carl Worth  <cworth@isi.edu>

	* src/cairo_ft_font.c (_cairo_ft_font_create): Default to normal
	slant/weight on out-of-range values.
	Add missing include of fontconfig/fcfreetype.h.

1123
1124
1125
1126
1127
1128
2003-10-24  Keith Packard  <keithp@keithp.com>

	* src/cairo_ft_font.c: (_cairo_ft_font_show_glyphs):
	A HORRIBLE KLUDGE to repad glyph images from freetype to
	meet libic requirements.

1129
1130
2003-10-24  Carl Worth  <cworth@east.isi.edu>

1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
	* src/cairo_ft_font.c (_init_cairo_ft_lib): Fix missing void from
	function prototype.
	(_utf8_to_ucs4): Mark static.

	* src/cairo_xlib_surface.c: Remove unused function
	_cairo_xlib_surface_get_picture.

	* src/cairo_ft_font.c (_cairo_ft_font_copy)
	(_cairo_ft_font_glyph_extents, _cairo_ft_font_glyph_path):
	Internal functions can't receive a NULL font pointer.

	* src/cairo.c (cairo_text_extents, cairo_glyph_extents)
	(cairo_text_path, cairo_glyph_path): Comment-out functions without
	complete implementations to squelch compiler warnings.

	* configure.in: Bump version to 0.1.8 for font API changes.

	* src/cairo.c (cairo_current_font): Fix missing return value.

1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
	* src/cairoint.h: No need for CAIRO_INT_STATUS_NULL_POINTER
	(CAIRO_FONT_BACKEND_DEFAULT): Move declaration of default font
	backend up into cairoint.h

	* src/cairo_gstate.c (_cairo_gstate_init): Create a default font,
	don't leave it NULL.
	(_cairo_gstate_current_font): gstate->font must never be NULL.
	(_cairo_gstate_current_font_extents): Can never be called with a
	NULL gstate.

	* src/cairo_font.c (_cairo_font_create): Rename
	_cairo_font_create_font and move to top of file.
	(_cairo_font_init, _cairo_font_scale, _cairo_font_transform)
	(_cairo_font_text_extents, _cairo_font_glyph_extents)
	(_cairo_font_show_text, _cairo_font_show_glyphs)
	(_cairo_font_text_path, _cairo_font_glyph_path)
	(_cairo_font_font_extents): These internal functions can never be
	called with a NULL font.

Graydon Hoare's avatar
Graydon Hoare committed
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
2003-10-23  Graydon Hoare <graydon@redhat.com>

	* src/cairo_ft_font.c: New file.
	* src/Makefile.am: Add cairo_ft_font.c
	* src/cairo.c: 
	* src/cairo.h:
	* src/cairo_font.c:
	* src/cairo_gstate.c:
	* src/cairo_xlib_surface.c:
	* src/cairoint.h: Change to virtual font interface.

Carl Worth's avatar
Carl Worth committed
1180
1181
1182
1183
1184
2003-10-23  Carl Worth  <cworth@isi.edu>

	* TODO: Added notes on some missing functions. Update PostScript
	comparison with respect ot new arc functions.

1185
1186
1187
1188
1189
1190
2003-10-23  Carl Worth  <cworth@isi.edu>

	* Many files: Fixed Copyright statements to read "University of
	Southern California" rather than "USC, Information Sciences
	Institute" as the university is the actual corporation.

1191
1192
1193
1194
1195
2003-10-11  Carl Worth  <cworth@isi.edu>

	* src/cairo-xlib.h: Add extern "C" stuff. (Thanks to Soory Kuloor
	for the reminder).

1196
1197
1198
1199
1200
1201
2003-10-09  Carl Worth  <cworth@isi.edu>

	* src/cairo_font.c: Stub out NULL_POINTER errors as
	CAIRO_STATUS_SUCCESS so that drawing to off-screen images still
	works even though text does not yet.

1202
1203
2003-10-04  Carl Worth  <cworth@isi.edu>

1204
1205
1206
1207
1208
1209
1210
1211
	* src/cairo_hull.c (_cairo_hull_compute): Add cairo_hull.c to
	compute a convex hull, (using Graham scan algorithm).

	* src/cairo_pen.c (_cairo_pen_add_points): Generate convex hull of
	pen after adding new points.

	* src/cairoint.h: Rename pen->vertex to pen->vertices

1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
	* Replaced "pt" with "point" in about a zillion places.

	* src/cairo.c (cairo_destroy): Fix to continue with destroy even
	in the face of non-zero status.
	(cairo_set_target_surface):
	(cairo_set_target_image): Don't do anything even if cr->status is
	CAIRO_STATUS_NO_TARGET_SURFACE.
	(cairo_status_string): Report "<unknown error status>" rather than
	en empty string.

1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
2003-10-01  Carl Worth  <cworth@isi.edu>

	* src/cairo_gstate.c (_cairo_gstate_init_copy): Don't choke if
	asked to copy a gstate with a NULL font.

	* src/cairo_font.c (_cairo_font_init): 
	(_cairo_font_init_copy): 
	(_cairo_font_copy): 
	(_cairo_font_fini): 
	(_cairo_font_select): 
	(_cairo_font_scale): 
	(_cairo_font_transform): 
	(_cairo_font_text_extents): 
	(_cairo_font_show_text): Return immediately if passed a NULL pointer.

1237
1238
1239
1240
1241
1242
1243
2003-09-30  Jamey Sharp  <jamey@minilop.net>

	* src/Makefile.am, src/cairo.c, src/cairo.h, src/cairo_font.c,
	src/cairo_gstate.c, src/cairo_surface.c, src/cairoint.h:
	Virtualized font and surface backends. All Xlib/Xft calls are in
	cairo_xlib_surface.c/cairo-xlib.h now. Resolves a TODO item.

1244
1245
2003-09-30  Carl Worth  <cworth@east.isi.edu>

1246
1247
	* src/cairo.c (cairo_copy): Don't copy a gstate if src->status != 0.

1248
1249
1250
1251
1252
1253
1254
	* src/cairo_gstate.c (_cairo_gstate_init_copy): Be careful to
	preserve gstate->next.
	(_cairo_gstate_copy): New function to support cairo_copy.

	* src/cairo.c (cairo_copy): Fixed horribly botched implementation
	of cairo_copy.

1255
1256
1257
1258
1259
1260
1261
	* configure.in: Bumped version to 0.1.7 to indicate change in
	cairo_copy.

	* src/cairo.c (cairo_copy): Changed cairo_copy to copy graphics
	state from one cairo_t to another rather than allocating a new
	cairo_t.

1262
1263
1264
1265
	* src/cairo_surface.c (cairo_surface_destroy):
	(cairo_surface_create_similar_solid): Fix to delay XFreePixmap
	until cairo_surface_destroy.

Carl Worth's avatar
Carl Worth committed
1266
1267
1268
1269
1270
1271
1272
1273
2003-09-29  Carl Worth  <cworth@east.isi.edu>

	* TODO: Remove arc notes since arcs are done.

	* src/cairo_surface.c (_cairo_surface_composite): Fix bug
	(IcImageGetHeight instead of IcImageGetWidth) from Graydon Hoare
	<graydon@redhat.com>.

1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
2003-09-29  Carl Worth  <cworth@isi.edu>

	* configure.in (CAIRO_VERSION): Bumpred version to 0.1.6 to
	indicate new cairo_arc and cairo_arc_negative.

	* src/cairo_gstate.c (_arc_error_normalized):
	(_arc_max_angle_for_tolerance_normalized):
	(_cairo_gstate_arc_segments_needed):
	(_cairo_gstate_arc_segment):
	(_cairo_gstate_arc_dir):
	(_cairo_gstate_arc):
	(_cairo_gstate_arc_negative): Several new functions to implement
	arc support.

	* src/cairo.h: Added cairo_arc and cairo_arc_negative.

	* src/cairo.c (cairo_arc): 
	(cairo_arc_negative): Added new arc support.

2003-09-27  Carl Worth  <cworth@isi.edu>	
1294
1295
1296
1297
1298

	* src/cairoint.h: Fixed several enum symbols that had been
	mistakenly converted to lowercase at some point.
	Consolidated cairo_path_direction_t and
	cairo_pen_stroke_direction_t into cairo_direction_t.
1299
1300
1301
	Removed accidental addition of two _print_svg functions that had
	been used for debugging temporarily.
	
1302
1303
2003-09-25  Carl Worth  <cworth@isi.edu>

1304
1305
1306
1307
1308
1309
1310
	* configure.in (CAIRO_VERSION): Bumped version to 0.1.5 to
	indicate removal of cairo_path_t and related functions.

	* src/cairo.h: Decided that we don't actually need any of the
	cairo_path_t functionality exposed in the commit earlier
	today. Ripped all of that back out.

1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
	* configure.in (CAIRO_VERSION): Bumped version to 0.1.4 for new
	exposed cairo_path_t and related functions.

	* src/cairo_path.c (cairo_path_create):
	(_cairo_path_copy):
	(cairo_path_destroy): New create/copy/destroy functions for paths.
	(_cairo_path_init): Added current_pt state to cairo_path_t.
	(cairo_path_rel_move_to):
	(cairo_path_rel_line_to):
	(cairo_path_rel_curve_to): Added relative path creation functions,
	(relative stufff used to be done internally in cairo_gstate).
	(_cairo_path_set_ctm_inverse):
	(_cairo_path_transform): Added functions to transform all
	coordinates in a path.

	* src/cairo_gstate.c (_cairo_gstate_init): Moved all current_pt
	state out of cairo_gstate and into cairo_path.
	(_cairo_gstate_copy): Renamed _cairo_gstate_clone to
	_cairo_gstate_copy for consitency with other functions, (though I
	may reconsider and rename all of them to _clone).
	(_cairo_gstate_current_path): 
	(_cairo_gstate_set_path): New functions for "user path" support.

	* src/cairo.h: Expose new opaque cairo_path_t object along with
	several new public functions: cairo_set_path, cairo_current_path,
	cairo_path_create, cairo_path_destroy, cairo_path_move_to,
	cairo_path_line_to, cairo_path_curve_to, cairo_path_rel_move_to,
	cairo_path_rel_line_to, cairo_path_rel_curve_to,
	cairo_path_close_path, cairo_path_current_point.

	* src/cairo.c (cairo_set_path, cairo_current_path): Added
	functions to get/set current path.

1344
1345
2003-09-16  Carl Worth  <cworth@isi.edu>

Carl Worth's avatar
Carl Worth committed
1346
1347
1348
	* src/cairo_surface.c (cairo_surface_create_similar_solid): Fixed
	massive pixmap leak, (at least one pixmap for every set_rgb_color)

1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
	* configure.in (CAIRO_VERSION): Bumped to 0.1.3 for new functions:
	cairo_reference and cairo_surface_reference.

	* src/cairo_surface.c (cairo_surface_reference): Export
	cairo_surface_reference.

	* src/cairo.c (cairo_reference): Add new function to increase
	reference count of cairo_t.
	(cairo_create):
	(cairo_copy):
	(cairo_destroy): Make these functions aware of the new reference
	count.

1362
1363
1364
1365
1366
1367
2003-09-15  Carl Worth  <cworth@east.isi.edu>

	* configure.in: Require xrender >= 0.6.0

	* src/cairo_surface.c (_cairo_x11_surface_put_image): Make static.

1368
1369
1370
1371
1372
1373
2003-09-15  Carl Worth  <cworth@isi.edu>

	* src/cairo.c (cairo_restore): Fix to catch invalid restore rather
	than just catching the second invalid restore. Fix from Keith
	Packard <keithp@keithp.com>.

1374
1375
1376
1377
1378
1379
2003-09-12  Carl Worth  <cworth@east.isi.edu>

	* src/cairo_surface.c (cairo_surface_create_similar_solid): Don't
	try to create depth-32 pixmaps on non-Render servers.
	(_cairo_surface_push_image): Fixed massive memory leak.

1380
1381
1382
1383
1384
2003-09-09  Carl Worth  <cworth@isi.edu>

	* configure.in (PKG_CHECK_MODULES): Updated calls to
	slim_hidden_def to track changes in slim 0.2.0.

1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
2003-09-05  Carl Worth  <cworth@isi.edu>

	* configure.in (PKG_CHECK_MODULES): Require libic >= 0.1.1

	* src/cairo_surface.c (_create_icformat_for_visual):
	(_create_icformat_for_format): Updates for new libic interface.
	(cairo_x11_surface_put_image): Rename cairo_surface_put_image to
	cairo_x11_surface_put_image.
	(_cairo_surface_pull_image):
	(_cairo_surface_push_image): First real implementation of
	push/pull_image, (thanks for help from Graydon Hoare
	<graydon@redhat.com>). This provides support for running Cairo on
	X servers that do not have the RENDER extension. (Note: This is
	still woefully slow).

	* src/cairo_path_stroke.c (_cairo_stroker_join): Switch to
	_cairo_fixed functions.

	* src/cairo_path_bounds.c (_cairo_path_bounds): Use cairo_fixed
	rather than X macros.

	* src/cairo_gstate.c (_cairo_gstate_current_point): If not
	explicitly set, current point is (0,0) in user space.
	(_cairo_gstate_show_text): Fix to place text at user-space origin
	if there is no current point.
	(_cairo_gstate_show_surface): Optimize to pass NULL mask if alpha
	== 1.0.
	(_cairo_gstate_show_surface): Fixe to use current_point rather
	than (0,0).

	* src/cairo.h: Removed cairo_surface_put_image.

	* src/Makefile.am (libcairo_la_SOURCES): Added cairo_fixed.c

1419
1420
1421
1422
1423
1424
1425
1426
2003-09-05  Keith Packard <keithp@keithp.com>

	* src/cairo_path_stroke.c: comment face computations, check for
	reflecting transformation to select correct face orientations
	
	* src/cairo_pen.c: check for reflecting transform when computing
	pen to ensure consistent pen orientation

1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
2003-09-05  Carl Worth  <cworth@east.isi.edu>

	* configure.in: Bumped version to 0.1.2 for new cairo_copy
	function.

	* src/cairo_gstate.c (_cairo_gstate_init): Fixed uninitialized
	current_pt values.
	(_cairo_gstate_clone): Force gstate->next to NULL after cloning,
	to prevent the clone from trashing the former stack.

	* src/cairo.c (cairo_create): Folded _cairo_init into cairo_create.
	(cairo_destroy): Folded _cairo_fini into cairo_dstroy.
	(cairo_copy): Added new cairo_copy function.

1441
1442
1443
1444
1445
2003-09-05  Carl Worth  <cworth@isi.edu>

	* src/cairo_gstate.c (_cairo_gstate_show_text): Fix crash due to
	missing call to ensure_source.

1446
1447
1448
1449
1450
1451
2003-09-04  Carl Worth  <cworth@east.isi.edu>

	* src/cairoint.h (DEPRECATE): Changed DEPRECATE mechanism to
	preseve binary compatibility, but break source-level
	compatibility.

1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
2003-09-04  Carl Worth  <cworth@isi.edu>

	* src/cairo_gstate.c (_cairo_gstate_init): Combine gstate->pattern
	and gstate->solid into a single gstate->source.
	(_cairo_gstate_set_rgb_color): Defer creation of gstate->source
	until the stroke or fill.
	(_cairo_gstate_ensure_source): New function to combine duplicated
	code.
	(_cairo_gstate_stroke):
	(_cairo_gstate_fill): Now must ensure that gstate->source has been
	created.

	* src/cairo.c (cairo_set_target_surface):
	(cairo_set_target_drawable):
	(cairo_set_target_image): These functions can now clear
	status==CAIRO_STATUS_NO_TARGET_SURFACE. This is a clean solution
	to the bug of a SEGV if cairo_stroke/cairo_fill are called before
	cairo_set_target.

	* BUGS: Removed two fixed bugs, (SEGV if cairo_set_rgb_color
	called before cairo_set_target and SEGV if cairo_fill called
	before cairo_set_rgb_color)

1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
2003-09-04  Keith Packard <keithp@keithp.com>

	* src/cairo_path_stroke.c: added comments describing miter
	join code and miter limit computation.  Replace XFoo with cairo_foo
	for double and fixed

	* src/cairoint.h: add cairo_fixed_to_double and cairo_double_to_fixed
	Carl says he's got similar code, so he'll have to fix things if I
	get this committed quickly enough.

1485
1486
2003-09-04  Carl Worth  <cworth@isi.edu>

Carl Worth's avatar
Carl Worth committed
1487
1488
1489
	* util/cairo-api-update: Added script to update source code using
	Cairo to the latest API.

1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
	* configure.in (CAIRO_VERSION): Bumped version to 0.1.1

	* src/cairoint.h (DEPRECATE): Added magic DEPRECATE macro which
	provides an asm-based alias for old function names. This works on
	ELF systems with gcc version >= 2.

	* src/cairo.h (cairo_get_status_string): Deprecated all
	cairo_get_* names in favor of cairo_current_*. The deprecated
	function names will trigger either a warning or a link error, but
	in both cases with a useful message giving both the old and new
	name of the function. Three of the function name changes are
	different than the single word substituion:
		cairo_get_current_color	-> cairo_current_color
		cairo_get_status	-> cairo_status
		cairo_get_status_string	-> cairo_status_string
	
1506
1507
1508
1509
1510
1511
1512
2003-09-03  Carl Worth  <cworth@east.isi.edu>

	* src/cairo.h: Change cairo_get_matrix interface to accept a
	cairo_matrix_t* rather than 6 double*.

	* src/cairo.c (cairo_get_matrix): Add implementation of cairo_get_matrix.

1513
1514
1515
1516
1517
1518
1519
2003-08-29  Carl Worth  <cworth@isi.edu>

	* src/cairo_surface.c (_cairo_surface_composite): Optimized case
	where src is in memory, dst is on server, and mask is NULL. Will
	now do a single XPutImage rather than the painful
	GetImage/PutImage dance of the general code.

1520
1521
1522
1523
1524
1525
1526
1527
1528
2003-08-28  Carl Worth  <cworth at east.isi.edu>

	* src/cairo_traps.c (_line_segs_intersect_ceil): One more
	increment, (that still won't fix the bug). Added comment point to
	Hobby's paper, (that will fix it).

	* src/cairo_font.c (_cairo_font_resolve_xft_font): Fixed to use
	fabs instead of abs when correcting for negative area expansion.

1529
1530
1531
2003-08-28  Keith Packard <keithp@keithp.com
	* src/cairo_font.c: font pixel size is always non-negative

1532
1533
2003-08-26  Carl Worth  <cworth@isi.edu>

1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
	* src/cairoint.h: Added missing underscores to several internal
	functions.
	* src/cairo_font.c: 
	* src/cairo_gstate.c: 
	* src/cairo_matrix.c: 
	* src/cairo_path_fill.c: 
	* src/cairo_path_stroke.c: 
	* src/cairo_pen.c: 
	* src/cairo_traps.c: Fixed to track newly added underscores.

	* src/cairo.h: Some whitespace fixes.

1546
1547
1548
1549
1550
	* src/cairo_gstate.c (_cairo_gstate_set_pattern): Fixed to anchor
	pattern at current point instead of the origin.
	(_cairo_gstate_stroke): Fixed to properly transform pattern.
	(_cairo_gstate_fill): Fixed to properly transform pattern.

Richard Henderson's avatar
Richard Henderson committed
1551
1552
1553
1554
1555
1556
1557
2003-07-31  Richard Henderson  <rth@twiddle.net>

	* src/cairo_color.c (CAIRO_COLOR_DEFAULT): Mark const.
	* src/cairo_matrix.c (CAIRO_MATRIX_IDENTITY): Likewise.
	* src/cairo_path.c (num_args): Likewise.
	* src/cairo_path_bounds.c (_cairo_path_bounds): Likewise for cb.

Richard Henderson's avatar
Richard Henderson committed
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
2003-07-31  Richard Henderson  <rth@twiddle.net>

	* cairo.pc.in: Depend on slim.
	* configure.in: Check for slim.

	* src/cairo.h: Include slim_{export,import}.h as needed; mark all
	symbols __external_linkage.
	* src/cairoint.h: Include slim_internal.h; mark all symbols
	__internal_linkage.  Provide slim_hidden_proto symbols as needed.
	* src/cairo.c, src/cairo_matrix.c, src/cairo_surface.c,
	Provide slim_hidden_def symbols as needed.
	* src/cairo_traps.c (cairo_traps_add_trap): Mark static.
	(cairo_traps_add_trap_from_points): Likewise.

1572
1573
2003-07-30  Carl Worth  <cworth@isi.edu>

1574
1575
1576
	* configure.in (LIBIC_REQUIRED): Fixed some typos in the libic
	PKG_CHECK.

1577
1578
1579
1580
	* src/cairoint.h: 
	* src/cairo.c: Fixed a disagreement over whether some internal
	cairo_gstate_t functions had an '_' prefix or not.

1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
	* src/cairo_traps.c (_line_segs_intersect_ceil): Add one more
	conditional intersect to push past some fill bugs.

	* src/cairo_surface.c (cairo_surface_create_for_drawable):
	(cairo_surface_create_for_image):
	(cairo_surface_put_image):
	(_cairo_surface_pull_image):
	(_cairo_surface_push_image):
	(cairo_surface_set_matrix):
	(cairo_surface_get_matrix):
	(cairo_surface_set_repeat):
	(_cairo_surface_composite):
	(_cairo_surface_fill_rectangle):
	(_cairo_surface_fill_rectangles):
	(_cairo_surface_composite_trapezoids): Absorb all functionality
	previously in the Xc library.

	* src/cairo_pen.c (_cairo_pen_init): Don't store floating point
	theta in the pen. Instead, sort vertices by fixed point slope
	comparisons.
	(_cairo_pen_add_points): Fixed to remove duplicate pen vertices
	appearing at beginning and end of vertex array.
	(_pen_vertex_compare): New fixed-point "angle" comparison for pen
	vertices. A bit trickier than before, but much more accurate.

	* src/cairo_path_stroke.c (_cairo_stroker_face_clockwise): Share
	clockwise calculation with other modules.

	* src/cairo_path_bounds.c:
	* src/cairo_path_fill.c:
	* src/cairo_path_stroke.c:
	* src/cairo_pen.c:
	* src/cairo_polygon.c:
	* src/cairo_spline.c:
	* src/cairo_traps.c:
	* src/cairo_path.c: Replaced all references to
	XFixed, XPointFixed, XLineFixed, and XTrapezoid with new
	cairo_fixed_t, cairo_point_t, cairo_line_t, and cairo_trapezoid_t.

	* src/cairo_path.c: (_cairo_path_interpret): Made the path
	interpreter callback names consistent, (eg. add_edge rather than
	AddEdge).

	* src/cairo_gstate.c (_cairo_gstate_text_extents): Now silently
	exits for a non X surface, (avoids a crash until we can implement
	the libic text backend).

	* src/cairo_gstate.c (_cairo_gstate_end_group):
	(_cairo_gstate_clip_and_composite_trapezoids):
	(_cairo_gstate_show_surface): Replaced all XcCalls with
	corresponding cairo_surface_calls.

	* src/cairo_gstate.c (_cairo_gstate_transform_point):
	(_cairo_gstate_transform_font):
	(_cairo_gstate_text_extents): Renamed from the garbled names
	(eg. cairo_gstateransform_point) leftover from the great renaming.

	* src/cairo_color.c (_cairo_color_set_rgb): Reworked cairo_color_t
	to eliminate reference to an XcColor object.

	* src/cairo.h: Dropped include of <Xc.h>, added
	<X11/extensions/Xrender.h>, <fontconfig/fontconfig.h>, and <ic.h>

	* src/cairo.c (cairo_get_fill_rule): Added missing cairo_get_fill_rule.

	* configure.in (PKG_CHECK_MODULES): Drops xc, add libic

	* cairo.pc.in (Requires): Drop xc, add libic.

1650
1651
1652
1653
1654
1655
2003-07-25  Carl Worth  <cworth@isi.edu>

	* src/cairo_traps.c (_line_segs_intersect_ceil): We don't need a
	loop here, (just a conditional increment). This time, we've
	actually done the error analysis to back this up.

1656
1657
1658
1659
1660
1661
2003-07-24  Carl Worth  <cworth@isi.edu>

	* src/cairo_traps.c (cairo_traps_tessellate_polygon): Massive
	cleanup of polygon tessellation, (it might actually be correct
	now).

1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
2003-07-23  Carl Worth  <cworth@isi.edu>

	* src/cairoint.h: Introduced some cairo_fixed_*_t types. This is
	the first baby step toward ripping X dependencies out of the Cairo
	headers.

	* src/cairo_traps.c (_compute_x): Converted from floating point to
	fixed point.
	(_line_seg_intersection_ceil): Now increments y value once if the
	initial y value computed is less than the actual intersection
	point.

	* src/cairo_traps.c (_compare_cairo_edge_by_slope): Converted from
	floating point to fixed point.

	* src/cairo_pen.c (_slope_clockwise): Converted from floating
	point to fixed point.

1680
1681
1682
1683
1684
1685
1686
1687
1688
2003-07-19  Carl Worth  <cworth@isi.edu>

	* src/cairo_traps.c (cairo_traps_tessellate_polygon): Fixed some
	sorting problems with two intersections very near the same
	vertical position. (There are still some reamining problems
	though).
	(cairo_traps_tessellate_polygon): Better fix for the same
	bug. Should cover all cases, (and it's moe efficient too).

1689
1690
1691
1692
1693
2003-07-18  Carl Worth  <cworth@east.isi.edu>

	* src/cairo.h: Fixed some inconsistent tag/typedef names that were
	missed in the great renaming.

1694
1695
1696
1697
1698
1699
1700
2003-07-18  Carl Worth  <cworth@isi.edu>

	* src/cairo.h: Renamed everything from Xr* to cairo_*.

	* util/xr2cairo: Added utility script xr2cairo to help users fix
	their source code.

1701
1702
2003-07-03  Carl Worth  <cworth@isi.edu>

Carl Worth's avatar
Carl Worth committed
1703
1704
1705
	* src/xrmatrix.c (XrMatrixGetAffine): Added XrMatrixGetAffine
	(from Soorya Kuloor)

1706
1707
1708
	* src/xr.c (XrGetAlpha): Added XrGetAlpha
	(XrGetRGBColor): Added XrGetRGBColor

1709
1710
1711
1712
1713
2003-06-12  Carl Worth  <cworth@isi.edu>

	* src/xrgstate.c (_XrGStateScale): Scale by 0 now causes an
	InvalidMatrix error.

1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
2003-05-28  Carl Worth  <cworth@isi.edu>

	* src/xrmatrix.c (XrMatrixMultiply): Eliminated
	_XrMatrixMultiplyIntoRight and _XrMatrixMultiplyIntoLeft.

	* src/xrgstate.c (_XrGStateClipAndCompositeTrapezoids): Fixed
	missing translation of clip surface.

	* src/Xr.h: Added XrSurfacePutImage

1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
2003-05-16  Carl Worth  <cworth@isi.edu>

	* src/xrint.h: Added ppm filed (pixels per meter) to both
	XrSurface and XrGState.

	* src/xrgstate.c (_XrGStateSetTargetSurface): Fixup CTM according
	to change in surface->ppm.
	(_XrGStateDefaultMatrix): Default matrix is no longer an identity
	matrix, but rather a matrix that provides some relates user space
	units to real-world dimensions in a meaningful way, (default 3780
	user space units per meter). This conversion is not exact, but is
	rather as close as possible while also guaranteeing that one user
	space unit maps to an integer number of device pixels.

1738
1739
1740
1741
1742
1743
1744
1745
2003-05-15  Carl Worth  <cworth@isi.edu>

	* src/xr.c (XrSetTargetDrawable): Moved implementation up from
	_XrGStateSetTargetDrawable, (eg. all convenience functions should
	be taken care of at the xr.c level ratehr than xrgstate.c)

	* src/Xr.h: Added convenience function XrSetTargetImage

1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
2003-05-14  Carl Worth  <cworth@isi.edu>

	* src/xrfont.c (_XrFontResolveXftFont): Fixed fonts to pull
	pixelsize out of the transformation matrix. Fonts are now properly
	hinted regardless of scaling.

	* src/Xr.h: Three new functions for manipulating surfaces:
	XrSurfaceSetMatrix, XrSurfaceGetMatrix, XrSurfaceSetFilter.

	* src/Xr.h: Removed broken XrShowImage* functions. Changed
	XrShowSurface to not require X/Y but instead depend on the CTM for
	translation, (or the surface transformation matrix). I'd like to
	get rid of width/height as well but it turns out an XrSurface is
	not aware of its dimensions.

	* src/Xr.h: Added convenience function for building rectangular
	paths: XrRectangle.

	* src/Xr.h: Added functions for performing transformations with
	the CTM and its inverse: XrTransformPoint, XrTransformDistance,
	XrInverseTransformPoint, XrInverseTransformDistance.

	* src/Xr.h: XrConcatMatrix and XrSetMatrix now accept a pointer to
	an XrMatrix rather than 6 doubles.

	* src/Xr.h: Now exporting opaque XrMatrix object with several
	functions: XrMatrixCreate, XrMatrixDestroy, XrMatrixCopy,
	XrMatrixSetIdentity, XrMatrixSetAffine, XrMatrixTranslate,
	XrMatrixScale, XrMatrixRotate, XrMatrixInvert, XrMatrixMultiply,
	XrMatrixTransformDistance, XrMatrixTransformPoint.

1777
1778
2003-05-12  Carl Worth  <cworth@isi.edu>

Carl Worth's avatar
Carl Worth committed
1779
1780
	* src/Xr.h: Added XrSetPattern. See also XrSurfaceSetRepeat.

1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
	* src/xrpathbounds.c (_XrPathBounds): Moved path bound computation
	to its own file.

	* src/xrpathstroke.c (_XrPathStrokeToTraps): Moved path stroking
	to its own file.
	
	* src/xrpathfill.c (_XrPathFillToTraps): Moved path fililng to its
	own file.

	* src/xrgstate.c (_XrGStateStroke):
	(_XrGStateFill):
	(_XrGStateClipAndCompositeTrapezoids): Reorganized stroke and fill
	code to go through the same path for clipping.
	
1795
1796
1797
1798
1799
1800
1801
1802
2003-05-02  Carl Worth  <cworth@east.isi.edu>

	* src/Xr.h: Changed XrFormatRGB32 to XrFormatRGB24

	* src/xrsurface.c (_XrFormatBPP, XrSurfaceCreateForImage)
	(_XrFormatDepth): Fixed for change of XrFormatRGB32 to
	XrFormatRGB24

1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
2003-05-01  Carl Worth  <cworth@isi.edu>

	* src/xrpath.c (_XrPathBounderInit):
	(_XrPathBounderDeinit):
	(_XrPathBounderAddPoint):
	(_XrPathBounderAddEdge):
	(_XrPathBounderAddSpline):
	(_XrPathBounderDoneSubPath):
	(_XrPathBounderDonePath):
	(_XrPathBounds): New support for computing the bounding box of a
	path. Currently used internally, (for computing the size of the
	clip surface), and not exported publically.
	
	* src/xrgstate.c (_XrGStateStroke): Implemented clip support for
	strokes.
	(_XrGStateClip): New _XrGStateClip function fills the current path
	onto the gstate->clip surface.

	* src/xr.c (XrClip): Added preliminary/experimental clip
	functionality. The current implementation only clips stroked
	elements, (not fills, images, or text). It's alway quite
	inefficeient.

	* src/xr.c (XrGetOperator): 
	(XrGetTolerance): 
	(XrGetLineWidth): 
	(XrGetLineCap): 
	(XrGetLineJoin): 
	(XrGetMiterLimit): 
	(XrGetCurrentPoint): Added several new query functions.

2003-04-26  Carl Worth  <cworth@isi.edu>

	* src/xrsurface.c (XrSurfaceDestroy): Fix memory leak of
	surface->image_data.

Carl Worth's avatar
Carl Worth committed
1839
1840
1841
1842
2003-04-25  Carl Worth  <cworth@east.isi.edu>

	* configure.in: Fixed libtool versioning

1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
2003-04-17  Carl Worth  <cworth@isi.edu>

	* Switched from imake to autotools.

	* src/xrint.h: XrSurface structure is now greatly simplified,
	(details now handled by XcSurface).

	* src/Xr.h: Eliminated Display * parameter so Xr can be used for
	non-X drawing.
	Removed XrPushGroup/XrPopGroup.
	Replaced XrSetDrawable/XrSetVisual with XrSetTargetDrawable.
	Added XrSetTargetSurface and several new XrSurfaceCreate
	functions.	
	Added XrShowSurface, (functionality overlaps with XrShowImage --
	need to fix this)
	

1860
1861
1862
1863
1864
2003-02-14  Carl Worth  <cworth@east.isi.edu>

	* xrgstate.c (_XrGStateShowImageTransform): Fixed transformed
	images which were sometimes 1 pixel too tall/wide.

1865
1866
1867
1868
1869
1870
2003-02-06  Carl Worth  <cworth@isi.edu>

	* xrpen.c (_XrPenVerticesNeeded): Fixed to use determinant rather
	than eigenvalues to compute maximal scaling of radius. Now avoids
	embarrassing segfaults due to NaN from the eigenvalue computation.

1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
2003-01-28  Carl Worth  <cworth@isi.edu>

	* xrtraps.c (_XrTrapsTessellateTriangle): Fixed to not re-order
	the array provided as an argument. (Note: the rectangle and
	polyghon tessellators still perform reordering).

	* xrstroker.c (_XrStrokerJoin):
	(_XrStrokerCap): Implemented round caps and joins.
	(_XrStrokerDoneSubPath): Fixed initial cap, (was always being
	drawn on the inside previously).

	* xrpen.c (_XrPenInit): Fixed to keep pen vertex theta values all
	in device space.
	(_XrPenAddPoints): Removed the silly flags from the pen vertices,
	(in favor of just using the FindActiveVertex functions)
	(_XrPenFindActiveCWVertexIndex):
	(_XrPenFindActiveCCWVertexIndex): Added functions needed for round
	caps/joins.

	* xrgstate.c (_XrGStateSetDash): Fixed to accept a NULL dash array
	to revert to no dashing.

1893
1894
1895
1896
1897
1898
1899
1900
2003-01-28  Carl Worth  <cworth@east.isi.edu>

	* xrtraps.c (_XrTrapsTessellateTriangle): Restored triangle
	tessellation functionality, (I think it's correct this time).

	* xrstroker.c (_XrStrokerJoin): Bevel joins now use triangle
	tessellation rather than polygon tessellation.

1901
1902
1903
1904
1905
1906
1907
1908
1909
2003-01-24  Carl Worth  <cworth@east.isi.edu>

	* xrpolygon.c (_XrPolygonAddEdge): Fixed to handle multiple
	sub-polygons.

	* xrstroker.c (_XrStrokerJoin): Fixed handling of miter limit.

	* local.def: Added local.def for building outside the xc tree.

1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
2002-12-03  Carl Worth  <cworth@isi.edu>

	* xrstroker.c (_XrStrokerJoin):
	(_XrStrokerCap): Fixed to track change in winding rule parameter
	to XrTrapsTessellatePolygon, (otherwise self-intersecting splines
	suddenly had holes).

	* xrpen.c (_XrPenStrokeSpline): Fixed to track change in winding
	rule parameter to XrTrapsTessellatePolygon.

Carl Worth's avatar
Carl Worth committed
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
2002-11-11  Carl Worth  <cworth@isi.edu>

	* xrtransform.c (_XrTransformBoundingBox): Added support for
	transforming a bounding box, (an axis-aligned rectangle prior to
	transformation). The ShowImage support needs this.
	(_XrTransformComputeInverse): Now catches error case for
	non-invertible matrix.

	* xrsurface.c (_XrSurfaceSetTransform): Fixed ordering of matrix
	for call to RenderSetPictureTransform

	* xrgstate.c (_XrGStateSetMatrix): 
	(_XrGStateIdentityMatrix): Support for new Xr matrix functions.
	(_XrGStateShowImage): 
	(_XrGStateShowImageTransform): Fixed transformation of images.

	* xr.c (XrSetMatrix): 
	(XrDefaultMatrix): 
	(XrIdentityMatrix): Added 3 matrix manipulation functions.

Carl Worth's avatar
Carl Worth committed
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
2002-11-04  Carl Worth  <cworth@isi.edu>

	* xrsurface.c (_XrSurfaceDereference):
	(_XrSurfaceDereferenceDestroy): Fixed bug in reference counting
	logic.
	(_XrSurfaceSetDrawableWH): XrSurface now keeps track of its width/height.
	(_XrSurfaceGetDrawable): 
	(_XrSurfaceGetWidth): 
	(_XrSurfaceGetHeight): 
	(_XrSurfaceGetDepth): New accessor functions.

	* xrgstate.c (_XrGStateBeginGroup):
	(_XrGStateEndGroup): Preliminary group support. Not too efficient
	since it always composite's a full-size picture from child group
	to parent picture, (even if only a small portion has
	non-transparent pixels).
	(_XrGStateShowImageTransform): Fixed show image to use current
	alpha value.

	* xrfont.c (_XrFontResolveXftFont): Fixed memory leak
	(FcPatternDestroy). There's still some meory
	leaking/left-reachable in Xft/fontconfig that I need to track
	down.

	* xr.c (XrPushGroup):
	(XrPopGroup): Added preliminary group support. I think I like
	having this in the API as it takes several burdens away from the
	user, (plus it matches the PDF model). Things to do still: think
	about the names of these functions. Re-read the PDF semantics to
	see if we're missing anything.

Carl Worth's avatar
Carl Worth committed
1971
1972
1973
1974
1975
2002-11-02  Carl Worth  <cworth@isi.edu>

	* xrsurface.c (_XrSurfaceSetImage): Fixed leak of the image
	pixmap.

Carl Worth's avatar
Carl Worth committed
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2002-11-01  Carl Worth  <cworth@east.isi.edu>

	* xrsurface.c (_XrSurfaceSetImage): Prelimary image
	support. Really only works with ARGB32. I still need to think
	about what formats will be supported.
	(_XrSurfaceSetTransform): Partial support for transformed
	surfaces.
	(_XrSurfaceGetXcSurface): Moved all creation/destruction of the
	XcSurface into this function so that it is only lazily created
	when needed.

	* xrgstate.c (_XrGStateSetCurrentPt): gstate now can throw errors
	when an operation needs current point, but it doesn't exist yet.
	(_XrGStateShowImage, _XrGStateShowImageTransform): Preliminary
	image support, (currently it only scales according to the CTM. The
	matrix passed with the image doesn't do anything yet.)

	* xrfont.c (_XrFontInitCopy): Removed bogus out of memory errors.

	* xr.c (XrShowImage, XrShowImageTransform): Added very preliminary
	image support. Things don't work completely yet and all the
	interfaces are likely to change.
	(XrGetStatusString): Added function to map status values to strings.

2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2002-10-31  Carl Worth  <cworth@isi.edu>

	* xrfont.c (_XrFontInit):
	(_XrFontInitCopy):
	(_XrFontDeinit):
	(_XrFontSelect):
	(_XrFontResolveXftFont): Updated by ripping all font support from
	Xc and just putting a couple of calls to Xft and fontconfig right
	here in xrfont.

	* xr.c (XrTextExtents): Added XrTextExtents.

Carl Worth's avatar
Carl Worth committed
2012
2013
2014
2015
2016
2017
2018
2019
2020
2002-10-29  Carl Worth  <cworth@east.isi.edu>

	* xrgstate.c (_XrGStateSelectFont, _XrGStateScaleFont)
	(_XrGStateTransformFont, _XrGStateShowText): Added basic font
	support.

	* xr.c (XrSelectFont, XrScaleFont, XrTransformFont): Added basic
	font support.

2021
2022
2023
2024
2025
2026
2027
2028
2029
2002-10-28  Carl Worth  <cworth@east.isi.edu>

	* xrstate.c (_XrStatePop): Added error case for XrRestore without
	matching XrSave.

	* xrsurface.c (_XrSurfaceInit, _XrSurfaceReference)
	(_XrSurfaceDereference): Added reference counting to XrSurface to
	patch a memory leak.

2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2002-10-26  Carl Worth  <cworth@isi.edu>

	* xrtransform.c (_XrTransformDistance):
	(_XrTransformPoint): changed to use individual X/Y arguments
	rather tha an XPointDouble. This improves readability since
	_XrTransformDistance is now always called with arguments of dx/dy
	rather than pt.x/pt.y.

	* xrpath.c (_XrPathMoveTo):
	(_XrPathLineTo):
	(_XrPathCurveTo):
	(_XrPathClosePath): replaced public _XrPathAdd with explicit named
	functions. This cleans up the implementation since _XrPathAdd,
	which is unsafe with respect to argument consistency, is now
	private. Also, since the _XrGState now maintains the current
	point, I dropped all relative path operators from the XrPath data
	structures.

	* xrgstate.c (_XrGStateMoveTo):
	(_XrGStateLineTo):
	(_XrGStateCurveTo):
	(_XrGStateRelMoveTo):
	(_XrGStateRelLineTo):
	(_XrGStateRelCurveTo): Replaces _XrGStateAddPathOp and
	_XrGStateAddUnaryPathOp with explicit named functions for each
	operator type. This change introduces the current point state into
	the XrGState structure rather than postponing its calculation
	until path interpretation.

	* xrgstate.c (_XrGStateSetDrawable):
	(_XrGStateSetVisual):
	(_XrGStateSetFormat):
	(_XrGStateSetOperator):
	(_XrGStateSetRGBColor):
	(_XrGStateSetTolerance):
	(_XrGStateSetAlpha):
	(_XrGStateSetFillRule):
	(_XrGStateSetLineWidth):
	(_XrGStateSetLineCap):
	(_XrGStateSetLineJoin):
	(_XrGStateSetMiterLimit):
	(_XrGStateTranslate):
	(_XrGStateScale):
	(_XrGStateRotate):
	(_XrGStateConcatMatrix):
	(_XrGStateNewPath): : Added XrStatus return values to many
	functions -- just for consistency, these functions can not return
	errors in any case.

	* xr.c (XrShowText): Started to ass XrShowText, (still not functional)

2002-10-24  Carl Worth  <cworth@isi.edu>
Carl Worth's avatar
Carl Worth committed
2082
2083
2084

	* xr.c (XrSetFillRule): Added support to set fill rule.

2085
2002-10-23  Carl Worth  <cworth@isi.edu>
2086
2087
2088
2089

	* xrtraps.c (_XrTrapsTessellatePolygon): Fix for polygon with
	multiple sub-polygons that are disjoint in Y.

2090
2002-07-16  Carl Worth  <cworth@isi.edu>
Carl Worth's avatar
Carl Worth committed
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117

	* Xr.h: Renamed xrpicture.c to xrsurface.c as part of the move.
	Added XrSetFormat, XrSetOperator, XrSetLineCap, XrSetLineJoin, and
	XrSetMiterLimit, (although the line style drawing code is not all
	in place yet).

	* xrpath.c (XrPathLineTo): Changed LineTo semantics to be the same
	as MoveTo if there was no previous MoveTo.

	* xrtraps.c: Added tessellation code, (lifted from
	XRenderCompositeDoublePoly which can now disappear).

	* xrgstate.c: Changed stroke code to incrementally build a list of
	trapezoids rather than forming one giant polygonal outline and
	rendering that. This should be more efficient.
	(_XrGStateFillPath): Now uses Xr's own tessellation along with
	XcCompositeTrapezoids.

	* Xr.h: Moved all of Xr away from Xrender to the new Xc library.

	* xrsurface.c: Renamed from xrpicture.c, (part of the move from
	XRender to Xc).

	* Started keeping a ChangeLog ;-)