tizen 2.3.1 release
[framework/graphics/cairo.git] / NEWS
1 Release 1.12.14 (2013-02-10 Chris Wilson <chris@chris-wilson.co.uk>)
2 ===================================================================
3 In the last week we had a few more bugs reported and promptly resolved.
4 As these are a combination of regressions and stability issues, it is
5 time for a prompt update and release. Many thanks to everyone for
6 testing and reporting issues, and helping to make Cairo better.
7
8 Bug fixes
9 ---------
10
11   Prevent user callbacks accessing user-data during destroy to prevent
12   use-after-free bugs.
13   https://bugzilla.mozilla.org/show_bug.cgi?id=722975
14
15   Use standard names for glyphs in subset fonts (PDF).
16   https://bugs.freedesktop.org/show_bug.cgi?id=60248
17
18   Fix detection of Win98. The logic for detecting Win98 (and its broken
19   AlphaBlend()) was inverted, disabling AlphaBlend() for everyone.
20
21   Prevent numeric overflow from extrapolating polygon edges to the clip
22   boundary and causing severe render artifacts.
23   https://bugs.freedesktop.org/show_bug.cgi?id=60489
24
25   Fix computation of glyph string coordinates when breaking up runs
26   for xlib.
27
28   Fix an assertion in the win32 backend for failing to clear its
29   similar-images.
30   https://bugs.freedesktop.org/show_bug.cgi?id=60519
31
32
33 Release 1.12.12 (2013-01-31 Chris Wilson <chris@chris-wilson.co.uk>)
34 ===================================================================
35 The goal of this release is to fix the synchronisation problems that
36 were exhibited in the SHM transport for cairo-xlib. This cropped up
37 any place that tried to rapidly push fresh pixel data to the X server
38 through an ordinary image surface, such as gimp-2.9 and evince.
39
40 Bug fixes
41 ---------
42
43    Avoid replacing the entire image when uploading subimages
44    https://bugs.freedesktop.org/show_bug.cgi?id=59635
45
46    Force synchronisation for scratch SHM image buffers, so that we do
47    not overwrite data as it is being read by X.
48    https://bugs.freedesktop.org/show_bug.cgi?id=59635 (also)
49
50    Fix typos in detecting multisampling for the GL (MSAA) backend.
51
52    Fix a memory leak in the GL (MSAA) backend.
53
54    Fix a reference counting bug when mapping a GL surface to an image.
55
56
57 Release 1.12.10 (2013-01-16 Chris Wilson <chris@chris-wilson.co.uk>)
58 ===================================================================
59 A heap of bug fixes everywhere, and the gradual completion of the MSAA
60 backend for cairo-gl. Perhaps the most noteworthy set of the bugfixes
61 was the crusage lead by Behdad Eshfabod to make font handling by
62 pango/cairo/fontconfig fully threadsafe. This testing revealed a couple
63 of races that needed fixing in Cairo's scaled-font and glyph cache.
64
65 Bug fixes
66 ---------
67
68   Append coincident elements to the recording's surface bbtree so that
69   the list is not corrupted and the overlapping elements lost.
70
71   Fix cairo-trace to correctly record map-to-image/unmap-image and then
72   replay them.
73
74   Ignore MappingNotifies when running the XCB testsuite as they are sent
75   to all clients when the keyboard changes. The testsuite would detect
76   the unexpected event and complain.
77
78   Handle very large images in the XCB backend.
79
80   Fix a memory leak in the xlib/shm layer, and prevent use of the SHM
81   surfaces after the display is closed.
82   https://bugs.freedesktop.org/show_bug.cgi?id=58253
83
84   Handle resizing of bitmap fonts, in preparation for a fix to
85   fontconfig to correctly pass on the user request for scaling.
86
87   Always include subroutine 4 (hint replacement idion) when subsetting
88   type 1 fonts in order to prevent a crash in cgpdftops on Mac OS/X
89
90   Fix a couple of typos in the cairo-gobject.h header files for
91   introspection.
92
93   Prevent a mutex deadlock when freeing a scaled-glyph containing a
94   recording-surface that itself references another scaled-glyph.
95   https://bugs.freedesktop.org/show_bug.cgi?id=54950
96
97   Make scaled-font cache actually thread-safe and prevent
98   use-after-frees.
99
100   Restore support for older versions of XRender. A couple of typos and a
101   few forgotten chunks prevented the xlib compositor from running
102   correctly with XRender < 0.10. Note that there are still a few
103   regressions remaining.
104
105
106 Release 1.12.8 (2012-11-24 Chris Wilson <chris@chris-wilson.co.uk>)
107 ===================================================================
108 Another couple of weeks and a few more bugs have been found and fixed,
109 it is time to push the next point release. Many thanks to everyone who
110 reported their issues and helped us track down the bugs and helped
111 testing the fixes.
112
113 Bug fixes
114 ---------
115
116   Expand the sanity checking for broken combinations of XSendEvent and
117   ShmCompletionEvent.
118
119   Notice that "The X.Org Foundation" sometimes also identifies itself
120   as "The Xorg Foundation".
121
122   Handle various ages of libXext and its Shm headers.
123
124   Fix the invalid clipping of the source drawable when using SHM
125   transport to upload images.
126   https://bugs.freedesktop.org/show_bug.cgi?id=56547
127
128   Handle all Type1 postscript operators for better font compatibility.
129   https://bugs.freedesktop.org/show_bug.cgi?id=56265
130
131   Fix a couple of memory leaks in Type1 font subsetting
132   https://bugs.freedesktop.org/show_bug.cgi?id=56566
133
134   Tighten the evaluation of the start/stop pen vertices, and catch a few
135   instances where we would use a fan instead of a bevel.
136   https://bugs.freedesktop.org/show_bug.cgi?id=56432
137
138   Fix assumption that geometric clipping always succeeds with the
139   span-compositor.
140   https://bugs.freedesktop.org/show_bug.cgi?id=56574
141
142   Fix call to spline intersection when evaluating whether a stoke is
143   visible.
144
145   Remember to copy inferior sources when using SHM to readback the
146   surface for use as a source.
147
148 Release 1.12.6 (2012-10-22 Chris Wilson <chris@chris-wilson.co.uk>)
149 ===================================================================
150 Thanks to everyone who download cairo-1.12.4 and gave us their feedback.
151 It truly was invaluable and has helped us to fix many portability issues
152 that crept in with some of the new features. This release aims to fix
153 those stability issues and run on a wider range of systems.
154
155 Bug fixes
156 ---------
157
158   Fix the recording surface to actually snapshot the source and so fix
159   PDF drawing.
160
161   Calling XSendEvent with an XShmCompletionEvent is incompatabile with
162   older Xorg servers.
163
164   Reorder CloseDisplay chain so that XShm is not reinstantiated after
165   shutdown, causing a potential crash if the Display was immediately
166   recreated using the same memory address.
167
168   Make sure that the Xserver has attached to the SHM segment before
169   deleting it from the global namespace on systems that do not support
170   deferred deletion.
171
172   Type1 subsetting support for PDF (and PS) was once again improved to
173   work with a larger number of PDF readers.
174
175   GLESv2 build fixes and improved support for embedded GPUs.
176
177   Tweak the invisible pen detection for applications that are currently
178   using too large values for geometric tolerance.
179
180   A build fix for older freetype libraries.
181
182
183 Release 1.12.4 (2012-10-05 Chris Wilson <chris@chris-wilson.co.uk>)
184 ===================================================================
185 More bugs, and more importantly, more fixes. On the cairo-gl side, we
186 have refinements to the MSAA compositor which enables hardware
187 acceleration of comparitively low-quality antialiasing - which is useful
188 in animations and on very high density screens. For cairo-xlib, we have
189 finally enabled SHM transport for image transfers to and from the X
190 server. A long standing required feature, SHM transport offers a notable
191 reduction in rendering latency by reducing the number of copies
192 required to upload image data - given hardware and driver support,
193 cairo-xlib can now perform zero copy uploads onto the GPU. And as usual
194 Adrian Johnson has been very busy fixing many different corner cases in
195 cairo-pdf, impoving opacity groups and font subsetting. Last, but not
196 least, for cairo-image Søren Sandmann Pedersen added support for
197 rendering glyphs to pixman and using that from within cairo. The new
198 glyph rendering facility reduces the overhead for setting up the
199 compositing operation, improving glyph thoughput for the image backend
200 by a factor of about 4. And before he did so, he also fixed up a few
201 bugs in the existing glyph rendering code. So many thanks to Andrea
202 Canciani, Adrian Johnson, Chuanbo Weng, Dongyeon Kim, Henry Song, Martin
203 Robinson, Søren Sandmann Pedersen and Uli Schlachter for their
204 contributions, finding and fixing bugs.
205
206 Bug fixes
207 ---------
208
209  Interior boxes were being dropped when amalgamating regions during
210  tesselation.
211  https://bugs.freedesktop.org/show_bug.cgi?id=49446
212
213  Allow building without gtk-doc installed
214
215  Invalid edge generation whilst reducing complex polygons.
216  https://bugs.freedesktop.org/show_bug.cgi?id=50852
217
218  Stroking around tight cusps
219
220  Use locale correct formats for reading font subsetting and valid
221  buffers.
222  https://bugs.freedesktop.org/show_bug.cgi?id=51443
223
224  Ensure that the type1 subset includes all the glyph encodings
225  https://bugs.freedesktop.org/show_bug.cgi?id=53040
226
227  Upload the whole source for a repeating pattern.
228  https://bugs.freedesktop.org/show_bug.cgi?id=51910
229
230  Fix damage tracking to handle continuation chunks corectly and so
231  prevent crashes on win32.
232  https://bugs.freedesktop.org/show_bug.cgi?id=53384
233
234  Avoid emitting miter joins for degenerate line segments
235  https://bugzilla.mozilla.org/show_bug.cgi?id=407107
236
237  Convert the relative path semgents into the backend coordinates
238  and then back again to user coordinates (cairo_copy_path,
239  cairo_append_path)
240  https://bugs.freedesktop.org/show_bug.cgi?id=54732
241  
242  Fix extents computations for a degenerate path consisting only of a
243  move-to
244  https://bugs.freedesktop.org/show_bug.cgi?id=54549
245
246  Prevent crashing on a degenerate project edge after polygon
247  intersection
248  https://bugs.freedesktop.org/show_bug.cgi?id=54822
249  
250
251
252 Release 1.12.2 (2012-04-29 Chris Wilson <chris@chris-wilson.co.uk>)
253 ===================================================================
254 After such a long gestation period for the release of Cairo 1.12, we
255 inevitably accumulated a few bugs that were flushed out by broadening the
256 test base. Thanks to everybody who tried the release, apologies to any one
257 unfortunate enough to encounter a bug and many thanks for reporting it. As
258 a result Adrian Johnson, Alexandros Frantzis, Andrea Canciani, Kalev
259 Lember, Maarten Bosman, Marcus Meissner, Nis Martensen and Uli Schlachter
260 have squashed many more bugs and improved the documentation. I would
261 strongly recommend everyone to upgrade to cairo-1.12.2.
262 -Chris
263
264 Bug fixes
265 ---------
266
267  Allow applications to create 0x0 xlib surfaces, such as used by LibreOffice.
268  https://bugs.freedesktop.org/show_bug.cgi?id=49118
269  
270  Trim composite extents for SOURCE/CLEAR operators to the mask.
271
272  Use fallback fonts in PDF for unhandled computed glyph widths
273  https://bugs.freedesktop.org/show_bug.cgi?id=48349
274
275  Handle snapshots of recording surfaces for analysing pattern extents.
276  Fixes a regression of reporting the PDF bounding box as being the page size.
277
278  Fix allocation size for PDF pattern ids.
279  Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=49089
280
281  Fix emission of rectilinear dashed segments, with and without scaling, and
282  application of degenerate line joins.
283
284  Clamp unbounded fixup polygons to the clip extents.
285
286  Prevent infinite loop due to rounding errors whilst incrementing along dashes.
287
288  Prevent overflow for inline a8 span filling.
289
290  Miscellaneous build fixes for Cygwin on Windows and Solaris.
291
292 Release 1.12.0 (2012-03-23 Chris Wilson <chris@chris-wilson.co.uk>)
293 ===================================================================
294 It's taken over 18 months, but the wait is finally over. A new cairo release!
295 We are pleased to annouce a new stable release of Cairo that brings many
296 new features and performance improvements, all whilst maintaining
297 compatibility with cairo-1.0 and all releases since. We recommend anyone
298 using a previous release of Cairo to upgrade to 1.12.0.
299
300 The major feature of this release is the introduction of a new procedural
301 pattern; the mesh gradient. This, albeit complex, gradient is constructed
302 from a set of cubic Bezier patches and is a superset of all other gradient
303 surfaces which allows for the construction of incredibily detailed patterns.
304 In PDF parlance, the mesh gradient corresponds with type 7 patterns. Many
305 thanks to Andrea Canciani for bringing this to Cairo, and for his work on
306 making gradient handling robust.
307
308 Not content with just adding another procedural pattern, Cairo 1.12 also
309 adds new API to create a callback pattern,
310 cairo_pattern_create_raster_source, that allows the application to
311 provide the pixel data for the region of interest at the time of
312 rendering. This can be used for instance, by an application to decode
313 compressed images on demand and to keep a cache of those decompressed
314 images, independently of Cairo. When combined with the recording
315 surface, it should form a useful basis for a deferred renderer.
316
317 With the release of cairo-1.12, we also introduce a new supported
318 backend for interoperating with X using XCB. Uli Schlachter, also
319 maintainer of awesome and contributor to libxcb, has volunteered to
320 maintain cairo-xcb for us. Thanks Uli!
321
322 For cairo-1.12, we have also added some common API to address any
323 surface as an image and so allow direct modification of the raster data.
324 Previously, only the Quartz and Win32 backends supported a very narrow
325 interface to allow for efficient pixel upload. Now with
326 cairo_surface_create_similar_image, cairo_surface_map_to_image, and
327 cairo_surface_unmap_image, Cairo exports a consistent method for
328 treating those surfaces as an image and so allow modification inplace.
329 These are the same routines used internally, and should support
330 efficient transfer or direct mapping of the target surfaces as
331 applicable.
332
333 Another focus over the past year has been to address many performance
334 issues, without sacrificing the composition model. To accomplish the
335 goal, once again the rasterisation pipeline was overhauled and made
336 explicit, giving the backends the freedom to implement their own
337 specific pipeline whilst also providing a library of common routines
338 from which to build the pipeline. For instance, this allows the image
339 backend and the gl backend to composite scan line primitives inplace,
340 and to then implement custom fallbacks to catch the corner cases that do
341 not map onto their fastest paths. Similarly, this allows for the Xlib
342 backend to implement trapezoidation without compromising the other
343 backends, yet still allow for the pipeline to be used elsewhere for
344 testing and fallbacks. Clipping was once again overhauled, so that the
345 common cases for the raster pipelines could be captured and processed
346 with fast paths with the emphasis on performing geometric clipping to
347 reduce the frequency of using multi-pass clipmasks. Stroking was made
348 faster, both by providing specialised fast-paths for simple, yet frequent,
349 cases (such as stroking around a rectangle) and by reducing the number
350 of edges generated by the general stroker.
351
352 As part of the focus on performance, Cairo 1.12 introduces some
353 antialias hints (NONE,FAST, GOOD, BEST) that are interpolated by the
354 raserisers to fine tune their performance versus quality. Cairo 1.12
355 also introduces a new observation architecture,
356 cairo_surface_observer_t, which can be used to analyse the amount of
357 time consumed by drawing commands and help identify inefficiencies in
358 both Cairo and the application.
359
360 Last, but by no means least, the OpenGL backend has seen significant
361 work including the port to GLESv2 and the exploitation of advanced
362 hardware features. Interesting times.
363
364 As always, I would like to thank everyone who contributed to Cairo,
365 not only through writing code, but also submitting documentation, bug
366 reports, suggestions and generally having fun with Cairo! In particular
367 though this release could not have happened without the efforts of
368 Adrian Johnson, Alexandros Frantiz, Andrea Canicani, Martin Robinson,
369 Nis Martensen, and Uli Schlachter. Thanks.
370 -Chris
371
372 Snapshot 1.11.4 (2012-13-12)
373 ============================
374 The cairo community is pleased to finally announce the long aniticpated
375 release candidate for 1.12, 1.11.4, of the cairo graphics library. This
376 is the first major update to cairo in over a year and brings a large
377 number of new features; undoubtably a few bugs as well.
378
379 While many people have contributed and have helped to test the release,
380 providing feedback on 1.10 and suggesting improvements, this release
381 is the result of a few persevering souls who deserve recognition for their
382 outstanding contributions: Andrea Canciani (all round bug fixing,
383 performance tuning and master of the gradients), Adrian Johnson (PDF
384 supremo) and Uli Schlachter (who stepped forward as maintainer for the
385 XCB backend).
386
387 Major additions since 1.11.2:
388
389  * cairo_surface_map_to_image API for pixel level access to any surface
390
391  * New antialias hints to control the trade-off between speed and quality
392
393  * A callback pattern, cairo_pattern_create_raster_source, for lazy
394    decoding of image data.
395
396  * cairo_surface_observer_t, a new type of surface to gather performance
397    statistics
398
399  * XCB as a supported backend
400
401  * A rewritten compositor pipeline for performance improvements for, but not
402    limited to, the xlib and image backends.
403    From ION and PineView through to SandyBridge, every machine I have shows
404    across the board performance improvement on the cairo-traces:
405
406    i5-2520m     gnome-system-monitor:   5.97x speedup
407    pnv          gnome-system-monitor:   4.86x speedup
408    i5-2520m     firefox-asteroids:      4.66x speedup
409    pnv          firefox-asteroids:      4.43x speedup
410    image        firefox-canvas:         3.82x speedup
411    i5-2520m     firefox-canvas-alpha:   3.49x speedup
412    image        firefox-asteroids:      2.87x speedup
413    pnv          firefox-talos-svg:      2.83x speedup
414    ion          grads-heat-map:         2.75x speedup
415    pnv          firefox-canvas-alpha:   2.66x speedup
416    image        gnome-system-monitor:   2.66x speedup
417    image        swfdec-giant-steps:     2.46x speedup
418    image        firefox-canvas-alpha:   2.14x speedup
419    i5-2520m     firefox-talos-svg:      2.03x speedup
420    image        grads-heat-map:         2.02x speedup
421    ion          gnome-system-monitor:   2.00x speedup
422    pnv          firefox-particles:      1.99x speedup
423    i5-2520m     grads-heat-map:         1.96x speedup
424    pnv          firefox-canvas:         1.92x speedup
425    ion          firefox-particles:      1.80x speedup
426    image        poppler-reseau:         1.77x speedup
427    pnv          xfce4-terminal-a1:      1.72x speedup
428    image        firefox-talos-svg:      1.65x speedup
429    pnv          grads-heat-map:         1.63x speedup
430    i5-2520m     firefox-canvas:         1.63x speedup
431    pnv          swfdec-youtube:         1.62x speedup
432    image        ocitysmap:              1.59x speedup
433    i5-2520m     firefox-fishbowl:       1.56x speedup
434    i5-2520m     poppler-reseau:         1.50x speedup
435    i5-2520m     evolution:              1.50x speedup
436    i5-2520m     midori-zoomed:          1.43x speedup
437    pnv          firefox-planet-gnome:   1.42x speedup
438    i5-2520m     firefox-talos-gfx:      1.41x speedup
439    i5-2520m     gvim:                   1.41x speedup
440    pnv          ocitysmap:              1.37x speedup
441    image        poppler:                1.31x speedup
442    ion          firefox-canvas-alpha:   1.35x speedup
443    ion          firefox-talos-svg:      1.34x speedup
444    i5-2520m     ocitysmap:              1.32x speedup
445    pnv          poppler-reseau:         1.31x speedup
446    i5-2520m     firefox-planet-gnome:   1.31x speedup
447    pnv          firefox-fishbowl:       1.30x speedup
448    pnv          evolution:              1.28x speedup
449    image        gvim:                   1.27x speedup
450    i5-2520m     swfdec-youtube:         1.25x speedup
451    pnv          gnome-terminal-vim:     1.27x speedup
452    pnv          gvim:                   1.25x speedup
453    image        firefox-planet-gnome:   1.25x speedup
454    image        swfdec-youtube:         1.25x speedup
455    ...
456
457 And a plethora of minor improvements everywhere!
458 -Chris
459
460 Snapshot 1.11.2 (2011-01-23)
461 ===========================
462
463 In this first snapshot along the way to cairo-1.12.0, we are very excited
464 to announce the introduction of Bezier surface gradients, known as type
465 6/7 gradients in PS/PDF parlance. This is the culmination of much work by
466 the dynamic duo: Adrian Johnson and Andrea Canciani. Thanks guys!
467
468 Also, I want to warmly welcome Uli Schlachter who recently joined the
469 Cairo community on a mission. That mission is to make cairo-xcb a
470 supported backend for 1.12. And for this snapshot he has made great
471 strides in fixing all the bugs I had left behind. Thanks Uli!
472
473 And we have also seen a new contributor, Alexandros Frantzis, who has
474 begun bringing up cairo-gl for GLESv2 devices. Thanks Alex!
475
476 And lastly, I must also thank Adrian and Andrea for the vast numbers of
477 bugs that they have tackled between them, fixing all those little corner
478 cases that lie hidden until too late.
479
480 API additions:
481
482 The ability to construct piece-wise Bezier surface gradients:
483
484         cairo_pattern_create_mesh
485
486         constructs a pattern of type CAIRO_PATTERN_TYPE_MESH using
487
488         cairo_pattern_mesh_begin_patch
489         cairo_pattern_mesh_end_patch
490         cairo_pattern_mesh_curve_to
491         cairo_pattern_mesh_line_to
492         cairo_pattern_mesh_move_to
493         cairo_pattern_mesh_set_control_point
494         cairo_pattern_mesh_set_corner_color_rgb
495         cairo_pattern_mesh_set_corner_color_rgba
496         cairo_pattern_mesh_get_patch_count
497         cairo_pattern_mesh_get_path
498         cairo_pattern_mesh_get_corner_color_rgba
499         cairo_pattern_mesh_get_control_point
500
501 The introduction of a unique ID accessible via the mime data type:
502         CAIRO_MIME_TYPE_UNIQUE_ID
503
504
505
506
507
508 Release 1.10.2 (2010-12-25 Chris Wilson <chris@chris-wilson.co.uk>)
509 ===================================================================
510 The cairo community is pleased to announce the 1.10.2 release of the
511 cairo graphics library. This is the first update to cairo's stable 1.10
512 series and contains a large number of bug fixes.
513
514 While many people have contributed and have help to test the release,
515 2 people deserve special recognition for their efforts in tracking down
516 and fixing bugs, Andrea Canciani and Adrian Johnson. Thanks to their
517 tremendous efforts, and of all cairo contributors, it is much
518 appreciated.
519
520 We recommend everyone upgrade to cairo 1.10.2 and hope that everyone
521 will continue to have lots of fun with cairo!
522
523 -Chris
524
525 Bug fixes
526 ---------
527
528   Fix embedding of grayscale jpegs in PS.
529   https://bugs.freedesktop.org/show_bug.cgi?id=31632
530
531   Fix the reported path of extents containing a curve.
532
533   Fix the compositing of unaligned boxes.
534
535   Reset the clipper in PDF upon finish.
536
537   Fix degenerates arcs to become a degenerate line.
538
539   Build support for autoconf 2.67
540
541   Fix painting of transformed patterns in PS
542
543   Fix the EPS bounding box for PS
544   https://bugs.freedesktop.org/show_bug.cgi?id=24688
545
546   Fix the missing content for EPS
547   https://bugs.freedesktop.org/show_bug.cgi?id=24688
548
549   Fix regression upon changing page size in PS/PDF
550   https://bugs.freedesktop.org/show_bug.cgi?id=24691
551
552   Only use ActualText with PDF-1.5 documents
553
554   Fix the bbox for type1 fallbacks.
555
556   Reset the color after ending the context in PDF
557   https://bugs.freedesktop.org/show_bug.cgi?id=31140
558
559   Fix the advance of subsetted type1 fonts
560   https://bugs.freedesktop.org/show_bug.cgi?id=31062
561
562   Fix handling of EXTEND_NONE gradients for PDF
563
564   Restrict in-place optimisation for a8 image masks with SOURCE
565
566
567 Release 1.10.0 (2010-09-06 Chris Wilson <chris@chris-wilson.co.uk>)
568 ===================================================================
569 The cairo community is astounded (and flabbergast) to finally announce
570 the 1.10.0 release of the cairo graphics library. This is a major update
571 to cairo, with new features and enhanced functionality which maintains
572 compatibility for applications written using any previous major cairo
573 release, (1.8, 1.6, 1.4, 1.2, or 1.0). We recommend that anybody using
574 a previous version of cairo upgrade to cairo 1.10.0.
575
576 One of the more interesting departures for cairo for this release is the
577 inclusion of a tracing utility, cairo-trace. cairo-trace generates a
578 human-readable, replayable, compact representation of the sequences of
579 drawing commands made by an application. This can be used to inspecting
580 applications to understand issues and as a means for profiling
581 real-world usage of cairo.
582
583 The traces generated by cairo-trace have been collected in 
584
585   git://git.cairographics.org/git/cairo-traces
586
587 and have driven the performance tuning of cairo over the last couple of
588 years. In particular, the image backend is much faster with a new
589 polygon rasterisation and a complete overhaul of the tessellator. Not
590 only is this faster, but also eliminates visual artifacts from
591 self-intersecting strokes. Not only has cairo-trace been driving
592 performance improvements within cairo, but as a repeatable means of
593 driving complex graphics it has been used to tune OpenGL, DDX, and
594 pixman.
595
596 Cairo's API has been extended to better support printing, notably
597 through the ability to include a single compressed representation of an
598 image for patterns used throughout a document, leading to dramatic file
599 size reductions. Also the meta-surface used to record the vector
600 commands compromising a drawing sequence is now exposed as a
601 CAIRO_SURFACE_TYPE_RECORDING, along with a new surface that is a child of a
602 larger surface, CAIRO_SURFACE_TYPE_SUBSURFACE. One typical usage of a
603 subsurface would be as a source glyph in a texture atlas, or as a
604 restricted subwindow within a canvas.
605
606 Cairo's API has also resurrected the RGB16 format from the past as
607 the prevalence of 16-bit framebuffers has not diminished and is a
608 fore-taste of the extended format support we anticipate in the future.
609 Increasing cairo's utility, we introduce the cairo_region_t for handling
610 sets of pixel aligned rectangles commonly used in graphics applications.
611 This is a merger of the GdkRegion and the pixman_region_t, hopefully
612 providing the utility of the former with the speed of the latter.
613
614 Furthermore cairo has been reworked to interoperate more closely with
615 various acceleration architectures, gaining the ability to share
616 those hardware resources through the new cairo_device_t. For instance,
617 with the new OpenGL backend that supersedes the Glitz backend, hardware
618 and rendering operations can be shared between a classic OpenGL
619 application mixing libVA for the hardware assisted video decode with
620 cairo for high quality overlays all within the same OpenGL canvas.
621
622 Many thanks for the hard work of Adrian Johnson, Andrea Canciani, Behdad
623 Esfahbod, Benjamin Otte, Carl Worth, Carlos Garcia Campos, Chris Wilson,
624 Eric Anholt, Jeff Muizelaar, Karl Tomlinson, M Joonas Pihlaja, Søren
625 Sandmann Pedersen and many others that have contributed over the last
626 couple of years to cairo. Thank you all!
627
628 Snapshot 1.9.14 (2010-07-26)
629 ============================
630
631   A quiet couple of weeks, hopefully Cairo is seeing widescale deployment and
632   we are being to see the results of the stabilisation effort. Clipping bugs
633   seems to have been the order of the last couple of weeks, with a couple
634   reported and duly fixed. Thank you Igor Nikitin and Karl Tomlinsion for
635   finding those regressions. At this point all that seems to remain to do is
636   to fix the outstanding regressions in the PDF backend...
637
638 Bugs fixes
639 ----------
640
641     Clip doesn't work for text on the image backend
642     https://bugs.freedesktop.org/show_bug.cgi?id=29008
643
644     Add explicit dependency for cxx
645     https://bugs.freedesktop.org/show_bug.cgi?id=29114
646
647     Fix regressions in reporting clip extents
648     https://bugs.freedesktop.org/show_bug.cgi?id=29120
649     https://bugs.freedesktop.org/show_bug.cgi?id=29121
650     https://bugs.freedesktop.org/show_bug.cgi?id=29122
651     https://bugs.freedesktop.org/show_bug.cgi?id=29124
652     https://bugs.freedesktop.org/show_bug.cgi?id=29125
653
654
655 Snapshot 1.9.12 (2010-07-12)
656 ============================
657
658   A couple of weeks spent fixing those annoying bugs and cleaning up the build
659   system; the list of outstanding tasks to complete for the stable release is
660   finally shrinking. The chief bug fixer has been Benjamin Otte who not only
661   made sure that the public API is consistent and being tested for its
662   consistency, but also ensured that the documentation was up-to-date and
663   spent time clarifying cases where even the Cairo developers have come
664   unstuck in the past. Many thanks, Benjamin. However, he was not alone,
665   as Andrea Canciani continued his fine work in isolating broken corner cases
666   and proceeding to fix them, and tidying up the quartz backend. And last, but
667   definitely not least, M Joonas Pihlaja tried building Cairo across a
668   perverse range of systems and fixed up all the loose bits of code that came
669   unravelled. Thanks everybody!
670
671 API Changes
672 -----------
673
674   cairo_surface_set_mime_data, cairo_surface_get_mime_data:
675
676     The length parameter is now an unsigned long (as opposed to an unsigned
677     int). The parameter is intended to be an equivalent to a size_t without
678     requiring POSIX types and be large enough to store the size of the
679     largest possible allocation.
680
681   cairo_gl_surface_create_for_texture:
682
683     This a new surface constructor for cairo-gl that explicitly enables
684     render-to-texture for foreign, i.e. application, textures.
685
686   cairo_region_xor, cairo_region_xor_rectangle
687
688     A couple of utility routines add to the region handling interface for
689     the purpose of replacing existing GdkRegion functionality.
690
691 Bugs fixes
692 ----------
693
694   https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/600622
695
696     Inkscape was caught in the act of attempting to modify a finished surface.
697     Unfortunately, we had the ordering of our guards and assertions wrong and
698     so an ordinary application error was triggering an assert in Cairo. This
699     lead Benjamin to add a test case to ensure that the entire public API
700     could handle erroneous input and then proceeded to fix a whole slew of
701     uncovered bugs.
702
703
704   https://bugs.freedesktop.org/show_bug.cgi?id=28888
705
706     A regression introduced by the special casing of uploading images to an
707     xlib surface in-place which was ignoring the translation applied to the
708     image.
709
710
711 Snapshot 1.9.10 (2010-06-26)
712 ============================
713
714    The first "quick" snapshot in the run up to the stable release.  The
715    last snapshot was picked up by the bleeding edge distributions and so the
716    bug reports have to started to roll in.  The most frequent of these are the
717    introduction of rendering errors by applications that modify a surface
718    without subsequently calling cairo_surface_mark_dirty(). Make sure the
719    application developers are aware of increased reliance on strict use of the
720    Cairo API before 1.10 is released!
721
722    The usual slew of bugs reported and we would like to thank Zoxc for
723    contributing the WGL interface for cairo-gl, and finding more build
724    failures on win32.  And it just wouldn't be a 1.9 snapshot unless
725    Benjamin Otte improved the error handling within cairo-gl, as well as
726    isolating and fixing some more errors in the test suite. The biggest bug of
727    the snapshot turned out to be a major sign extension issue that had lain
728    hidden for many years and was suddenly exposed by incorrectly rounding
729    rectangles when performing non-antialiased rendering.  Also to the relief
730    of many we have included the downstream patch to honour the user's LCD
731    filtering preferences for subpixel rendering of fonts.  The interface
732    remains private for the time being, whilst the proposed public API is
733    finalized.
734
735 API changes
736 -----------
737    None.
738
739 Snapshot 1.9.8 (2010-06-12)
740 ===========================
741
742    One major API changes since the last snapshot, and a whole slew of bugs
743    fixed and inconsistencies eliminated. Far too many bugs fixed to
744    individually identify. We need to thank Benjamin Otte for his fantastic
745    work on the cairo-gl backend making it faster and more robust, Andrea
746    Canciani for finding so many bugs and developing test cases for them, as
747    well fixing them. And last but not least we must all thank Adrian Johnson for
748    continuing to eliminate bugs and improving the PostScript and PDF backends.
749
750    This snapshot represents almost 4 months of bug fixing, bringing Cairo to
751    a point where we consider it almost ready to be a candidate for release.
752    There are a few known bugs left to be fixed, being tracked in
753    https://bugs.freedesktop.org/show_bug.cgi?id=24384, so please give Cairo a
754    whirl and report any regressions. The plan is to release a new snapshot
755    every other week leading to a 1.10 release with a target date of
756    2010-08-16.
757
758 API additions
759 -------------
760   CAIRO_FORMAT_RGB16_565
761
762     16 bit devices still remain popular, and so with great demand,
763     CAIRO_FORMAT_RGB16_565 has been restored enabling applications to create
764     and use 16 bit images as sources and render targets.
765
766   cairo_surface_create_for_rectangle()
767
768     It is common practice to cut an image up into many smaller pieces and use
769     each of those as a source - a technique called texture atlasing.
770     cairo_surface_create_for_rectangle() extends Cairo to directly support use
771     of these subregions of another cairo_surface_t both as a source and as a
772     render target.
773
774   cairo_region_create()
775   cairo_region_create_rectangle()
776   cairo_region_create_rectangles()
777   cairo_region_copy()
778   cairo_region_reference()
779   cairo_region_destroy()
780   cairo_region_equal()
781   cairo_region_status()
782   cairo_region_get_extents()
783   cairo_region_num_rectangles()
784   cairo_region_get_rectangle()
785   cairo_region_is_empty()
786   cairo_region_contains_rectangle()
787   cairo_region_contains_point()
788   cairo_region_translate()
789   cairo_region_subtract()
790   cairo_region_subtract_rectangle()
791   cairo_region_intersect()
792   cairo_region_intersect_rectangle()
793   cairo_region_union()
794   cairo_region_union_rectangle()
795
796     The Cairo region API was actually added a couple of snapshots ago, but we
797     forgot to mention it at the time. A simple API for the handling of
798     rectangular pixel-aligned regions by Soeren Sandmann.
799   
800
801 Backend-specific improvements
802 -----------------------------
803 cairo-gl
804
805   Benjamin Otte made more than 200 commits in which he refactored the cairo-gl
806   backend, reducing a lot of code duplication and enabled him to begin working
807   on improving performance by reducing state changes and associated overhead.
808
809 cairo-xlib
810
811   Access to the underlying connection to the Display is now thread-safe
812   enabling cairo-xlib to be used in a multi-threaded application without fear
813   of random corruption. Thanks Benjamin Otte!
814
815   cairo-xlib will now attempt to use PolyModeImprecise when compositing
816   trapezoids (i.e. a fill or a stroke operation with a non-trivial path) which
817   should allow hardware drivers more scope for accelerating the operation at
818   the cost of potentially incurring minute rendering errors. The mode can be
819   forced back to PolyModePrecise by setting the antialias parameter to
820   CAIRO_ANTIALIAS_SUBPIXEL.
821
822 cairo-svg
823
824   A notable improvement was contributed by Alexander Shulgin to enable SVG to
825   reference external image through the use an extended MIME data type.
826
827 Snapshot 1.9.6 (2010-02-19)
828 ===========================
829 API additions
830 -------------
831     Add cairo_device_t
832
833     The device is a generic method for accessing the underlying interface
834     with the native graphics subsystem, typically the X connection or
835     perhaps the GL context. By exposing a cairo_device_t on a surface and
836     its various methods we enable finer control over interoperability with
837     external interactions of the device by applications. The use case in
838     mind is, for example, a multi-threaded gstreamer which needs to serialise
839     its own direct access to the device along with Cairo's across many
840     threads.
841
842     Secondly, the cairo_device_t is a unifying API for the mismash of
843     backend specific methods for controlling creation of surfaces with
844     explicit devices and a convenient hook for debugging and introspection.
845
846     The principal components of the API are the memory management of:
847
848       cairo_device_reference(),
849       cairo_device_finish() and
850       cairo_device_destroy();
851
852     along with a pair of routines for serialising interaction:
853
854       cairo_device_acquire() and
855       cairo_device_release()
856
857     and a method to flush any outstanding accesses:
858
859       cairo_device_flush().
860
861     The device for a particular surface may be retrieved using:
862
863       cairo_surface_get_device().
864
865     The device returned is owned by the surface.
866
867 API changes (to API new in the cairo 1.9.x series)
868 --------------------------------------------------
869   cairo_recording_surface_create()
870   cairo_recording_surface_ink_extents()
871
872     These are the replacement names for the functions previously named
873     cairo_meta_surface_create and cairo_meta_surface_ink_extents.
874
875   cairo_surface_set_mime_data
876
877     This interface is now changed such that the MIME data will be
878     detached if the surface is modified at all. This guarantees that
879     the MIME data will not become out of synch due to surface
880     modifications, and also means that for the MIME data to be useful,
881     it must be set after all modifications to the surface are
882     complete.
883
884 API removal (of experiment API)
885 -------------------------------
886   The cairo-glitz backend is removed entirely, (in favor of the new
887   cairo-gl backend). See below for more on cairo-gl.
888
889 Generic fixes
890 -------------
891
892   Many improvements for drawing of dashed strokes
893
894         Fix incorrect handling of negative offset
895         Faster computation of first dash (avoids near-infinite looping)
896         Approximate extremely fine dash patterns with appropriate alpha value
897
898   Optimize spans-based renderers for repeated rows, (such as in a rounded rectangle)
899
900 Backend-specific improvements
901 -----------------------------
902 cairo-drm
903
904   This is a new, direct-rendering backend that supports Intel graphics
905   chipsets in the i915 and i965 families. It's still experimental and
906   will likely remain that way for a while. It's already got extremely
907   good performance on the hardware it supports, so if nothing else
908   provides a working proof and performance target for the cairo-gl
909   work for Intel graphics.
910
911 cairo-gl
912
913   Start using GLSL to accelerate many operations. Many thanks to Eric
914   Anholt and T. Zachary Laine for this work. For the first time, we
915   have what looks like what will be a very compelling OpenGL-based
916   backend for cairo (in terms of both quality and performance).
917
918   See this writeup from Eric for more details on recent progress of
919   cairo-gl (which he presented at FOSDEM 2010):
920
921         http://anholt.livejournal.com/42146.html
922
923 cairo-image
924
925   The image backend is made dramatically faster (3-5 times faster for
926   benchmarks consisting primarily of glyph rendering).
927
928 cairo-quartz fixes:
929
930   Many fixes from Robert O'Callahan and Andrea Canciani including:
931
932         Fixed gradient pattern painting
933         Improved A8 image handling
934         Fixes for "unbounded" and other compositing operators
935
936 cairo-pdf fixes:
937
938   Improvements to embedding of JPEG and JPEG2000 data.
939
940 cairo-ps fixes:
941
942   Fix printing of rotated user fonts.
943
944 Snapshot 1.9.4 (2009-10-15)
945 ===========================
946 API additions:
947
948   cairo_meta_surface_create()
949   cairo_meta_surface_ink_extents()
950
951     Finally exporting the internal meta-surface so that applications
952     have a method to record and replay a sequence of drawing commands.
953
954   cairo_in_clip()
955
956     Determines whether a given point is inside the current clip.
957     ??? Should this be called cairo_in_paint() instead? in-clip is the test
958     that is performed, but in-paint would be similar to in-fill and in-stroke.
959
960 New utilities:
961
962   cairo-test-trace
963
964     A companion to cairo-perf-trace, this utility replays a trace against
965     multiple targets in parallel and looks for differences in the output,
966     and then records any drawing commands that cause a failure.
967     Future plans:
968       Further minimisation of the fail trace using "delta debugging".
969       More control over test/reference targets.
970
971 Backend improvements:
972
973   xlib
974
975      Server-side gradients. The theory is that we can offload computation
976      of gradients to the GPU and avoid pushing large images over the
977      connection. Even if the driver has to fallback and use pixman to render
978      a temporary source, it should be able to do so in a more efficient manner
979      than Cairo itself. However, cairo-perf suggests otherwise:
980
981      On tiny, Celeron/i915:
982
983       before: firefox-20090601 211.585
984        after: firefox-20090601 270.939
985
986      and on tiger, CoreDuo/nvidia:
987
988       before: firefox-20090601 70.143
989        after: firefox-20090601 87.326
990
991      In particular, looking at tiny:
992
993      xlib-rgba paint-with-alpha_linear-rgba_over-512   47.11 (47.16 0.05%) -> 123.42 (123.72 0.13%):  2.62x slowdown
994      █▋
995      xlib-rgba paint-with-alpha_linear3-rgba_over-512   47.27 (47.32 0.04%) -> 123.78 (124.04 0.13%):  2.62x slowdown
996      █▋
997
998
999 New experimental backends:
1000
1001    QT
1002
1003    OpenVG - The initial work was done by Øyvind Kolås, and made ready for
1004             inclusion by Pierre Tardy.
1005
1006    OpenGL - An advanced OpenGL compositor. The aim is to write a integrate
1007             directed rendering using OpenGL at a high-level into Cairo. In
1008             contrast to the previous attempt using Glitz which tried to
1009             implement the RENDER protocol on top of OpenGL, using the
1010             high-level interface should permit greater flexibility and
1011             more offloading onto the GPU.
1012             The initial work on the backend was performed by Eric Anholt.
1013
1014 Long standing bugs fixed:
1015
1016   Self-intersecting strokes.
1017
1018     A long standing bug where the coverage from overlapping semi-opaque
1019     strokes (including neighbouring edges) was simply summed in lieu of
1020     a costly global calculation has been fixed (by performing the costly
1021     global calculation!) In order to mitigate the extra cost, the
1022     tessellator has been overhauled and tune, which handles the fallback
1023     for when we are unable to use the new span rasteriser on the stroke
1024     (e.g. when using the current RENDER protocol). The large number of
1025     pixel artefacts that implementing self-intersection elimination
1026     removes is ample justification for the potential performance
1027     regression. If you unfortunately do suffer a substantial performance
1028     regression in your application, please consider obtaining a
1029     cairo-trace and submitting it to us for analysis and inclusion into
1030     our performance suite.
1031
1032 Special thanks:
1033
1034    To the AuroraUX team for providing access to one of their OpenSolaris
1035    machines for cairo and pixman development.  http://www.auroraux.org/
1036
1037 Snapshot 1.9.2 (2009-06-12)
1038 ===========================
1039 API additions:
1040
1041   cairo_surface_set_mime_data()
1042   cairo_surface_get_mime_data()
1043
1044     Should this take unsigned int, unsigned long or size_t for the length
1045     parameter? (Some datasets may be >4GiB in size.)
1046
1047     Associate an alternate, compressed, representation for a surface.
1048     Currently:
1049      "image/jp2" (JPEG2000) is understood by PDF >= 1.5
1050      "image/jpeg" is understood by PDF,PS,SVG,win32-printing.
1051      "image/png" is understood by SVG.
1052
1053   cairo_pdf_version_t
1054   cairo_pdf_surface_restrict_to_version()
1055   cairo_pdf_get_versions()
1056   cairo_pdf_version_to_string()
1057
1058     Similar to restrict to version and level found in SVG and PS,
1059     these limit the features used in the output to comply with the PDF
1060     specification for that version.
1061
1062   CAIRO_STATUS_INVALID_SIZE
1063     Indicates that the request surface size is not supported by the
1064     backend.  This generally indicates that the request is too large.
1065
1066   CAIRO_STATUS_USER_FONT_NOT_IMPLEMENTED
1067     Indicates that a required callback for a user-font was not implemented.
1068
1069   CAIRO_STATUS_LAST_STATUS
1070     This is a special value to indicate the number of status values enumerated
1071     at compile time. (This may differ to the number known at run-time.)
1072
1073   The built-in twin font is now called "@cairo:" and supports a limited set
1074   of options like "@cairo:mono". Where are these specified?
1075
1076   cairo_in_fill() now uses HTML Canvas semantics, all edges are inside.
1077
1078 New experimental backends:
1079
1080    CairoScript
1081
1082 New utility:
1083
1084   cairo-trace and cairo-perf-trace
1085
1086     cairo-trace generates a human-readable, replayable, compact(-ish!)
1087     representation of the sequences of drawing commands made by an
1088     application.
1089
1090     Under the util/cairo-script directory is a library to replay traces.
1091
1092     perf/cairo-perf-trace replays traces against multiple backends
1093     and makes useful benchmark reports. This is integrated with
1094     'make perf'. You may collect your own traces or take advantage
1095     of traces collected by the community:
1096
1097       git://git.cairographics.org/git/cairo-traces
1098
1099     (Put this into perf/cairo-traces to run these as part of "make perf".)
1100
1101     There is additional WIP in building a debugging tool for cairo applications
1102     based on CairoScript (currently very preliminary, mostly serves to show
1103     that GtkSourceView is too slow) :
1104
1105       people.freedesktop.org:~ickle/sphinx
1106
1107 Test suite overhaul:
1108
1109   The test suite is undergoing an overhaul, primarily to improve its speed
1110   and utility. (Expect more changes in the near future to improve XFAIL
1111   handling.)
1112
1113 Optimisations:
1114   polygon rasterisation! Joonas implemented the Tor polygon scan converter,
1115   on typical geometry is about 30% faster for the image backend.
1116
1117   Bovine Polaroids! For those not in on the joke, this is the long
1118   awaited "copy-on-write snapshot" or "COW snapshot" support. The
1119   user-visible feature is that including the same image multiple times
1120   into a PDF file should result in only a single instance of that
1121   image in the final output. This is unlike previous versions of cairo
1122   which would generate very large PDF files with multiple copies of
1123   the same image. Adrian says that the PDF is not quite working as
1124   well as it should yet, so we hope for futher improvements before
1125   cairo 1.10.
1126
1127 Bug fixes:
1128
1129   EXTEND_PAD.
1130
1131   Better handling of large scale-factors on image patterns.
1132
1133   Emit /Interpolate for PS,PDF images.
1134
1135   Global glyph cache - cap on the total number of inactive glyphs,
1136   should prove fairer for fonts with larger glyph sets.
1137
1138   Compilation without fontconfig
1139
1140   Improved handling of low-bitdepth sources (e.g. copying the contents
1141   of 16-bit xserver windows)
1142
1143 Regressions:
1144
1145   cairo_traps_extract_region >10x slower. Fix pending.
1146
1147 Still to come:
1148
1149   Region tracking API (ssp) for damage tracking, hit testing etc
1150   mime-surface
1151
1152   An expiremental OpenGL backend?
1153
1154   Tweaks to tessellator, allocations of patterns, delayed
1155   initialisation of the xlib backend (reduce the cairo overhead of
1156   render_bench by ~80%).
1157
1158
1159 Release 1.8.8 (2009-06-16 Chris Wilson <chris@chris-wilson.co.uk>)
1160 ==================================================================
1161 The cairo community is pleased to announce the 1.8.8 release of the
1162 cairo graphics library. This is the fourth update to cairo's stable
1163 1.8 series and contains a small number of bug fixes (in particular a
1164 few corrections to the documentation and a few fixes in the FreeType font
1165 backend). This is being released just over six months after cairo 1.8.6.
1166
1167 We recommend that everyone using cairo upgrade to 1.8.8.
1168
1169 -Chris
1170
1171 Build fixes
1172 -----------
1173 There were reports of incompatibilities with the autotools bundled in with
1174 the 1.8.6 tarball.  This release has been built with automake-1.10.2 and
1175 autoconf-2.63.
1176
1177 The configure check for FreeType has been improved:
1178
1179    typo in check for version of freetype in configure script
1180    https://bugs.freedesktop.org/show_bug.cgi?id=19283
1181
1182 Compilation on 64-bit MacOS/X fixes:
1183
1184   Cannot build cairo_quartz_font_face_create_for_atsu_font_id on 64-bit Mac OS X
1185   https://bugs.freedesktop.org/show_bug.cgi?id=15702
1186
1187 Bug fixes
1188 ---------
1189 Uninitialised status return within _cairo_clip_intersect_mask(). This caused
1190 random crashes and general mayhem as an error could be generated causing all
1191 rendering to the context to stop.
1192
1193 Avoid transforming nearly-degenerate matrices into degenerate matrices:
1194
1195    Painting stops in this case, using -moz-transform: scale, rotate and video
1196    https://bugzilla.mozilla.org/show_bug.cgi?id=467423
1197
1198 A few FreeType font handling bugs were fixed:
1199
1200    Rendering with PANGO_GRAVITY_EAST leads to different results with image and pdf
1201    https://bugs.freedesktop.org/show_bug.cgi?id=21985
1202
1203    Don't call FT_Done_Face() on faces we did not create
1204
1205    zombie ft_font_face / ft_unscaled_font mutual referencing problems
1206    http://bugs.freedesktop.org/show_bug.cgi?id=21706
1207
1208 Ensure win32 font backend sets the return value to -1 (indicating the absent
1209 glyph) if the font index lookup for the unicode character fails. And
1210 similarly fix a bug where a fatal error was raised for an invalid glyph.
1211
1212    cairo_scaled_font_glyph_extents breaks with invalid glyph id
1213    http://bugs.freedesktop.org/show_bug.cgi?id=20255
1214
1215 Various improvements to the documentation, reported by Truc Troung:
1216
1217    https://bugs.freedesktop.org/show_bug.cgi?id=20095
1218    https://bugs.freedesktop.org/show_bug.cgi?id=20154
1219    https://bugs.freedesktop.org/show_bug.cgi?id=20180
1220    https://bugs.freedesktop.org/show_bug.cgi?id=20183
1221    https://bugs.freedesktop.org/show_bug.cgi?id=20182
1222    https://bugs.freedesktop.org/show_bug.cgi?id=20441
1223
1224
1225 Release 1.8.6 (2008-12-13 Chris Wilson <chris@chris-wilson.co.uk>)
1226 ==================================================================
1227 The cairo community is pleased to announce the 1.8.6 release of the
1228 cairo graphics library. This is the third update to cairo's stable
1229 1.8 series and contains a small number of bug fixes (in particular a
1230 few fixes for failures of cairo 1.8.4 on Quartz and PDF, and build fixes for
1231 a couple of backends). This is being released just under a month after
1232 cairo 1.8.4.
1233
1234 We recommend that everyone using cairo upgrade to 1.8.6.
1235
1236 -Chris
1237
1238 Build fixes
1239 -----------
1240 Fix build of DirectFB backend with debugging enabled:
1241
1242    Bug in _cairo_directfb_surface_release_source_image function
1243    http://bugs.freedesktop.org/show_bug.cgi?id=18322
1244
1245 Fix build on OS/2.
1246
1247 Bug fixes
1248 ---------
1249 Workaround a mis-compilation of cairo_matrix_invert() that generated invalid
1250 matrices and triggered assertion failures later. The issue was reported by
1251 Peter Hercek.
1252
1253 Invalid computation of the modulus:
1254
1255    https://bugzilla.mozilla.org/show_bug.cgi?id=466258
1256
1257 Invalid referencing of patterns in the Quartz backend:
1258
1259    Failed assertion `CAIRO_REFERENCE_COUNT_HAS_REFERENCE
1260    (&pattern->ref_count)' when using cairo quartz backend
1261    http://bugs.freedesktop.org/show_bug.cgi?id=18632
1262
1263 Invalid references to glyphs after early culling, causing segmentation faults
1264 in the PDF backend:
1265
1266    http://lists.cairographics.org/archives/cairo/2008-December/015976.html
1267
1268 Check for XRender in the XCB backend, or else we may attempt an invalid memory
1269 access:
1270
1271     XCB backend fails with missing render.
1272     https://bugs.freedesktop.org/show_bug.cgi?id=18588
1273
1274 Release 1.8.4 (2008-11-14 Carl Worth <cworth@cworth.org>)
1275 =========================================================
1276 The cairo community is pleased to announce the 1.8.4 release of the
1277 cairo graphics library. This is the second update to cairo's stable
1278 1.8 series and contains a small number of bug fixes, (in particular a
1279 few fixes for build failures of cairo 1.8.2 on various systems). This
1280 is being released just over two weeks after cairo 1.8.2.
1281
1282 We recommend that everyone using cairo upgrade to 1.8.4.
1283
1284 -Carl
1285
1286 Build fixes
1287 -----------
1288 Fix build with older XRender that doesn't define RepeatNone:
1289
1290    Build of xlib backend fails against old XRender (RepeatNone undeclared)
1291    https://bugs.freedesktop.org/show_bug.cgi?id=18385
1292
1293 Fix build with bash version <= 3.0:
1294
1295    doltlibtool broken on linux with bash 3.00.0
1296    https://bugs.freedesktop.org/show_bug.cgi?id=18363
1297
1298 Bug fixes
1299 ---------
1300 Avoid triggering a bug in X.org server 6.9 resulting in a hung machine
1301 requiring a reboot:
1302
1303     https://bugs.freedesktop.org/show_bug.cgi?id=15628#c2
1304
1305 Fix display of user fonts as exercised by proposed support for type3
1306 fonts in poppler (unsigned promotion fixes):
1307
1308     Use cairo user-font for Type 3 fonts
1309     http://lists.freedesktop.org/archives/poppler/2008-October/004181.html
1310
1311 Avoid miscomputing size of fallback images required when rendering
1312 with CLEAR, IN, or SOURCE operator to vector surfaces, (PS, PDF, SVG,
1313 etc.).
1314
1315 Be more tolerant of broken fonts when subsetting type1 fonts:
1316
1317    Error handling in cairo_type1_font_subset_get_glyph_names_and_widths
1318    http://lists.cairographics.org/archives/cairo/2008-October/015569.html
1319
1320 Fix cairo_fill_extents, cairo_stroke_extents, cairo_path_extents, to
1321 correctly allow NULL parameters as documented.
1322
1323 Fix potential crash on emitting a type3 glyph after having drawn text
1324 paths from the same font, (for example with cairo_text_path).
1325
1326 Release 1.8.2 (2008-10-29 Carl Worth <cworth@cworth.org>)
1327 =========================================================
1328 The cairo community is pleased to announce the 1.8.2 release of the
1329 cairo graphics library. This is the first update to cairo's stable 1.8
1330 series and contains a large number of bug fixes. It is being released
1331 just over one month since cairo 1.8.0.
1332
1333 This release consists primarily of bug fixes, but there is one notable
1334 new feature, (the ability to build cairo without an external font
1335 backend), and there are a few optimizations as well. See below for
1336 details on these changes and the most important bug fixes.
1337
1338 While many people have contributed to this release, Chris Wilson
1339 deserves particular mention. He has contributed well over twice as
1340 many changes to cairo since 1.8.0 than everyone else combined. We
1341 greatly appreciate the tremendous efforts of Chris and all cairo
1342 contributors.
1343
1344 We recommend everyone upgrade to cairo 1.8.2 and hope that everyone
1345 will have lots of fun with cairo!
1346
1347 -Carl
1348
1349 New feature
1350 -----------
1351 It is now possible to build cairo without any font backend, (such as
1352 freetype, win32 or quartz). This is most useful when the application
1353 provides custom font rendering through the user-font API. But in the
1354 case where no external font backend is available, and no user-font is
1355 provided, cairo will render with a failsafe font, (a stroked font
1356 covering visible ASCII character). (Behdad Esfahbod)
1357
1358 Optimizations
1359 -------------
1360 Dramatically speed up compilation with dolt (removes much of the
1361 libtool overhead) (Behdad Esfahbod with thanks to Josh Triplett).
1362
1363 Several minor optimizations to tessellator (special-cased comparisons,
1364 faster insert for skiplist, etc.) (Chris Wilson).
1365
1366 Optimize away fractional translation component when doing
1367 EXTEND_NEAREST filtering, (for better performance).
1368
1369 General bug fixes
1370 -----------------
1371 Allow cloning sub-regions of similar surfaces to fix this bug
1372 (Chris Wilson):
1373
1374         Crafted gif file will crash firefox
1375         [XError: 'BadAlloc (insufficient resources for operation)']
1376         https://bugzilla.mozilla.org/show_bug.cgi?id=424333
1377
1378 Fix some matrix confusion to fix this regression (Chris Wilson):
1379
1380         Translucent star exports in a wrong way to PDF
1381         https://bugs.launchpad.net/inkscape/+bug/234546
1382
1383 Fix some long-standing bugs with respect to properly computing the
1384 extents of transformed, filtered surfaces (Owen Taylor, Carl Worth,
1385 and Chris Wilson):
1386
1387         Bad clipping with EXTEND_NONE
1388         http://bugs.freedesktop.org/show_bug.cgi?id=15349
1389
1390         Improve filtering handling in cairo-pattern.c
1391         http://bugs.freedesktop.org/show_bug.cgi?id=15367
1392
1393         Many thanks to Chris Wilson for digging out and cleaning up
1394         these fixes.
1395
1396 Fix compilation on Solaris 10 (Chris Wilson):
1397
1398         Cairo requires -DREENTRANT (along with  -D_POSIX_THREAD_SEMANTICS)
1399         to compile on Solaris 10 with pthreads
1400         https://bugs.freedesktop.org/show_bug.cgi?id=18010
1401
1402 Fix very old bug causing dashes to be rendered at the wrong length in
1403 fallback images (Adrian Johnson)
1404
1405         Dashed strokes too long in fallback images
1406         https://bugs.freedesktop.org/show_bug.cgi?id=9189
1407
1408 Fix broken dashing when a dashed path starts outside the clip region
1409 (Chris Wilson).
1410
1411 Avoid range overflow when computing large patterns (Benjamin Otte and
1412 Chris Wilson).
1413
1414 Avoid crashing due to an invalid font with an incorrect entry in its
1415 CMAP table (Adrian Johnson).
1416
1417 Fix bugs in computing maximum size of text requests that can be sent
1418 with the Render extension, (avoiding potential crashes when rendering
1419 large amounts of text) (Behdad Esfahbod and Chris Wilson).
1420
1421 Fix rendering of operators unbounded by the mask (Chris Wilson).
1422
1423 Fix compilation on systems without compiler support for a native
1424 64-bit type (Chris Wilson).
1425
1426 Fix several cases of missing error-status propagation. (Chris Wilson,
1427 doing the work he seems to never tire of).
1428
1429 Fix several locking issues found with the lockdep valgrind skin (Chris
1430 Wilson).
1431
1432 Backend-specific bug fixes
1433 --------------------------
1434 xlib: Avoid crash due to attempting XRender calls on pixmaps with
1435 formats not supported by the Render extension (Chris Wilson):
1436
1437         XRender crashes due to NULL pointer from Cairo on SGI O2
1438         https://bugs.freedesktop.org/show_bug.cgi?id=11734
1439
1440 xlib: Add support for XImages with depth of 4, 20, 24, or 28 bits
1441 (Chris Wilson):
1442
1443         cairo doesn't support 24 bits per pixel mode on X11
1444         https://bugs.freedesktop.org/show_bug.cgi?id=9102
1445
1446 xlib: Avoid mistakenly considering two surfaces as similar just
1447 because their depths match (while their Render formats do not) (Karl
1448 Tomlinson).
1449
1450 ps: Fix slight mis-scaling of bitmapped fonts (Adrian Johnson)
1451
1452 svg: Correctly emit comp-op for paint, mask, and show_glyphs
1453 operations (Emmanuel Pacaud).
1454
1455 svg: Use finer-grained fallbacks for SVG 1.2 (as PS and PDF backends
1456 have been doing since 1.6.0) (Chris Wilson).
1457
1458 win32: Fallback to DIB if DDB create fails for
1459 cairo_surface_create_similar (Vladimir Vukicevic).
1460
1461 win32: Fix compatibility with Windows Mobile (Vladimir Vukicevic).
1462
1463 win32: Fix static builds to not do __declspec(dllimport) on public
1464 functions. This requires the user to set a CAIRO_WIN32_STATIC_BUILD
1465 environment variable when compiling (Behdad Esfahbod).
1466
1467 Release 1.8.0 (2008-09-25 Carl Worth <cworth@cworth.org>)
1468 =========================================================
1469 The cairo community is happy (and relieved) to announce the 1.8.0
1470 release of the cairo graphics library. This is a major update to
1471 cairo, with new features and enhanced functionality which maintains
1472 compatibility for applications written using any previous major cairo
1473 release, (1.6, 1.4, 1.2, or 1.0). We recommend that anybody using a
1474 previous version of cairo upgrade to cairo 1.8.0.
1475
1476 The dominant theme of this release is improvements to cairo's ability
1477 to handle text. The highlights include a new "user fonts" feature as
1478 well as a new cairo_show_text_glyphs API which allows glyphs to be
1479 embedded in PDF output along with their original text, (for searching,
1480 selection, and copy-and-paste). Another major feature is a revamp of
1481 cairo's build system making it much easier to build cairo on various
1482 platforms.
1483
1484 See below for more details.
1485
1486 User fonts
1487 ----------
1488 This new API allows the user of cairo API to provide drawings for
1489 glyphs in a font. A common use for this is implementing fonts in
1490 non-standard formats, like SVG fonts and Flash fonts. This API can
1491 also be used by applications to provide custom glyph shapes for fonts
1492 while still getting access to cairo's glyph caches. See
1493 test/user-font.c and test/user-font-proxy.c for usage examples. This
1494 is based on early work by Kristian Høgsberg. Thanks Kristian!
1495
1496 This new API consists of the following functions (and corresponding
1497 _get functions):
1498
1499         cairo_user_font_face_create
1500
1501         cairo_user_font_face_set_init_func
1502         cairo_user_font_face_set_render_glyph_func
1503         cairo_user_font_face_set_text_to_glyphs_func
1504         cairo_user_font_face_set_unicode_to_glyph_func
1505
1506 An additional, new API is
1507
1508         cairo_scaled_font_text_to_glyphs
1509
1510 We were previously reluctant to provide this function as
1511 text-to-glyphs support in cairo was limited to "toy" font
1512 functionality, not really interesting for real-world text
1513 processing. However, with user fonts landing, this API is needed to
1514 expose full access to how user fonts convert text to glyphs. This is
1515 expected to be used by text toolkits like Pango, as well as "proxy"
1516 user-font implementations.
1517
1518 cairo_show_text_glyphs
1519 ----------------------
1520 This new API allows the caller of cairo to provide text data
1521 corresponding to glyphs being drawn. The PDF backend implements this
1522 new API so that complex text can be copied out of cairo's PDF output
1523 correctly and reliably, (assuming the user of cairo calls
1524 cairo_show_text_glyphs). The cairo_show_text_glyphs API is definitely
1525 the most daunting API to debut in cairo. It is anticipated that pango
1526 (and similar high-level text libraries) will be the primary users of
1527 this API. In fact, pango 1.22 already uses cairo_show_text_glyphs.
1528 Behdad was the architect and implementor of this effort. Thanks,
1529 Behdad!
1530
1531 The cairo_show_text_glyphs API includes the following new functions:
1532
1533         cairo_show_text_glyphs
1534
1535         cairo_glyph_allocate
1536         cairo_glyph_free
1537
1538         cairo_text_cluster_allocate
1539         cairo_text_cluster_free
1540
1541         cairo_surface_has_show_text_glyphs
1542
1543 Build system revamp
1544 -------------------
1545 The primary goal of the revamp is to make the build system less
1546 fragile, (particularly for non-Linux platforms). For example, now
1547 people building on win32 will no longer need to maintain a
1548 platform-specific list of files to be built. See the new README.win32
1549 for details. Also, the .so file will now be installed with a different
1550 naming scheme, (for example, 1.7.6 will install with a .10800
1551 suffix). Many thanks to Behdad and his small army of helpers!
1552
1553 Assorted API additions
1554 ----------------------
1555 For API completeness, several missing "getter" functions were added:
1556
1557         cairo_scaled_font_get_scale_matrix
1558
1559         cairo_surface_get_fallback_resolution
1560
1561         cairo_toy_font_face_create
1562         cairo_toy_font_face_get_family
1563         cairo_toy_font_face_get_slant
1564         cairo_toy_font_face_get_weight
1565
1566 The new cairo_toy_font_face functions provide access to functionality
1567 and settings provided by cairo_select_font_face(). Thanks Behdad!
1568
1569 cairo-ps/cairo-pdf: More efficient output
1570 -----------------------------------------
1571 Adrian Johnson has been busy fixing all kinds of bugs in PS and PDF
1572 backends, as well making them generate much more compact output by
1573 avoiding things like re-emitting the color or linestyle on every
1574 drawing operation. Thanks Adrian!
1575
1576 cairo-xlib: dithering
1577 ---------------------
1578 Dithering: Cairo now does simple dithering when rendering to legacy X
1579 servers. This is most visible with 8-bit visuals. Thanks Behdad!
1580
1581 cairo-xlib: Avoid rendering glyphs out of surface bounds
1582 --------------------------------------------------------
1583 This seemingly harmless optimization exposed a bug in OpenOffice.org 3
1584 versions where OO.o was passing bogus surface extents to cairo,
1585 resulting in no text rendered in OO.o. Please contact your
1586 distribution's OO.o maintainers if you see this bug and point them to
1587 the following URL:
1588
1589  https://bugs.freedesktop.org/show_bug.cgi?id=16209
1590
1591 cairo-xlib: Improved performance with X server without Render
1592 -------------------------------------------------------------
1593 Cairo now performs better on remote X servers that lack the Render
1594 extension by being smarter about using X core protocol facilities
1595 instead of falling back to doing all rendering on the client side.
1596
1597 cairo-ft: respecting FC_FT_FACE
1598 -------------------------------
1599 Previously it was impossible to instruct cairo to do emboldening on a
1600 font face object created from an FT_Face. Cairo now respects and uses
1601 the FC_FT_FACE fontconfig pattern element, so emboldening can be
1602 achieved by using cairo_ft_font_face_create_for_pattern() and a
1603 carefully crafted pattern using FC_FT_FACE and FC_EMBOLDEN. Thanks
1604 Behdad!
1605
1606 cairo-directfb: backend improvements
1607 ------------------------------------
1608 The directfb backend, though still unsupported, has seen a good deal
1609 of improvements. Thanks Vlad!
1610
1611 Bug fixing and optimizations
1612 ----------------------------
1613 xlib: Faster bookkeeping (Karl Tomlinson)
1614         https://bugzilla.mozilla.org/show_bug.cgi?id=453199#c5
1615
1616 PS: Fix gradients with non-constant alpha (Chris Wilson)
1617
1618 Fix deadlock in user-font code (Richard Hughes and Behdad Esfahbod)
1619         http://bugs.freedesktop.org/show_bug.cgi?id=16819
1620
1621 Countless other bugs have been fixed and optimizations made, many of
1622 them thanks to Chris Wilson. Thanks Chris and others!
1623
1624 Note also that the code that had been in cairo 1.7.x calling into
1625 freetype's optional lcd_filter function was removed from cairo before
1626 the 1.8.0 release. We do expect this code to come back in some form in
1627 the future.
1628
1629 Snapshot 1.7.6 (2008-09-17 Carl Worth <cworth@cworth.org>)
1630 ==========================================================
1631 The cairo community is happy to announce the 1.7.6 snapshot of the
1632 cairo graphics library. This is a "release candidate" for the upcoming
1633 1.8.0 release, so we will greatly appreciate any reports of problems
1634 in this release, and no major changes are currently planned before
1635 1.8.
1636
1637 Notable changes in 1.7.6
1638 ------------------------
1639 The largest number of changes since 1.7.4 did not change the
1640 implementation of cairo itself, but instead revamped cairo's build
1641 system. The primary goal of the revamp is to make the build system
1642 less fragile, (particularly for non-Linux platforms). For example, now
1643 people building on win32 will no longer need to maintain a
1644 platform-specific list of files to be built. Also, the .so file will
1645 now be installed with a different naming scheme, (for example, 1.7.6
1646 will install with a .10706 suffix). Much thanks, Behdad!
1647
1648 And, as usual, Chris Wilson has made another large round of robustness
1649 improvements, (eliminating dead code, fixing propagation of error
1650 status values, test suite improvements, etc. etc.). Thanks as always,
1651 Chris!
1652
1653 API changes since 1.7.4
1654 -----------------------
1655 There have been a few changes of API that was new during the 1.7
1656 series:
1657
1658 * Remove cairo_font_options_set_lcd_filter
1659    and cairo_font_options_get_lcd_filter
1660
1661   Motivation: At the Cairo Summit, this API was determined to be too
1662         specific to the freetype font backend to be in the general
1663         API. A similar API with a cairo_ft prefix might be introduced
1664         in the future. Note that cairo will still respect the
1665         corresponding fontconfig settings for these options.
1666
1667 * Replace cairo_has_show_glyphs
1668      with cairo_surface_has_show_glyphs
1669
1670   Motivation: This really is a surface-specific interface, and the
1671         convenience function on the cairo_t is not obviously
1672         necessary. An application can easily call:
1673
1674         cairo_surface_has_show_glyphs (cairo_get_target (cr));
1675
1676         as needed.
1677
1678 * Add cairo_text_cluster_flags_t
1679    to cairo_show_text_glyphs
1680       cairo_scaled_font_text_to_glyphs
1681       cairo_user_scaled_font_text_to_glyphs_func_t
1682
1683   Motivation: This flag, (and specifically the
1684         CAIRO_TEXT_CLUSTER_FLAG_BACKWARD value), replaces the
1685         cairo_bool_t backward argument in each of the above
1686         interfaces. This leads to more readable user code, and also
1687         allows future extensibility.
1688
1689 As always, there are no changes to any API from any major cairo
1690 release, (1.0.x, 1.2.x, 1.4.x, 1.6.x). Cairo maintains the same
1691 compatibility promise it always has.
1692
1693 Bug fixes since 1.7.4
1694 ---------------------
1695 xlib: Faster bookkeeping (Karl Tomlinson)
1696         https://bugzilla.mozilla.org/show_bug.cgi?id=453199#c5
1697
1698 PS: Fix gradients with non-constant alpha (Chris Wilson)
1699
1700 Fix deadlock in user-font code (Richard Hughes and Behdad Esfahbod)
1701         http://bugs.freedesktop.org/show_bug.cgi?id=16819
1702
1703 Several other minor fixes.
1704
1705 Snapshot 1.7.4 (2008-08-11 Behdad Esfahbod <behdad@behdad.org>)
1706 ===============================================================
1707 The cairo community is embarrassed to announce availability of the 1.7.4
1708 snapshot of the cairo graphics library.  This is a followup release to the
1709 1.7.2 snapshot to ship a tarball that can actually be built.  The only
1710 change since 1.7.4 is including the missing header file
1711 cairo-user-font-private.h in the distribution.
1712
1713 Snapshot 1.7.2 (2008-08-11 Behdad Esfahbod <behdad@behdad.org>)
1714 ===============================================================
1715 The cairo community is finally ready to announce availability of the 1.7.2
1716 snapshot of the cairo graphics library.  This is embarrassingly the first
1717 snapshot in the 1.7 unstable series of cairo, leading to the eventual release
1718 of cairo 1.8, currently planned for late September.
1719
1720 This snapshot comes four months after the 1.6.4 release.  We have done a
1721 really bad job on getting development snapshots out this cycle, but
1722 hopefully all the API changes for 1.8 are now finished and the remaining
1723 weeks will be spent on bug-fixing.  There is more than 400 commits worth
1724 of changes in this snapshot, and those can use some testing.  Read on!
1725
1726 Text, text, and more text!
1727 --------------------------
1728 The dominant theme of this release, and 1.8 in general, is improvements
1729 around cairo text API.  Here is a high-level list of changes with text
1730 handling:
1731
1732 User fonts
1733 ----------
1734 This is new API allowing the user of cairo API to provide drawings for glyphs
1735 in a font.  This is most useful in implementing fonts in non-standard formats,
1736 like SVG fonts and Flash fonts, but can also be used by games and other
1737 applications to draw "funky" fonts.  See test/user-font.c and
1738 test/user-font-proxy.c for usage examples.  This is based on early work by
1739 Kristian Høgsberg.  Thanks Kristian!
1740
1741 show_text_glyphs
1742 ----------------
1743 This new API allows the caller of cairo to mark text glyphs with their
1744 original text.  The PDF backend implements this new API and latest Pango
1745 master uses it.  The result is (when bugs are fixed) that complex text can be
1746 copied out of pangocairo's PDF output correctly and reliably.  There are bugs
1747 to fix though.  A few poppler bugs, and some more in cairo and pango.
1748
1749 To test show_text_glyph, just grab pango master and this cairo snapshot and
1750 print text in gedit.  Open in acroread or evince, select all, copy, paste
1751 in gedit and compare.  The Arabic text with diacritic marks is particularly
1752 showing bad.  Try with pango/pango-view/HELLO.txt if you are brave
1753 enough.  The Indic text is showing improvements, but is still coming out
1754 buggy.
1755
1756 LCD subpixel filtering using FreeType
1757 -------------------------------------
1758 FreeType 2.3.5 added support for various LCD subpixel filtering, and
1759 fontconfig 2.6.0 added support for configuring LCD filter on a font by font
1760 basis.  Cairo now relies on FreeType and fontconfig for subpixel filtering.
1761 This work is based on David Turner's original patch to cairo, maintained
1762 and tested by Sylvain Pasche and others.  Thanks all!
1763
1764 Toy font face constructor and getter
1765 ------------------------------------
1766 Mostly for API completion, but also useful for higher level (like Pango) to
1767 hook into what the user has set using cairo_select_font_face(), making that
1768 toy API a bit more useful.
1769
1770 FreeType: respecting FC_FT_FACE
1771 -------------------------------
1772 Previously it was impossible to instruct cairo to do emboldening on a font
1773 face object created from an FT_Face.  Cairo now respects and uses the
1774 FC_FT_FACE fontconfig pattern element, so emboldening can be achieved by
1775 using cairo_ft_font_face_create_for_pattern() and a carefully crafted pattern
1776 using FC_FT_FACE and FC_EMBOLDEN.
1777
1778
1779 PS/PDF: More efficient output
1780 -----------------------------
1781 Adrian Johnson has been busy fixing all kinds of bugs in PS and PDF
1782 backends, as well making them generate much more compact output by avoiding
1783 things like re-emitting the color or linestyle on every drawing operation.
1784 Thanks Adrian!
1785
1786
1787 Xlib: Dithering
1788 ---------------
1789 Cairo now does simple dithering when rendering to legacy X servers.  This is
1790 mostly visible with 8-bit visuals.
1791
1792 Xlib: Avoid rendering glyphs out of surface bounds
1793 --------------------------------------------------
1794 This seemingly harmless change manifested a bug with OpenOffice.org 3 versions
1795 where OO.o was passing bogus surface extents to cairo, resulting in no text
1796 rendered in OO.o.  Please contact your distro's OO.o maintainers if you see
1797 this bug and point them to the following URL:
1798
1799   https://bugs.freedesktop.org/show_bug.cgi?id=16209
1800
1801 Xlib: Improved performance with Xrender-less X servers
1802 ------------------------------------------------------
1803 Cairo now performs better on remote, Xrender-less X servers by being smarter
1804 about using X core protocol facilities instead of falling back to doing all
1805 rendering on the client side.
1806
1807
1808 Directfb: backend improvements
1809 ------------------------------
1810 The directfb backend, though still unsupported, has seen a good deal of
1811 improvements.  Thanks Vlad!
1812
1813
1814 Bug fixing and optimizations
1815 ----------------------------
1816 Countless bugs have been fixed and optimizations made, many of them thanks to
1817 Chris Wilson.  Thanks Chris!
1818
1819
1820 API additions
1821 -------------
1822
1823 cairo_show_text_glyphs
1824
1825   This is a new text rendering API.  Being a more advanced version of
1826   cairo_show_glyphs(), it is aimed for use by higher-level text toolkits like
1827   Pango, and enables better text extraction from output generated by backends
1828   like PDF and SVG.  The PDF backend already implements it, and the upcoming
1829   Pango release will use it.
1830
1831   To make that API work, a bunch of other additions were made:
1832
1833 cairo_glyph_allocate
1834 cairo_glyph_free
1835 cairo_text_cluster_t
1836 cairo_text_cluster_allocate
1837 cairo_text_cluster_free
1838 cairo_surface_has_show_text_glyphs
1839
1840
1841 cairo_user_font_face_create
1842
1843   This is the "user" font face constructor, accompanied by a variety of method
1844   signatures, getters, and setters for a callback-based font backend:
1845
1846 CAIRO_FONT_TYPE_USER
1847 cairo_user_scaled_font_init_func_t
1848 cairo_user_scaled_font_render_glyph_func_t
1849 cairo_user_scaled_font_text_to_glyphs_func_t
1850 cairo_user_scaled_font_unicode_to_glyph_func_t
1851 cairo_user_font_face_set_init_func
1852 cairo_user_font_face_set_render_glyph_func
1853 cairo_user_font_face_set_text_to_glyphs_func
1854 cairo_user_font_face_set_unicode_to_glyph_func
1855 cairo_user_font_face_get_init_func
1856 cairo_user_font_face_get_render_glyph_func
1857 cairo_user_font_face_get_text_to_glyphs_func
1858 cairo_user_font_face_get_unicode_to_glyph_func
1859
1860
1861 cairo_scaled_font_text_to_glyphs
1862
1863   We were previously reluctant to provide this function as text-to-glyphs
1864   support in cairo was limited to "toy" font functionality, not really
1865   interesting for real-world text processing.  However, with user-fonts
1866   landing, this API is needed to expose full access to how user-fonts
1867   convert text to glyphs.  This is expected to be used by text toolkits like
1868   Pango, as well as "proxy" user-font implementations.
1869
1870
1871 cairo_lcd_filter_t
1872 cairo_font_options_set_lcd_filter
1873 cairo_font_options_get_lcd_filter
1874
1875   These add the possibility to choose between various available LCD subpixel
1876   filters.  The available filter values are modeled after what FreeType
1877   provides.
1878
1879
1880 cairo_toy_font_face_create
1881 cairo_toy_font_face_get_family
1882 cairo_toy_font_face_get_slant
1883 cairo_toy_font_face_get_weight
1884
1885   These provide access to functionality and settings provided by
1886   cairo_select_font_face().
1887
1888
1889 cairo_scaled_font_get_scale_matrix
1890 cairo_surface_get_fallback_resolution
1891
1892   For API completeness.
1893
1894
1895 Various new values for cairo_status_t enum
1896
1897
1898 Known issues:
1899
1900 - Type3 fonts generated by cairo's PDF backend may show up in poppler/Evince
1901   in a different color than expected.  This is fixed in poppler master branch.
1902   This mostly affects cairo user fonts.  The test case test/user-font.c
1903   demonstrates this.
1904
1905 - User fonts using other fonts in their rendering are currently embedded in
1906   PDF as fallback bitmap glyphs.  This will be (hopefully) fixed before 1.8.
1907   The test case test/user-font-proxy.c demonstrates this.
1908
1909
1910 Release 1.6.4 (2008-04-11 Carl Worth <cworth@cworth.org>)
1911 =========================================================
1912 The cairo community is wildly embarrassed to announce the 1.6.4
1913 release of the cairo graphics library. This release reverts the xlib
1914 locking change introduced in 1.6.4, (and the application crashes that
1915 it caused).  The community would be glad to sack its current release
1916 manager and is accepting applications for someone who could do the job
1917 with more discipline.
1918
1919 Revert 'add missing locking in cairo-xlib'
1920 ------------------------------------------
1921 This change was introduced in cairo 1.6.2, but also introduced a bug
1922 which causes many cairo-xlib applications to crash, (with a
1923 segmentation fault inside of XSetClipMask). Instead of attempting
1924 another fix for the broken fix, the change in 1.6.2 has been
1925 reverted. The original bug which the change was addressing has been
1926 present since at least cairo 1.4, so it is not expected that leaving
1927 this bug unfixed will cause any new problems for applications moving
1928 from cairo 1.4 to cairo 1.6.
1929
1930 At this point, the code of cairo 1.6.4 differs from cairo 1.6.0 only
1931 in the fix for the PostScript-printer crashes.
1932
1933 Tweak build to avoid linking with g++
1934 -------------------------------------
1935 Cairo 1.6.4 avoids a quirk in automake that was causing the cairo
1936 library to be linked with g++ and linked against libstdc++ even when
1937 only C source files were compiled for the library.
1938
1939 Release 1.6.2 (2008-04-11 Carl Worth <cworth@cworth.org>)
1940 =========================================================
1941 The cairo community is pleased (but somewhat sheepish) to announce the
1942 1.6.2 release of the cairo graphics library. This is an update to
1943 yesterday's 1.6.0 release with an important fix to prevent cairo's
1944 PostScript output from crashing some printers. This release also
1945 includes a locking fix for cairo's xlib backend to improve thread
1946 safety. There are no changes beyond these two fixes.
1947
1948 Fix for PostScript printer crash
1949 --------------------------------
1950 Adrian Johnson discovered that cairo 1.6.0 was being a bit hard on
1951 PostScript printers, by changing the font matrix very frequently. This
1952 causes some PostScript interpreters to allocate new font objects every
1953 few glyphs, eventually exhausting available resources. The fix
1954 involves leaving translational components of the font matrix as zero,
1955 so that the PostScript interpreter sees an identical font matrix
1956 repeatedly, and can more easily share internal font object resources.
1957
1958 This fix has been tested to resolve the bugs posted here, (for both
1959 Xerox and Dell printers):
1960
1961         Printing some PDFs from evince is crashing our Xerox printer
1962         http://bugs.freedesktop.org/show_bug.cgi?id=15348
1963
1964         Cairo-generated postscript blocks Dell 5100cn
1965         http://bugs.freedesktop.org/show_bug.cgi?id=15445
1966
1967 Add missing locking in cairo-xlib
1968 ---------------------------------
1969 Chris Wilson noticed that cairo 1.6.0 was manipulating an internal
1970 cache of GC object within cairo's Xlib backend without proper
1971 locking. The missing locking could cause failures for multi-threaded
1972 applications. He fixed this in 1.6.2 by adding the missing locks.
1973
1974 Release 1.6.0 (2008-04-10 Carl Worth <cworth@cworth.org>)
1975 =========================================================
1976 The cairo community is quite pleased to announce the 1.6.0 release of
1977 the cairo graphics library. This is a major update to cairo, with new
1978 features and enhanced functionality which maintains compatibility for
1979 applications written using cairo 1.4, 1.2, or 1.0. We recommend that
1980 anybody using a previous version of cairo upgrade to cairo 1.6.0.
1981
1982 The most significant new features in this release are dramatically
1983 improved PDF and PostScript[*] output, support for arbitrary X server
1984 visuals (including PseudoColor), a new Quartz backend, and and a new
1985 "win32 printing" backend. See below for more details on these and
1986 other new features.
1987
1988 New dependency on external pixman library (Thanks, Søren!)
1989 ----------------------------------------------------------
1990 As of cairo 1.6, cairo now depends on the pixman library, for which
1991 the latest release can be obtained alongside cairo:
1992
1993         http://cairographics.org/releases/pixman-0.10.0.tar.gz
1994
1995 This library provides all software rendering for cairo, (the
1996 implementation of the image backend as well as any image fallbacks
1997 required for other backends). This is the same code that was
1998 previously included as part of cairo itself, but is now an external
1999 library so that it can be shared by both cairo and by the X server,
2000 (which is where the code originated).
2001
2002 Improved PDF, PostScript, and SVG output (Thanks, Adrian!)
2003 ----------------------------------------------------------
2004 Users of the cairo-pdf, cairo-ps, and cairo-svg should see a dramatic
2005 improvement from cairo 1.2/1.4 to 1.6. With this release there are now
2006 almost no operations that will result in unnecessary rasterization in
2007 the PDF and PostScript. Rasterized "image fallbacks" are restricted
2008 only to minimal portions of the document where something is being
2009 drawn with cairo that is beyond the native capabilities of the
2010 document, (this is rare for PDF or SVG, but occurs when blending
2011 translucent objects for PostScript).
2012
2013 This means that the final output will be of higher quality, and will
2014 also be much smaller, and therefore will print more quickly. The
2015 machinery for doing analysis and minimal fallbacks also benefits the
2016 win32-printing surface described below.
2017
2018 In addition to doing less rasterization, the PostScript and PDF output
2019 also has several other improvements to make the output more efficient
2020 and more compatible with specifications.
2021
2022 [*] Note: Just before this release, a bug has been reported that the
2023 PostScript output from cairo can crash some printers, (so far the
2024 following models have been reported as problematic Xerox Workcentre
2025 7228 or 7328 and Dell 5100cn). We will implement a workaround as soon
2026 as we can learn exactly what in cairo's output these printers object
2027 to, (and we could use help from users that have access to misbehaving
2028 printers). This bug is being tracked here:
2029
2030         Printing some PDFs from evince is crashing our Xerox printer
2031         http://bugs.freedesktop.org/show_bug.cgi?id=15348
2032
2033 New support for arbitrary X server visuals (Thanks, Keith and Behdad!)
2034 ----------------------------------------------------------------------
2035 As of cairo 1.6, cairo should now work with an arbitrary TrueColor or
2036 8-bit PseudoColor X server visual. Previous versions of cairo did not
2037 support these X servers and refused to draw anything. We're pleased to
2038 announce that this limitation has been lifted and people stuck with
2039 ancient display systems need no longer be stuck with ancient software
2040 just because of cairo.
2041
2042 New, supported Quartz backend for Mac OS X (Thanks, Brian and Vladimir!)
2043 ------------------------------------------------------------------------
2044 As of cairo 1.6, the cairo-quartz backend is now marked as "supported"
2045 rather than "experimental" as in previous cairo releases. Its API now
2046 has guarantees of API stability into future cairo releases, and its
2047 output quality is comparable to other backends. There have been
2048 significant improvements to cairo-quartz since 1.4. It now uses many
2049 fewer image fallbacks, (meaning better performance), and has greatly
2050 improved text rendering.
2051
2052 New, "win32 printing" backend (Thanks, Adrian and Vladimir!)
2053 ------------------------------------------------------------
2054 A new win32-printing surface has been added with an interface very
2055 similar to the original win32 surface, (both accept an HDC
2056 parameter). But this new surface should only be called with a printing
2057 DC, and will result in all drawing commands being stored into a
2058 meta-surface and emitted after each page is complete. This allows
2059 cairo to analyze the contents, (as it does with PDF, PostScript, and
2060 SVG backends), and to do minimal image-based fallbacks as
2061 necessary. The analysis keeps things as efficient as possible, while
2062 the presence of fallbacks, (when necessary), ensure the consistent,
2063 high-quality output expected from cairo.
2064
2065 Robustness fixes (Thanks, Chris!)
2066 ---------------------------------
2067 There has been a tremendous number of improvements to cairo's
2068 robustness. Areas that have been improved include:
2069
2070         * Proper reporting of errors
2071
2072         * Responding correctly to invalid input
2073
2074         * Avoiding integer overflows
2075
2076         * Avoiding memory leaks on error-recovery paths
2077
2078         * Making reference counting thread safe
2079
2080         * Exhaustive testing of memory allocation points
2081
2082 Other fixes (Thanks, everybody!)
2083 --------------------------------
2084 Cairo's internal fixed-point representation has been changed from
2085 16.16 to 24.8. This has a direct impact on applications as it allows
2086 much larger objects to be drawn before internal limits in cairo make
2087 the drawing not work.
2088
2089 The CAIRO_EXTEND_PAD mode is now fully supported by surface
2090 patterns. This mode allows applications to use cairo_rectangle and
2091 cairo_fill to draw scaled images with high-quality bilinear filtering
2092 for the internal of the image, but without any objectionably blurry
2093 edges, (as would happen with the default EXTEND_NONE and cairo_paint).
2094
2095 Rendering with CAIRO_ANTIALIAS_NONE has been fixed to be more
2096 predictable, (previously image rendering and geometry rendering would
2097 be slightly misaligned with respect to each other).
2098
2099 The reference manual at http://cairographics.org/manual now documents
2100 100% of the functions and types in cairo's public API.
2101
2102 API additions
2103 -------------
2104 Several small features have been added to cairo with new API functions:
2105
2106 cairo_format_stride_for_width
2107
2108     Must be called to compute a properly aligned stride value before
2109     calling cairo_image_surface_create_for_data.
2110
2111 cairo_has_current_point
2112
2113     Allows querying if there is a current point defined for the
2114     current path.
2115
2116 cairo_path_extents
2117
2118     Allows querying for path extents, (independent of any fill or
2119     stroke parameters).
2120
2121 cairo_surface_copy_page
2122 cairo_surface_show_page
2123
2124     Allow beginning a new document page without requiring a cairo_t
2125     object.
2126
2127 cairo_ps_surface_restrict_to_level
2128 cairo_ps_get_levels
2129 cairo_ps_level_to_string
2130 cairo_ps_surface_set_eps
2131
2132     Allow controlling the Post PostScript level, (2 or 3), to
2133     target, as well as to generate Encapsulated PostScript (EPS).
2134
2135 cairo_quartz_font_face_create_for_cgfont
2136
2137     Create a quartz-specific cairo_font_face_t from a CGFontRef.
2138
2139 cairo_win32_font_face_create_for_logfontw_hfont
2140
2141     Create a win32-specific cairo_font_face from a LOGFONTW and an
2142     HFONT together.
2143
2144 Thanks, Everyone!
2145 -----------------
2146 I've accounted for 32 distinct people with attributed code added to
2147 cairo between 1.4.14 and 1.6.0, (their names are below). That's an
2148 impressive number, but there are certainly dozens more that
2149 contributed with testing, suggestions, clarifying questions, and
2150 encouragement. I'm grateful for the friendships that have developed as
2151 we have worked on cairo together. Thanks to everyone for making this
2152 all so much fun!
2153
2154 Adrian Johnson, Alp Toker, Antoine Azar, Behdad Esfahbod,
2155 Benjamin Otte, Bernardo Innocenti, Bertram Felgenhauer,
2156 Boying Lu, Brian Ewins, Carl Worth, Chris Heath, Chris Wilson,
2157 Claudio Ciccani, Emmanuel Pacaud, Jeff Muizelaar, Jeremy Huddleston,
2158 Jim Meyering, Jinghua Luo, Jody Goldberg, Jonathan Gramain,
2159 Keith Packard, Ken Herron, Kouhei Sutou, Kristian Høgsberg,
2160 Larry Ewing, Martin Ejdestig, Nis Martensen, Peter Weilbacher,
2161 Richard Hult, Shailendra Jain, Søren Sandmann Pedersen,
2162 Vladimir Vukicevic
2163
2164 Snapshot 1.5.20 (2008-04-04 Carl Worth <cworth@cworth.org>)
2165 ===========================================================
2166 This is the tenth snapshot in cairo's unstable 1.5 series. It comes
2167 just two days (and only one working day) after the 1.5.18
2168 snapshot. The quick snapshot is due to two embarrassing bugs (both
2169 affecting cairo-xlib) that had been introduced in the 1.5.18
2170 snapshot. The fixes for these are described below along with a few
2171 other fixes, (which hopefully aren't introducing new bugs this time).
2172
2173 cairo-xlib
2174 ----------
2175 Revert fix from 1.5.18 to allow pattern expansion based on the filter
2176 mode. This fix seemed so boring, (the use case it addresses is almost
2177 never used in practice), that it didn't even get mentioned in the
2178 1.5.18 release notes. However, the "fix" happened to break rendering
2179 that is always used resulting in corrupt image rendering in mozilla,
2180 evolution, and probably everything else that uses cairo.
2181
2182 Fix to avoid BadMatch errors in cairo_surface_create_similar. These
2183 were introduced, (inadvertently, of course), as part of the fix in
2184 1.5.18 for creating similar surfaces without the Render
2185 extension. Again, thanks to mozilla, (and Vladimir Vukicevic in
2186 particular), for noticing our mistake.
2187
2188 general
2189 -------
2190 Correctly handle an in-error surface in
2191 cairo_surface_write_to_png. Previously this function would cause an
2192 assertion failure if you gave it a finished surface. Now it cleanly
2193 returns a CAIRO_STATUS_SURFACE_FINISHED result instead.
2194
2195 Avoid potentially infinite wandering through memory inside
2196 _cairo_hull_prev_valid. Thanks to Jonathan Watt for noticing this
2197 problem:
2198
2199         https://bugzilla.mozilla.org/show_bug.cgi?id=306649#c21
2200
2201 cairo-pdf
2202 ---------
2203 Fix generation of "soft" masks made by drawing to a similar surface
2204 and then calling cairo_mask_surface() with it.
2205
2206 cairo-svg
2207 ---------
2208 Fix for code that uses cairo_mask() on an intermediate surface which
2209 is later passed to cairo_mask_surface().
2210
2211 Snapshot 1.5.18 (2008-04-05 Carl Worth <cworth@cworth.org>)
2212 ===========================================================
2213 This is the ninth snapshot in cairo's unstable 1.5 series. It comes
2214 just 4 days after the 1.5.16 snapshot. We had hoped to not need
2215 another snapshot before the final 1.6.0 release, but several critical
2216 bugs were found and fixed in the last few days, so we thought it
2217 important to let people test the fixes with this snapshot. See below
2218 for details.
2219
2220 documentation
2221 -------------
2222 The README now lists necessary dependencies.
2223
2224 Various graphics state defaults are now documented, (source pattern is
2225 opaque black, line width is 2.0, line join is miter, line cap is butt,
2226 miter limit is 10.0, etc.).
2227
2228 general
2229 -------
2230 Several cleanups have been made along many error-path returns,
2231 (carefully propagating up the original error status values, cleaning
2232 up memory leaks during error recovery, etc.). This is yet another in
2233 Chris "ickle" Wilson's long series of error-handling cleanups during
2234 the 1.5 series.
2235
2236 Avoid undesired clipping when drawing scaled surface patterns with
2237 bilinear filtering.
2238
2239 cairo-pdf
2240 ---------
2241 Fix emission of 1-bit alpha masks in PDF output.
2242
2243 Fix a bug that would cause glyphs to be misplaced along the Y axis:
2244
2245     http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%23474136
2246
2247     Originally, an issue about a crash, but later leading to the
2248     misplaced glyphs issue being discovered.
2249
2250 cairo-ps
2251 --------
2252 Fix misplaced glyphs in cairo's PostScript output.
2253
2254     This issue occurs when consecutive glyphs are placed far
2255     apart. This case is exercised by the new ft-show-glyphs-table test
2256     case, which was originally inspired by the Debian bug #23474136
2257     mentioned above.
2258
2259 Fix more misplaced glyphs in cairo's PostScript output:
2260
2261     The issue here showed up under very particular circumstance, (when
2262     converting a PDF file with a CFF font with CID Identity-H encoding
2263     and using glyph 0, (defined by the CFF specification as .notdef)
2264     as a space instead). More concretely, this problem appeared when
2265     converting the UbuntuDesktop.pdf file mentioned in this bug
2266     report:
2267
2268         https://bugs.freedesktop.org/show_bug.cgi?id=15348#c3
2269
2270     As usual with arcane font-encoding-specific bugs like this, many
2271     thanks to Adrian Johnson for his magical ability to dive into
2272     specifications and emerge almost instantaneously with fixes. And
2273     thanks to Sebastien Bacher for bringing the bug to our attention.
2274
2275 cairo-xlib
2276 ----------
2277 Fix serious failure on X servers without the Render extension.
2278
2279     Since the 1.5.14 snapshot (with support for PseudoColor visuals),
2280     any application attempting to create a "similar" xlib surface would
2281     fail on an X server without the Render extension. Thanks to
2282     Frederic Crozat for pointing out that cairo's test suite was
2283     entirely failing when run against Xvfb.
2284
2285 Avoid crashing cairo-xlib applications for too-large glyphs
2286
2287     Naively sending glyphs of any size to the X server will eventually
2288     violate the X limit on maximum request sizes. We now properly
2289     detect when a glyph would be too large and use existing fallbacks
2290     to render the glyph rather than trying to send it to the X server.
2291
2292 Enable the buggy_repeat workaround for Xorg servers < 1.4
2293
2294     We have determined that Xorg 1.3.0 (as packaged in Fedora 8 at
2295     least) has a bug that can result in an X server crash when cairo
2296     uses certain X Render repeat operations, (as exercised by cairo's
2297     extend-reflect test). We avoid this crash by using fallbacks
2298     whenever a repeating surface is needed for any Xorg server with a
2299     version less than 1.4. This is slower, but should prevent the
2300     crash.
2301
2302     (Meanwhile, there appears to be a separate bug where some X
2303     servers or specific X-server drivers will use random pixmap data
2304     when asked to draw a repeating surface. The buggy_repeat
2305     workaround would also avoid those problems, but we have not yet
2306     characterized whether the new "version < 1.4" is a good
2307     characterization of those problems or not.)
2308
2309 cairo-quartz-font
2310 -----------------
2311 Implement cairo_font_extents for this backend.
2312
2313 The cairo-quartz-font implementation added in the 1.5.14 snapshot was
2314 entirely missing support for the cairo_font_extents function. Thanks to
2315 Richard Hult for pointing out this obvious shortcoming, (and obvious
2316 lack of coverage in our test suite):
2317
2318         CGFont backend returns 0 font extents
2319         https://bugs.freedesktop.org/show_bug.cgi?id=15319
2320
2321 Snapshot 1.5.16 (2008-04-01 Carl Worth <cworth@cworth.org>)
2322 ===========================================================
2323 This is the eighth snapshot in cairo's unstable 1.5 series. It comes
2324 less than two weeks after the 1.5.14 snapshot and it really is a
2325 legitimate snapshot, (in spite of sharing this date with that of many
2326 bogus announcements). The major change in this snapshot is that the
2327 cairo-quartz backend is now officially "supported", including new API
2328 to construct a font face from a CGFontRef . Also several bug fixes
2329 have been fixed in many backends. See below for details.
2330
2331 general
2332 -------
2333 Cairo now depends on pixman 0.10.0 which was recently released. The
2334 latest pixman release can always be found alongside cairo releases at:
2335
2336    http://cairographics.org/releases
2337
2338 Increase the precision of color stops for gradients. This fixes a
2339 regression in gradient rendering that had been present since the
2340 1.5.12 snapshot.
2341
2342 paginated (all of ps, pdf, svg, and win32-printing)
2343 ---------------------------------------------------
2344 Fix assertion failure when some drawing elements are outside the page
2345 boundaries, (this bug was noticed when using Inkscape to print a
2346 drawing with landscape orientation to a portrait-oriented piece of
2347 paper).
2348
2349 cairo-ps
2350 --------
2351 Fix of bug causing incorrect glyph positioning.
2352
2353 Fix handling of CAIRO_OPERATOR_SOURCE.
2354
2355 cairo-pdf
2356 ---------
2357 More reduction of unnecessary digits of precision in PDF output.
2358
2359 Fix handling of CAIRO_OPERATOR_SOURCE.
2360
2361 cairo-svg
2362 ---------
2363 Fix bug in usage of libpng that was preventing cairo_mask from working
2364 with the svg backend.
2365
2366 Fix transformation of source pattern for cairo_stroke().
2367
2368 cairo-win32-printing
2369 --------------------
2370 Fix fallback resolution, (thanks again to inkscape users/developers
2371 for helping us find this one).
2372
2373 cairo-quartz
2374 ------------
2375 Mark the cairo-quartz backend as "supported" rather than
2376 "experimental". This means the following:
2377
2378     * The backend will now be built by default (if possible).
2379
2380     * We are committing that the backend-specific API (as published in
2381       cairo-quartz.h) are stable and will be supported in all future
2382       cairo 1.x releases.
2383
2384     * We are committing that the output quality of this backend
2385       compares favorably with other cairo backends, (and that quality
2386       is ensured by good results from the cairo test suite).
2387
2388     * We recommend that distributions build and distribute this
2389       backend when possible.
2390
2391 Note that the cairo_quartz_image API (in cairo-quartz-image.h) is
2392 still experimental, will not build by default, (pass
2393 --enable-quartz-image to configure to build it), and may see API
2394 changes before it is marked as "supported" in a future release.
2395
2396 Put the CAIRO_FONT_TYPE_ATSUI name back into
2397 cairo-deprecated.h. Without this, the cairo 1.5.14 snapshot broke all
2398 builds for applications using the C++ cairomm bindings (and perhaps
2399 others) which have the CAIRO_FONT_TYPE_ATSUI name in their header
2400 files. This breakage happened even for applications not using
2401 cairo-quartz at all.
2402
2403     Note: Even though the CAIRO_FONT_TYPE_ATSUI name is provided to
2404     avoid this build breakage, we still recommend that bindings and
2405     applications move to the new, and more accurate,
2406     CAIRO_FONT_TYPE_QUARTZ name.
2407
2408 Replace the implementation of cairo-quartz-font to use CFFont instead
2409 of ATSUI. The CGFont API is a better fit than ATSUI, and this new
2410 implementation is also more correct than the old one as well.
2411
2412 This also adds the following new API call:
2413
2414         cairo_public cairo_font_face_t *
2415         cairo_quartz_font_face_create_for_cgfont (CGFontRef font);
2416
2417 The previous cairo_quartz_font_face_create_for_atsu_font_id function
2418 continues to exist and is part of the supported API going
2419 forward. (However, the old name of that same function, which was
2420 cairo_atsui_font_face_create_for_atsu_font_id is officially
2421 deprecated. Any source code using the old name should be updated to
2422 use the new name.)
2423
2424 Fix transformation of source pattern for cairo_stroke().
2425
2426 cairo-win32
2427 -----------
2428 Avoid crash in create_similar is cairo_win32_surface_create fails.
2429
2430 Snapshot 1.5.14 (2008-03-20 Carl Worth <cworth@cworth.org>)
2431 ===========================================================
2432 This is the seventh snapshot in cairo's unstable 1.5 series. It comes
2433 3 weeks after the 1.5.12 snapshot. This snapshot includes support for
2434 arbitrary X server visuals, (including PseudoColor), which was the
2435 final remaining cairo-specific item on the cairo 1.6 roadmap. It also
2436 includes a huge number of improvements to the cairo-quartz backend. So
2437 this is effectively a cairo 1.6 release candidate. We expect very few
2438 changes from now until 1.6 and only for specific bug fixes.
2439
2440 API Change
2441 ----------
2442 Rename ATSUI font backend to Quartz font backend. This affects the
2443 following usage:
2444
2445         --enable-atsui          -> --enable-quartz-font
2446         CAIRO_HAS_ATSUI_FONT    -> CAIRO_HAS_QUARTZ_FONT
2447         CAIRO_FONT_TYPE_ATSUI   -> CAIRO_FONT_TYPE_QUARTZ
2448
2449         cairo_atsui_font_face_create_for_atsu_font_id ->
2450         cairo_quartz_font_font_create_for_atsu_font_id
2451
2452 This API change is justified by the cairo-quartz backend still be
2453 marked as "experimental" rather than "supported", (though this is one
2454 step toward making the change to "supported" before 1.6). Cairo will
2455 still provide ABI compatibility with the old symbol name, however.
2456
2457 paginated (all of ps, pdf, svg, and win32-printing)
2458 ---------------------------------------------------
2459 Optimize by not analyzing an image surface for transparency more than
2460 once, (previously all images were analyzed twice).
2461
2462 cairo-ps and cairo-pdf
2463 ----------------------
2464 Avoiding emitting a matrix into the stroke output when unnecessary,
2465 (making output size more efficient).
2466
2467 Reduce rounding error of path shapes by factoring large scale factors
2468 out of the path matrix, (ensuring that a fixed-number of printed
2469 digits for path coordinates contains as much information as possible).
2470
2471 Reduce excess digits for text position coordinates. This makes the
2472 output file size much smaller without making the result any less
2473 correct.
2474
2475 cairo-ps
2476 --------
2477 Eliminate bug causing extraneous text repetition on Linux PostScript
2478 output in some cases.
2479
2480         See: Mozilla Bug 419917 – Printed page contents are reflected
2481         inside bordered tables (Linux-only)
2482
2483         https://bugzilla.mozilla.org/show_bug.cgi?id=419917
2484
2485 Optimize output when EXTEND_PAD is used.
2486
2487 cairo-pdf
2488 ---------
2489 Fix to not use fill-stroke operator with transparent fill, (else PDF
2490 output doesn't match the cairo-defined correct result). See:
2491
2492         https://bugs.launchpad.net/inkscape/+bug/202096
2493
2494 cairo-svg
2495 ---------
2496 Fix stroke of path with a non-solid-color source pattern:
2497
2498         http://bugs.freedesktop.org/show_bug.cgi?id=14556
2499
2500 cairo-quartz
2501 ------------
2502 Fix text rendering with gradient or image source pattern.
2503
2504 Handling antialiasing correctly for cairo_stroke(), cairo_clip(), and
2505 cairo_show_text()/cairo_show_glyphs().
2506
2507 Correctly handle gradients with non-identity transformations:
2508
2509         Fixes http://bugs.freedesktop.org/show_bug.cgi?id=14248
2510
2511 Add native implementation of REPEAT and REFLECT extend modes for
2512 gradients.
2513
2514 Fix implementation for the "unbounded" operators, (CAIRO_OPERATOR_OUT,
2515 _IN, _DEST_IN, and _DEST_ATOP).
2516
2517 Correctly handle endiannees in multi-architecture compiles on Mac OS
2518 X.
2519
2520 Avoid behavior which would cause Core Graphics to print warnings to
2521 the console in some cases.
2522
2523 cairo-win32
2524 -----------
2525 Fix handling of miter limit.
2526
2527 cairo-win32-printing
2528 --------------------
2529 Fix to not use a 1bpp temporary surface in some cases while printing,
2530 (so grayscale data is preserved rather than just becoming black and
2531 white).
2532
2533 cairo-xlib
2534 ----------
2535 Add support for rendering to arbitrary TrueColor X server
2536 visuals. This fixes at least the following bugs:
2537
2538         cairo doesn't support 8-bit truecolor visuals
2539         https://bugs.freedesktop.org/show_bug.cgi?id=7735
2540
2541         cairo doesn't support 655 xlib format
2542         https://bugs.freedesktop.org/show_bug.cgi?id=9719
2543
2544 Add support for rendering to 8-bit PseudoColor X server visuals. This
2545 fixes the following bug:
2546
2547         Cairo doesn't support 8-bit pseudocolor visuals
2548         https://bugs.freedesktop.org/show_bug.cgi?id=4945
2549
2550 Snapshot 1.5.12 (2008-02-28 Carl Worth <cworth@cworth.org>)
2551 ===========================================================
2552 This is the sixth snapshot in cairo's unstable 1.5 series. It comes 1
2553 week after the 1.5.10 snapshot. This snapshot includes the
2554 long-awaited change from 16.16 to 24.8 fixed-point values, (see below
2555 for why you should care).  It also includes several backend-specific
2556 bug fixes.
2557
2558 24.8 fixed-point format
2559 -----------------------
2560 Cairo has always converted path coordinates to a fixed-point
2561 representation very early in its processing. Historically, this has
2562 been a 32-bit representation with 16 bits of integer for the
2563 device-pixel grid and 16 bits of sub-pixel positioning. The choice of
2564 16 bits for the integer coordinate space was based on the 16-bit limit
2565 for X Window drawables.
2566
2567 This 16-bit limit has proven problematic for many applications. It's
2568 an especially vexing problem when targeting non-X backends that don't
2569 have any 16-bit restriction. But even when targeting cairo-xlib, it's
2570 often desirable to draw a large shape, (say a background rectangle),
2571 that extends beyond the surface bounds and expect it to fill the
2572 surface completely, (rather than overflowing and triggering random
2573 behavior).
2574
2575 Meanwhile, nobody has ever really needed 16 bits of sub-pixel
2576 precision.
2577
2578 With this snapshot, the fixed-point system is still in place and is
2579 still using a 32-bit representation, (future versions of cairo might
2580 move entirely to floating-point when targeting PDF output for
2581 example). But the representation now provides 24 bits of pixel
2582 addressing and only 8 bits of sub-pixel positioning. This should give
2583 a much less stifling space to many applications.
2584
2585 However, the underlying pixman library still has 16-bit limitations in
2586 many places, (it has its roots in the X server as well). Until those
2587 are also fixed, applications targeting cairo image surfaces, or
2588 hitting software fallbacks when targeting other surfaces will still
2589 encounter problems with device-space values needing more than 16
2590 integer bits.
2591
2592 generic fixes
2593 -------------
2594 Add a few tests to the test suite to increase coverage.
2595
2596 Cleanup a few error-handling paths, (propagate error correctly).
2597
2598 cairo-ft
2599 --------
2600 Fix handling of font sizes smaller than 1 device pixel.
2601
2602 cairo-pdf
2603 ---------
2604 Fix to properly save/restore clip when analyzing meta-surface
2605 patterns, (fixing a couple of test-suite failures).
2606
2607 Implement native support for CAIRO_OPERATOR_SOURCE when the source
2608 pattern is opaque.
2609
2610 Emit rectangles as PDF rectangles ("re" operator) rather than as
2611 general paths.
2612
2613 cairo-ps
2614 --------
2615 Fix to work properly with the 16.16->24.8 change.
2616
2617 cairo-svg
2618 ---------
2619 Fix CAIRO_EXTEND_REFLECT by using an image fallback, (there's no
2620 direct SVG support for reflected patterns).
2621
2622 Fix the use of alpha-only masks, (such as CAIRO_FORMAT_A8).
2623
2624 cairo-quartz
2625 ------------
2626 Add new API for efficiently using image data as a source:
2627
2628         cairo_surface_t *
2629         cairo_quartz_image_surface_create (cairo_surface_t *image_surface);
2630
2631         cairo_surface_t *
2632         cairo_quartz_image_surface_get_image (cairo_surface_t *surface);
2633
2634 For full documentation, see:
2635
2636         http://cairographics.org/manual/cairo-Quartz-Surfaces.html#cairo-quartz-image-surface-create
2637
2638 Several fixes for cairo_mask().
2639
2640 cairo-atsui
2641 -----------
2642 Change default from from Monaco to Helvetica to be more consistent
2643 with other font backends.
2644
2645 Snapshot 1.5.10 (2008-02-20 Carl Worth <cworth@cworth.org>)
2646 ===========================================================
2647 This is the fifth snapshot in cairo's unstable 1.5 series. It comes 3
2648 weeks after the 1.5.8 snapshot. This snapshot adds one new API
2649 function, (cairo_has_current_point), and the usual mix of
2650 improvements, (more efficient PostScript/PDF output, optimized
2651 stroking), and fixes (more robust error-handling, etc.). See below for
2652 details.
2653
2654 New API
2655 -------
2656 Add a new function to query if there is a current point:
2657
2658         cairo_bool_t
2659         cairo_has_current_point (cairo_t *cr);
2660
2661 There is no current point immediately after cairo_create(), nor after
2662 cairo_new_path() or cairo_new_sub_path(). There is a current point
2663 after any of the path-creation functions, (cairo_move_to,
2664 cairo_line_to, cairo_curve_to, etc.).
2665
2666 With this new function, we also revert the change of the return type
2667 of cairo_get_current_point from cairo 1.5.8, (it's now a void function
2668 again).
2669
2670 Optimizations
2671 -------------
2672 Optimize stroking code to avoid repeated calculation of redundant
2673 values, (particularly significant for very large, offscreen paths).
2674
2675 General fixes
2676 -------------
2677 Patch a few more potential buffer overruns, (due to integer
2678 overflow).
2679
2680 Many fixes and improvements to cairo's error-handling, (ensure that
2681 correct error values are returned, clean up memory leaks on
2682 error-handling paths, etc.).
2683
2684 Fix a potential infinite loop when stroking a spline with a pen that
2685 has been transformed to a line segment.
2686
2687 Remove treating NULL as a synonym for a valid cairo_font_options_t*
2688 with default values, (a change that had been introduced as of cairo
2689 1.5.8).
2690
2691 Remove the altered handling of tolerance and fallback-resolution that
2692 had been introduced as of cairo 1.5.4.
2693
2694 cairo-xlib
2695 ----------
2696 Pass the original Drawable, (as opposed to the root window), to
2697 XCreatePixmap when creating a similar surface. This gives the X server
2698 more information so that it can be clever and efficient.
2699
2700 cairo-pdf
2701 ---------
2702 Fix the rendering of repeating and reflecting patterns.
2703
2704 Ensure miter limit is always >= 1, (smaller limits are not meaningful,
2705 but they can cause some PDF viewers to fail to display pages).
2706
2707 Generate more efficient output when the same path is used for both
2708 fill and stroke.
2709
2710 cairo-ps
2711 --------
2712 Start sharing much of the cairo-pdf code rather than implementing very
2713 similar code in cairo-ps.
2714
2715 Implement native support for repeating and reflecting linear
2716 gradients.
2717
2718 Implement reflected surface patterns.
2719
2720 Ensure miter limit is always >= 1, (smaller limits are not meaningful,
2721 but they can cause some PostScript viewers to crash).
2722
2723 Generate PostScript that will perform more efficiently and use less
2724 memory on printers, (use currentfile instead of a giant string array
2725 for image data, and avoid using PostScript patterns for paint() and
2726 fill() when possible).
2727
2728 cairo-svg
2729 ---------
2730 Avoid unnecessary rasterization when copying a "similar" surface to
2731 another svg surface, (allow the SOURCE operator to be implemented with
2732 all-vector operations if there are no underlying objects).
2733
2734 cairo-atsui
2735 -----------
2736 Eliminate infinite loop when attempting to render an empty string.
2737
2738 Snapshot 1.5.8 (2008-01-30 Carl Worth <cworth@cworth.org>)
2739 ==========================================================
2740 This is the fourth snapshot in cairo's unstable 1.5 series. It comes 2
2741 weeks after the 1.5.6 snapshot. It adds a few new API functions. Most
2742 notably all callers of cairo_image_surface_create_for_data should now
2743 be calling cairo_format_stride_for_width to compute a legal stride
2744 value. See below for more details.
2745
2746 New API in cairo 1.5.8
2747 ----------------------
2748 We've added a new function that should be called to compute a legal
2749 stride value before allocating data to be used with
2750 cairo_image_surface_create_for_data:
2751
2752         int
2753         cairo_format_stride_for_width (cairo_format_t   format,
2754                                        int              width);
2755
2756 We've also added a new cairo_path_extents function that can be used to
2757 compute a bounding box for geometry such as a single line segment,
2758 (contrast with cairo_path_extents and cairo_stroke_extents):
2759
2760         void
2761         cairo_path_extents (cairo_t *cr,
2762                             double *x1, double *y1,
2763                             double *x2, double *y2);
2764
2765 And finally, we've added a function to allow for querying the
2766 XRenderPictFormat of a cairo-xlib surface:
2767
2768         XRenderPictFormat *
2769         cairo_xlib_surface_get_xrender_format (cairo_surface_t *surface);
2770
2771 API changes
2772 -----------
2773 Fix return types of cairo_surface_show_page and
2774 cairo_surface_copy_page. This is an API change to functions that are
2775 new in the 1.5 series, so not an API break compared to any stable
2776 cairo release, (1.0.x, 1.2.x, 1.4.x).
2777
2778 Change the return type of cairo_get_current_point() from void to
2779 cairo_status_t. This allows the caller to receive a
2780 CAIRO_STATUS_NO_CURRENT_POINT value to distinguish the a current point
2781 at the origin from no current point existing.
2782
2783 Performance improvement
2784 -----------------------
2785 Improve performance of clipping by using an optimized code path
2786 internally, (with the ADD operator instead of IN).
2787
2788 General bug fixes
2789 -----------------
2790 Fix various cairo_*_extents functions to initialize the return-value
2791 variables even in the case of a cairo_t in error.
2792
2793 Treat NULL as a legitimate value for cairo_font_options_t*. [NOTE:
2794 On discussion afterwards, we decided against this change so it has
2795 been removed as of cairo 1.5.10.]
2796
2797 Fix rendering with CAIRO_ANTIALIAS_NONE to be more predictable, (that
2798 is, to avoid seams appearing when geometry and imagery share an
2799 identical edge). Portions of this fix are in the pixman library and
2800 will appear in a future release of that library.
2801
2802 Avoid triggering an error for a font size of 0.
2803
2804 Miscellaneous changes
2805 ---------------------
2806 Require pixman >= 0.9.6.
2807
2808 There has been a tremendous amount improvement to cairo's
2809 documentation. We're delighted that 100% of the public API has at
2810 least some documentation in the API reference manual. Many thanks to
2811 Behdad Esfahbod and Nis Martensen for leading this effort.
2812
2813 cairo-pdf and cairo-ps
2814 ----------------------
2815 Eliminate failure when a Type 1 font is embedded with an explicit
2816 glyph 0.
2817
2818 cairo-pdf
2819 ---------
2820 Implement a more correct and more efficient approach for patterns with
2821 an extend mode of CAIRO_EXTEND_REFLECT.
2822
2823 cairo-ps
2824 --------
2825 Fix image masks to properly pack and pad mask bits.
2826
2827 cairo-quartz
2828 ------------
2829 Take care to only use DrawTiledImage for integer-aligned images, (and
2830 use slower paths to get the correct result in other cases).
2831
2832 cairo-win32
2833 -----------
2834 Fix for older versions of mingw.
2835
2836 Improve the handling of the clipping with the win32 and win32-printing
2837 surfaces.
2838
2839 Fix rendering of non black/white text.
2840
2841 Snapshot 1.5.6 (2008-01-15 Carl Worth <cworth@cworth.org>)
2842 ==========================================================
2843 This is the third snapshot in cairo's unstable 1.5 series. It comes
2844 about 6 weeks after the 1.5.4 snapshot. The only API addition compared
2845 to 1.5.4 is very minor, (a new value CAIRO_STATUS_TEMP_FILE_ERROR).
2846 The remainder of the changes are the usual accumulation of bug fixes
2847 and improvements. See below for details.
2848
2849 General bug fixes
2850 -----------------
2851 Fix handling of fonts that contain a mixture of outline and bitmapped
2852 glyphs. There was a change in this handling in 1.5.4 that improved
2853 some cases and also regressed other cases. Now, all cases should be
2854 handled quite well.
2855
2856 Fix alignment issues that were causing SIGBUS failures on SPARC.
2857
2858 Fix a regression (which first appeared in 1.5.2) where stroking under
2859 a large scale would sometimes incorrectly replace a miter join with a
2860 bevel join. (Thanks to Keith Packard.)
2861
2862 Fix reporting of zero-sized extents to be {0,0} rather than
2863 {INT_MAX,INT_MIN}. This avoids several integer overflow and
2864 allocations of massive regions in some cases.
2865
2866 Fix failures of gradients with no stops, (quartz, ps, and pdf).
2867
2868 Fix handling of Type 1 fonts on Windows platforms.
2869
2870 Fix handling of Type 1 fonts with no specific family name in the font
2871 itself, (generate a CairoFont-x-y name).
2872
2873 Handle NULL string values in cairo_show_text, cairo_show_glyphs, and
2874 friends.
2875
2876 Many robustness improvements along error-handling paths, (thanks as
2877 always, to Chris "ickle" Wilson).
2878
2879 Various other minor fixes.
2880
2881 Paginated backends (PDF/PostScript/win32-printing)
2882 --------------------------------------------------
2883 Avoid unnecessary rasterization when using a paginated surface as a
2884 source, (such as drawing from one pdf surface to another).
2885
2886 Fix replaying of paginated surface with more than one level of push/pop
2887 group.
2888
2889 cairo-xlib
2890 ----------
2891 Fix xlib backend to not consider recent X server release as having a
2892 buggy repeat implementation in the Render extension.
2893
2894 cairo-pdf
2895 ---------
2896 Fix PDF output to avoid triggering very slow rendering in PDF viewers,
2897 (avoid starting and stopping the content stream for each pattern
2898 emission).
2899
2900 Support CAIRO_OPERATOR_SOURCE in cases where there is nothing below
2901 the object being drawn.
2902
2903 Fix to avoid seams appearing between multiple fallback regions.
2904
2905 cairo-ps (PostScript)
2906 ---------------------
2907 Use correct bounding box in Type 3 fonts.
2908
2909 Fix several bugs in cairo's PostScript output. These include making
2910 the PostScript output more compatible with recent versions of
2911 ghostscript that are more strict about Type 3 fonts, for
2912 example.
2913
2914 Fix for win32 to not attempt to create temporary files in the root
2915 directory, (where the user may not have write permission).
2916
2917 Avoid generating Level 3 PostScript if Level 2 is sufficient. Also,
2918 add code in output documents to alert the user if Level 3 PostScript
2919 is handed to a device that cannot handle PostScript beyond Level
2920 2.
2921
2922 cairo-directfb
2923 --------------
2924 Various performance optimizations.
2925
2926 Fixed support for small surfaces (less than 8x8).
2927
2928 Provide support for environment variables CAIRO_DIRECTFB_NO_ACCEL to
2929 disable acceleration and CAIRO_DIRECTFB_ARGB_FONT to enable ARGB fonts
2930 instead of A8.
2931
2932 cairo-os2
2933 ---------
2934 Allow OS/2 APIs instead of C library allocation functions.
2935
2936 Snapshot 1.5.4 (2007-12-05 Carl Worth <cworth@cworth.org>)
2937 ==========================================================
2938 This is the second snapshot in cairo's unstable 1.5 series. It comes
2939 just over 1 month after the 1.5.2 snapshot. There are no API changes
2940 or additions in 1.5.4 compared to 1.5.2, but there are several bug
2941 fixes, and some optimizations. Most of these apply to particular
2942 backends. See below for details.
2943
2944 General improvements
2945 --------------------
2946 Use less memory for spline approximation calculations.
2947
2948 Change how the tolerance value is interpreted with regard to
2949 fallback-resolution. [Note: On further discussion, we decided against
2950 this change for now. It is removed as of cairo 1.5.10.]
2951
2952 Fix precision of floating-point values in vector-output backends to
2953 avoid rounding errors with very small numbers.
2954
2955 Xlib improvements
2956 -----------------
2957 Fix bug in glyph rendering with xlib, (due to everything being clipped
2958 out). This was a regression in the 1.5.2 snapshot that was visible in
2959 the GIMP, for example. See:
2960
2961         cairo 1.5.2 causes font problems in GIMP 2.4 status bar and evolution 2.12.1
2962         https://bugs.freedesktop.org/show_bug.cgi?id=13084
2963
2964 PostScript improvements
2965 -----------------------
2966 Fix bug leading to invalid PostScript files when rendering
2967 text, (need "0 0 xyshow" instead of "0 xyshow").
2968
2969 Fix many issues with Type 3 fonts, including making the resulting text
2970 extractable.
2971
2972 Quartz improvements
2973 -------------------
2974 Fix font metrics height value for ATSUI, (helps webkit on GTK+ OS X
2975 layout nicely).
2976
2977 Fix gradients.
2978
2979 Fix EXTEND_NONE mode for patterns.
2980
2981 Fix cairo_quartz_surface_create to properly clear the new surface
2982 in cairo_quartz_surface_create.
2983
2984 Fix to correctly handle 0x0 sized surfaces.
2985
2986 Optimize drawing of EXTEND_REPEAT patterns for OS X 10.5.
2987
2988 Snapshot 1.5.2 (2007-10-30 Carl Worth <cworth@cworth.org>)
2989 ==========================================================
2990 This is the first snapshot in cairo's unstable 1.5 series. It comes 4
2991 months after the 1.4.10 release. This snapshot includes significant
2992 improvements to PDF and PostScript output, which is one of the things
2993 in which we're most interested in getting feedback. There are a couple
2994 of minor API additions, and several optimizations, (primarily in the
2995 "print/vector" backends). And there are dozens of bug fixes and
2996 robustness improvements.
2997
2998 New dependency on external pixman library
2999 -----------------------------------------
3000 A significant change in this snapshot compared to all previous cairo
3001 releases is that cairo now depends on an external "pixman" library for
3002 its software rendering. Previously this same code was compiled
3003 internally as part of cairo, but now the code is separate so that both
3004 cairo and the X server can now share common code, (thanks very much to
3005 Søren Sandmann for his work on separating pixman and maintaining it).
3006
3007 So users will need to acquire and build pixman before being able to
3008 build cairo. The current release is 0.9.6 and can be obtained from
3009 here:
3010
3011         http://cairographics.org/releases/pixman-0.9.6.tar.gz
3012
3013  which can be verified with:
3014
3015         http://cairographics.org/releases/pixman-0.9.6.tar.gz.sha1
3016         66f01a682c64403a3d7a855ba5aa609ed93bcb9e  pixman-0.9.6.tar.gz
3017
3018         http://cairographics.org/releases/pixman-0.9.6.tar.gz.sha1.asc
3019         (signed by Carl Worth)
3020
3021 Major PDF/PostScript improvements
3022 ---------------------------------
3023 Adrian Johnson has done some long-awaited work to make cairo's PDF and
3024 PostScript output more interesting than ever before. First, many
3025 operations that previously triggered image fallbacks will now be
3026 rendered as native vectors. These operations include:
3027
3028         PDF: cairo_push_group, cairo_surface_create_similar,
3029         cairo_mask, A8/A1 surface sources, repeating/reflecting linear
3030         gradients.
3031
3032         PostScript: cairo_push_group, cairo_surface_create_similar,
3033         gradients, bilevel alpha masks, (for example, all values either 0 or
3034         255 for an A8 mask).
3035
3036 Not only that, but when an image fallback is required, it will now be
3037 limited to only the necessary region. For example, a tiny translucent
3038 image overlaying a small portion of text would previously caused an
3039 entire PostScript page to be rendered as a giant image. Now, the
3040 majority of that page will be nice text, and there will only be a tiny
3041 image in the output.
3042
3043 Additionally, the PostScript output now carefully encodes text so that
3044 if it is subsequently converted to PDF, the text will be
3045 selectable.
3046
3047 This is very exciting progress, and we're hoping to hear from users
3048 during the 1.5 series about how things have improved, (for example,
3049 inkscape users doing cairo-based PDF export: please let us know how
3050 things look). And feel free to pass your thanks along to Adrian for his excellent work.
3051
3052 NOTE: This much improved PDF output makes more sophisticated use of
3053 functionality in the PDF specification. This means that cairo's output
3054 will sometimes expose bugs in some free software PDF viewers, (evince,
3055 poppler, and xpdf, for example), that are not yet ready for such PDF
3056 files. We're working with the poppler maintainers to get these bugs
3057 fixed as quickly as possible. In the meantime, please double-check
3058 with other PDF viewers if cairo-generated PDF files are not being
3059 rendered correctly. It may be due to a bug in the viewer rather than
3060 in the PDF file that cairo has created.
3061
3062 Robustness improvements
3063 -----------------------
3064 Chris Wilson has made the largest contribution by far to cairo 1.5.2,
3065 (in number of commits). His more than 150 commits include a huge
3066 number of fixes to increase cairo's robustness. These fixes make cairo
3067 more robust against invalid and degenerate input, (NaN, empty path,
3068 etc.), against size-0 malloc calls, against memory leaks on
3069 error-recovery paths, and against other failures during error
3070 handling. He also implemented atomic operations to cairo, and used
3071 them to fix cairo's previously non-thread-safe reference counting,
3072 again improving robustness.
3073
3074 Chris has put a tremendous amount of time and effort into writing
3075 analysis tools for this work, and in running those tools and fixing
3076 the problems they report. We're very grateful for this work, and hope
3077 that all cairo users appreciate the more robust implementation that
3078 results from it.
3079
3080 This work is largely thankless, so it might make sense to notice
3081 sometime that cairo has been running quite smoothly for you, and when
3082 you do, send a quick "thank you" off to Chris Wilson, since it
3083 is all definitely running smoother thanks to his work.
3084
3085 New API
3086 -------
3087 There are no major additions to cairo's core API. The only new,
3088 generic functions are:
3089
3090         void
3091         cairo_surface_copy_page (cairo_surface_t *surface);
3092
3093         void
3094         cairo_surface_show_page (cairo_surface_t *surface);
3095
3096 which can now be used much more conveniently than the existing
3097 cairo_copy_page and cairo_show_page functions in some
3098 situations. These functions act identically, but require only a
3099 cairo_surface_t* and not a cairo_t*.
3100
3101 All other API additions are specific to particular backends.
3102
3103 New cairo-win32 API (new font face function and "win32 printing" surface)
3104 -------------------------------------------------------------------------
3105 There is a new function for creating a win32 font face for both a
3106 logfontw and an hfont together. This complements the existing
3107 functions for creating a font face from one or the other:
3108
3109         cairo_font_face_t *
3110         cairo_win32_font_face_create_for_logfontw_hfont (LOGFONTW *logfont,
3111                                                          HFONT font);
3112
3113 There is also a new "win32 printing" surface:
3114
3115         cairo_surface_t *
3116         cairo_win32_printing_surface_create (HDC hdc);
3117
3118 This interface looks identical to the original
3119 cairo_win32_surface_create, (both accept and HDC), but the behavior of
3120 this new surface is very different. It should only be called with a
3121 printing DC, and will result in all drawing commands being stored into
3122 a meta-surface and emitted after each page is complete, with analysis
3123 to do as minimal image-based fallbacks as necessary. The behavior and
3124 implementation shares much with the PDF and PostScript backends.
3125
3126 New cairo-ps API (EPS and PostScript level control)
3127 ---------------------------------------------------
3128 An often requested feature has been the ability to generate
3129 Encapsulated PostScript (EPS) with cairo. We have that now with the
3130 following very simple API. Just do cairo_ps_surface_create as usual
3131 then call this function with a true value:
3132
3133         void
3134         cairo_ps_surface_set_eps (cairo_surface_t       *surface,
3135                                   cairo_bool_t           eps);
3136
3137 [NOTE: As always with snapshots, it's possible---though not very
3138 likely---that the API could still be modified before a final
3139 release. For example, this is the first public cairo function that
3140 accepts a Boolean parameter. I'm generally opposed to Boolean
3141 parameters, but this is probably the one case where I'm willing to
3142 accept one, (namely a "set" function that accepts a single Boolean).]
3143
3144 Also, it is now possible to control what PostScript level to target,
3145 (either level 2 or level 3), with the following new API:
3146
3147         typedef enum _cairo_ps_level {
3148             CAIRO_PS_LEVEL_2,
3149             CAIRO_PS_LEVEL_3
3150         } cairo_ps_level_t;
3151
3152         void
3153         cairo_ps_surface_restrict_to_level (cairo_surface_t    *surface,
3154                                             cairo_ps_level_t    level);
3155
3156         void
3157         cairo_ps_get_levels (cairo_ps_level_t const  **levels,
3158                              int                      *num_levels);
3159
3160         const char *
3161         cairo_ps_level_to_string (cairo_ps_level_t level);
3162
3163 Improvement for cairo-quartz
3164 ----------------------------
3165 Brian Ewins had contributed several improvements to cairo-quartz. These
3166 include an implementation of EXTEND_NONE for linear and radial
3167 gradients, (so this extend mode will no longer trigger image fallbacks
3168 for these gradients), as well as native surface-mask clipping, (only
3169 on OS X 10.4+ where the CGContextClipToMask function is available).
3170
3171 He also fixed a semantic mismatch between cairo and quartz for dashing
3172 with an odd number of entries in the dash array.
3173
3174 We're grateful for Brian since not many quartz-specific improvements
3175 to cairo would be happening without him.
3176
3177 Optimizations
3178 -------------
3179 Optimize SVG output for when the same path is both filled and stroked,
3180 and avoid unnecessary identity matrix in SVG output. (Emmanuel Pacaud).
3181
3182 Optimize PS output to take less space (Ken Herron).
3183
3184 Make PS output more compliant with DSC recommendations (avoid initclip
3185 and copy_page) (Adrian Johnson).
3186
3187 Make PDF output more compact (Adrian Johnson).
3188
3189 Release glyph surfaces after uploading them to the X server, (should
3190 save some memory for many xlib-using cairo application). (Behdad
3191 Esfahbod).
3192
3193 Optimize cairo-win32 to use fewer GDI objects (Vladimir Vukicevic).
3194
3195 win32-printing: Avoid falling back to images when alpha == 255
3196 everywhere. (Adrian Johnson).
3197
3198 win32-printing: Avoid falling back for cairo_push_group and
3199 cairo_surface_create_similar. (Adrian Johnson)
3200
3201 Bug fixes
3202 ---------
3203 Avoid potential integer overflows when allocating large buffers
3204 (Vladimir Vukicevic).
3205
3206 Preparations to allow the 16.16 fixed-point format to change to
3207 24.8 (Vladimir Vukicevic).
3208
3209 Fix bugs for unsupported X server visuals (rgb565, rgb555, bgr888, and
3210 abgr8888). (Carl Worth and Vladimir Vukicevic)
3211
3212 Fix bugs in PDF gradients (Adrian Johnson).
3213
3214 Fix cairo-xlib to build without requiring Xrender header
3215 files (Behdad Esfahbod).
3216
3217 Make cairo more resilient in the case of glyphs not being available in
3218 the current font. (Behdad Esfahbod)
3219
3220 Prevent crashes when both atsui and ft font backends are compiled in
3221 (Brian Ewins).
3222
3223 Make font subsetting code more robust against fonts that don't include
3224 optional tables (Adrian Johnson).
3225
3226 Fix CFF subsetting bug, (which manifested by generating PDF files that
3227 Apple's Preview viewer could not read) (Adrian Johnson).
3228
3229 Fixed error handling for quartz and ATSUI backends (Brian Ewins).
3230
3231 Avoid rounding problems by pre-transforming to avoid integer-only
3232 restrictions on transformation in GDI (Adrian Johnson).
3233
3234 Fixed an obscure bug (#7245) computing extents for some stroked
3235 paths (Carl Worth).
3236
3237 Fix crashes due to extreme transformation of the pen, (seems to show
3238 up in many .swf files for some reason) (Carl Worth).
3239
3240 Release 1.4.10 (2007-06-27 Carl Worth <cworth@cworth.org>)
3241 ==========================================================
3242 This is the fifth update in cairo's stable 1.4 series. It comes
3243 roughly three weeks after the 1.4.8 release. The most significant
3244 change in this release is a fix to avoid an X error in certain cases,
3245 (that were causing OpenOffice.org to crash in Fedora). There is also a
3246 semantic change to include child window contents when using an xlib
3247 surface as a source, an optimization when drawing many rectangles, and
3248 several minor fixes.
3249
3250 Eliminate X errors that were killing OO.o (Chris Wilson)
3251 --------------------------------------------------------
3252 Cairo is fixed to avoid the X errors propagated when cleaning up
3253 Render Pictures after the application had already destroyed the
3254 Drawable they reference. (It would be nice if the X server wouldn't
3255 complain that some cleanup work is already done, but there you have
3256 it.) This fixes the bug causing OpenOffice.org to crash as described
3257 here:
3258
3259         XError on right click menus in OOo.
3260         https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=243811
3261
3262 Use IncludeInferiors when using xlib surface as a source (Ryan Lortie)
3263 ----------------------------------------------------------------------
3264 When an xlib surface is used as the source of a draw operation the
3265 contents of child windows are now included in the source data. The
3266 semantics of drawing to xlib surfaces are unchanged (ie: draws are
3267 still clipped by child windows overlapping the destination window).
3268
3269 Optimize drawing of many rectangles (Vladimir Vukicevic)
3270 --------------------------------------------------------
3271 Avoid O(N*N) loop when filling many axis-aligned rectangles, (either
3272 many rectangles as separate sub-paths or due to dashing).
3273
3274 Miscellaneous fixes
3275 -------------------
3276 Fix cairo-perf on Solaris by linking to librt. (Behdad Esfahbod)
3277
3278 Fix make check for systems that require executable files to have a
3279 particular extension. (Behdad Esfahbod)
3280
3281 Eliminate some warnings in cairo-quartz. (Brian Ewins)
3282
3283 Fix build-breaking typo for cairo-directfb. (Chris Wilson)
3284
3285 Release 1.4.8 (2007-06-07 Carl Worth <cworth@cworth.org>)
3286 =========================================================
3287 This is the fourth update in cairo's stable 1.4 series. It comes just
3288 over five weeks after the 1.4.6 release. This release includes a
3289 thread-safe surface-cache for solid patterns which significantly
3290 improves text rendering with the xlib backend. Also, dozens of error
3291 paths in cairo have been fixed thanks to extensive fault-injection
3292 testing by Chris Wilson.
3293
3294 Surface cache for solid patterns
3295 --------------------------------
3296 Originally written by Jorn Baayen, the introduction of a small cache
3297 for surfaces created for solid patterns improves performance
3298 dramatically. For example, this reduces the volume of X requests
3299 during text rendering to the same level as Xft.
3300
3301 This cache first made its appearance in a 1.3.x snapshot, but was
3302 removed before appearing in any previous major release due to
3303 complications with multi-threaded programs. For example, programs like
3304 evince that would carefully restrict usage of cairo-xlib to a single
3305 thread were unpleasantly surprised to find that using cairo-image in a
3306 separate thread could trigger X requests.
3307
3308 Behdad Esfahbod designed a fix which was implemented by Chris
3309 Wilson. Now, the necessary X requests are queued up until the next
3310 time the application directly operates on an xlib surface.
3311
3312 Improved error handling paths
3313 ------------------------------
3314 Chris Wilson continued the excellent work he started in cairo 1.4.4 to
3315 make cairo much more robust against out-of-memory and other errors. He
3316 applied his memory allocation fault injection cairo's main test suite,
3317 (previously he had applied it to cairo's performance suite).
3318
3319 Chris's testing found dozens of bugs which he fixed. Many of these
3320 bugs had perhaps never been hit by any users. But at least one was
3321 hit by the gnome-about program which resulted in dozens of duplicated
3322 bug reports against that program:
3323
3324         http://bugzilla.gnome.org/show_bug.cgi?id=431990
3325
3326 We were very pleasantly surprised to see this bug get fixed as a
3327 side-effect of Chris's work. Well done, Chris!
3328
3329 Other fixes
3330 -----------
3331 Cleanup of mutex declarations (Behdad Esfahbod)
3332
3333 Remove unnecessary clip region from SVG output (Emmanuel Pacaud)
3334
3335 Remove Xsun from the buggy_repeat blacklist (Elaine Xiong)
3336
3337 ATSUI: Fix glyph measurement: faster and more correct (Brian Ewins)
3338
3339 Quartz: fixed 'extend' behaviour for patterns, improved pattern performance,
3340 and a few smaller correctness fixes. (Brian Ewins, Vladimir Vukicevic)
3341
3342 Release 1.4.6 (2007-05-01 Carl Worth <cworth@cworth.org>)
3343 =========================================================
3344 This is the third update in cairo's stable 1.4 series. It comes a
3345 little less than three weeks since the 1.4.4 release. This release
3346 fixes the broken mutex initialization that made cairo 1.4.4 unusable
3347 on win32, OS/2, and BeOS systems. This release also adds significant
3348 improvements to cairo's PDF backend, (native gradients!), and a couple
3349 of performance optimizations, (one of which is very significant for
3350 users of the xlib backend). See below for more details.
3351
3352 Repaired mutex initialization
3353 -----------------------------
3354 We apologize that cairo 1.4.4 did little more than crash on many
3355 platforms which are less-frequently used by the most regular cairo
3356 maintainers, (win32, OS/2, and BeOS). The mutex initialization
3357 problems that caused those crashes should be fixed now. And to avoid
3358 similar problems in the future, we've now started posting pre-release
3359 snapshots to get better testing, (subscribe to cairo@cairographics.org
3360 if you're interested in getting notified of those and testing them).
3361
3362 PDF Improvements
3363 ----------------
3364 Thanks to Adrian Johnson, (cairo PDF hacker extraordinaire), we have
3365 several improvements to cairo's PDF backend to announce:
3366
3367 Native gradients:
3368
3369   As of cairo 1.4.6, cairo will now generate native PDF gradients in
3370   many cases, (previously, the presence of a gradient on any page
3371   would force rasterized output for that page). Currently, only
3372   gradients with extend types of PAD (the default) or NONE will
3373   generate native PDF gradients---others will still trigger
3374   rasterization, (but look for support for other extend modes in a
3375   future release). Many thanks to Miklós Erdélyi as well, who did the
3376   initial work for this support.
3377
3378 Better compatibility with PDF viewers:
3379
3380   The PDF output from cairo should now be displayed correctly by a
3381   wider range of PDF viewers. Adrian tested cairo's PDF output against
3382   many PDF viewers, identified a common bug in many of those viewers
3383   (ignoring the CTM matrix in some cases), and modified cairo's output
3384   to avoid triggering that bugs (pre-transforming coordinates and
3385   using an identity matrix).
3386
3387 Better OpenType/CFF subsetting:
3388
3389   Cairo will now embed CFF and TrueType fonts as CID fonts.
3390
3391 Performance optimizations
3392 -------------------------
3393 Faster cairo_paint_with_alpha:
3394
3395   The cairo_paint_with_alpha call is used to apply a uniform alpha
3396   mask to a pattern. For example, it can be used to gradually fade an
3397   image out or in. Jeff Muizelaar fixed some missing/broken
3398   optimizations within the implementation of this function resulting
3399   in cairo_paint_with_alpha being up to 4 times faster when using
3400   cairo's image backend.
3401
3402 Optimize rendering of "off-screen" geometry:
3403
3404   Something that applications often do is to ask cairo to render
3405   things that are either partially or wholly outside the current clip
3406   region. Since 1.4.0 the image backend has been fixed to not waste
3407   too much time in this case. But other backends have still been
3408   suffering.
3409
3410   In particular, the xlib backend has often performed quite badly in
3411   this situation. This is due to a bug in the implementation of
3412   trapezoid rasterization in many X servers.
3413
3414   Now, in cairo 1.4.6 there is a higher-level fix for this
3415   situation. Cairo now eliminates or clips trapezoids that are wholly
3416   or partially outside the clip region before handing the trapezoids
3417   to the backend. This means that the X server's performance bug is
3418   avoided in almost all cases.
3419
3420   The net result is that doing an extreme zoom-in of vector-based
3421   objects drawn with cairo might have previously brought the X server
3422   to its knees as it allocated buffers large enough to fit all of the
3423   geometry, (whether visible or not). But now the memory usage should
3424   be bounded and performance should be dramatically better.
3425
3426 Miscellaneous
3427 -------------
3428 Behdad contributed an impressively long series of changes that
3429 organizes cairo's internals in several ways that will be very
3430 beneficial to cairo developers. Thanks, Behdad!
3431
3432 Behdad has also provided a utility for generating malloc statistics,
3433 (which was used during the great malloc purges of 1.4.2 and
3434 1.4.4). This utility isn't specific to cairo so may be of benefit to
3435 others. It is found in cairo/util/malloc-stats.c and here are Behdad's
3436 notes on using it:
3437
3438     To build, do:
3439
3440         make malloc-stats.so
3441
3442     inside util/, and to use, run:
3443
3444         LD_PRELOAD=malloc-stats.so some-program
3445
3446     For binaries managed by libtool, eg, cairo-perf, do:
3447
3448         ../libtool --mode=execute /bin/true ./cairo-perf
3449         LD_PRELOAD="../util/malloc-stats.so" .libs/lt-cairo-perf
3450
3451 Finally, the cairo-perf-diff-files utility was enhanced to allow for
3452 generating performance reports from several runs of the same backend
3453 while some system variables were changed. For example, this is now
3454 being used to allow cairo-perf to measure the performance of various
3455 different acceleration architectures and configuration options of the
3456 X.org X server.
3457
3458 Release 1.4.4 (2007-04-13 Carl Worth <cworth@cworth.org>)
3459 =========================================================
3460 This is the second update release in cairo's stable 1.4 series. It
3461 comes just less than a month after 1.4.2. The changes since 1.4.2
3462 consist primarily of bug fixes, but also include at least one
3463 optimization. See below for details.
3464
3465 Of all the work that went into the 1.4.4 release
3466
3467 There have been lots of individuals doing lots of great work on cairo,
3468 but two efforts during the 1.4.4 series deserve particular mention:
3469
3470 Internal cleanup of error handling, (Chris Wilson)
3471 --------------------------------------------------
3472 Chris contributed a tremendous series of patches (74 patches!) to
3473 improve cairo's handling of out-of-memory and other errors. He began
3474 by adding gcc's warn_unused_attribute to as many functions as
3475 possible, and then launched into the ambitious efforts of adding
3476 correct code to quiet the dozens of resulting warnings.
3477
3478 Chris also wrote a custom valgrind skin to systematically inject
3479 malloc failures into cairo, and did all the work necessary to verify
3480 that cairo's performance test suite runs to completion without
3481 crashing.
3482
3483 The end result is a much more robust implementation. Previously, many
3484 error conditions would have gone unnoticed and would have led to
3485 assertion failures, segmentation faults, or other harder-to-diagnose
3486 problems. Now, more than ever, cairo should cleanly let the user know
3487 of problems through cairo_status and other similar status
3488 functions. Well done, Chris!
3489
3490 More malloc reduction, (Mathias Hasselmann)
3491 -------------------------------------------
3492 After 1.4.0, Behdad launched an effort to chase down excessive calls
3493 to malloc within the implementation of cairo. He fixed a lot of
3494 malloc-happy objects for 1.4.2, but one of the worst offenders,
3495 (pixman regions), was left around. Mathias contributed an excellent
3496 series of 15 patches to finish off this effort.
3497
3498 The end result is a cairo that calls malloc much less often than it
3499 did before. Compared to 1.4.2, 55% of the calls to malloc have been
3500 eliminate, (and 60% have been eliminated compared to 1.4.0). Well
3501 done, Mathias!
3502
3503 Other improvements since 1.4.2
3504 ------------------------------
3505 • Centralize mutex declarations (will reduce future build breaks),
3506   (Mathias Hasselmann)
3507
3508 • Reduce malloc by caching recently freed pattern objects (Chris
3509   Wilson)
3510
3511 • Fix some broken composite operations (David Reveman)
3512         https://bugs.freedesktop.org/show_bug.cgi?id=5777
3513
3514 Backend-specific fixes
3515 ----------------------
3516 PDF:
3517  • Use TJ operator for more compact representation of glyphs (Adrian
3518    Johnson)
3519
3520  • Fix glyph positioning bug when glyphs are not horizontal
3521         http://lists.freedesktop.org/archives/cairo/2007-April/010337.html
3522
3523 win32:
3524  • Fix crash when rendering with bitmap fonts (Carl Worth)
3525         https://bugzilla.mozilla.org/show_bug.cgi?id=376498
3526
3527 xlib:
3528  • Turn metrics-hinting on by default (Behdad Esfahbod)
3529
3530  • Fix edge-effect problem with transformed images drawn to xlib
3531    (Behdad Esfahbod)
3532         https://bugs.freedesktop.org/show_bug.cgi?id=10508
3533
3534  • Avoid dereferencing a NULL screen. (Chris Wilson)
3535         https://bugs.freedesktop.org/show_bug.cgi?id=10517
3536
3537 Quartz/ATSUI:
3538  • Fix scaling of glyph surfaces
3539    (Brian Ewins)
3540         https://bugs.freedesktop.org/show_bug.cgi?id=9568
3541
3542  • Fix compilation failure when both xlib and quartz enabled
3543    (Brian Ewins)
3544
3545  • Fix rounding bug leading to incorrectly positioned glyphs
3546    (Robert O'Callahan)
3547         https://bugs.freedesktop.org/show_bug.cgi?id=10531
3548
3549 Release 1.4.2 (2007-03-19 Carl Worth <cworth@cworth.org>)
3550 =========================================================
3551 This is the first update release in cairo's stable 1.4 series. It
3552 comes just less than 2 weeks after 1.4.0. We hadn't anticipated an
3553 update this early, but we've managed to collect some important fixes
3554 that we wanted to get out to cairo users as soon as possible, (6 fixes
3555 for crashes, 1 case where graphical elements would not be drawn at
3556 all, a handful of backend-specific bugs, and several important build
3557 fixes).
3558
3559 There's almost nothing but bug fixes in this release, (see below one
3560 optimization that Behdad did sneak in), so we recommend that everyone
3561 upgrade to this release when possible.
3562
3563 Thanks to the many people that worked to fix these bugs, and those
3564 that did the work to report them and to test the fixes, (wherever
3565 possible both names are credited below).
3566
3567 Critical fixes
3568 --------------
3569 • Fix a crash due to a LOCK vs. UNLOCK typo (M. Drochner fixing Carl
3570   Worth's embarrassing typo).
3571
3572   http://bugs.freedesktop.org/show_bug.cgi?id=10235
3573
3574 • Fix potential buffer overflow, which on some systems with a checking
3575   variant of snprintf would lead to a crash (Adrian Johnson, Stanislav
3576   Brabec, and sangu).
3577
3578   https://bugs.freedesktop.org/show_bug.cgi?id=10267
3579   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=232576
3580
3581 • Fix a crash in cairo_stroke_extents or cairo_in_stroke when line
3582   width is 0.0. (Carl Worth and Sebastien Bacher)
3583
3584   https://bugs.freedesktop.org/show_bug.cgi?id=10231
3585
3586 • Fix a crash on certain combinations of X server/video drivers (Carl
3587   Worth and Tomas Carnecky).
3588
3589   https://bugs.freedesktop.org/show_bug.cgi?id=10250
3590
3591 • Fix a crash due to mishandling of invalid user input (Carl Worth and
3592   Alexander Darovsky).
3593
3594   https://bugs.freedesktop.org/show_bug.cgi?id=9844
3595
3596 • xlib: Cleanup server-side glyph caches on XCloseDisplay. This
3597   eliminated a crash detected by the perf suite, (and that
3598   applications could have run into as well). (Chris Wilson)
3599
3600 Other bug fixes
3601 ---------------
3602 • Fix for some geometry which simply disappeared under some
3603   transformations---a stroked line with an extreme skew in X, for
3604   example (Carl Worth and Jonathan Watt).
3605
3606   https://bugzilla.mozilla.org/show_bug.cgi?id=373632
3607
3608 • SVG: Fix radial gradients for CAIRO_EXTEND_REFLECT and when r0 > r1
3609   (Emmanuel Pacaud).
3610
3611 • PDF: Set page group color space to DeviceRGB.
3612
3613   This fixes incorrect (muddy) transparent colors when rendering cairo
3614   PDF output in some viewers. (Adrian Johnson, Adam Goode, and
3615   MenTaLguY).
3616
3617   http://lists.freedesktop.org/archives/cairo/2006-November/008551.html
3618
3619 • win32: Return correct metrics when hinting is off, and fix font
3620   descent computation (Behdad Esfahbod).
3621
3622 • quartz: Fix glyph interfaces to correctly return user-space rather
3623   than device-space coordinates (Brian Ewins).
3624
3625   https://bugs.freedesktop.org/show_bug.cgi?id=9568
3626
3627 • xcb: Fix parameter-order confusion with xcb_create_pixmap, which now
3628   makes all tests that pass with xlib now pass with xcb (Carl Worth,
3629   Jamey Sharp).
3630
3631 • Fix some memory leaks in the perf suite (Chris Wilson).
3632
3633 • Fix perf suite to consider changes in pixman/src (Mathias
3634   Hasselmann).
3635
3636 Build fixes
3637 -----------
3638 • Don't include pre-generated cairo-features.h file. This was causing
3639   build failures when building with the directfb backend enabled
3640   (Behdad Esfahbod).
3641
3642   https://bugs.freedesktop.org/show_bug.cgi?id=10189
3643
3644 • Eliminate use of maintainer mode from cairo's automake/configure
3645   script. This means that updates to files such as Makefile.am will
3646   take effect, (by rerunning automake and friends as necessary) when
3647   invoking make rather than being silently ignored.  (Behdad Esfahbod)
3648
3649 • Don't compile cairo-deflate-stream.c, which depends on zlib, unless
3650   building the pdf backend which requires it. (Carl Worth, Tor
3651   Lillqvist)
3652
3653   https://bugs.freedesktop.org/show_bug.cgi?id=10202
3654
3655 • Don't make the ps backend link against zlib anymore, since it
3656   doesn't require it (Carl Worth).
3657
3658 • Use "find !" rather than "find -not" for better portability (Thomas
3659   Klausner).
3660
3661   https://bugs.freedesktop.org/show_bug.cgi?id=10226
3662
3663 • Don't use unsupported visibility attribute "hidden" on Solaris
3664   (Gilles Dauphin, Thomas Klausner).
3665
3666   https://bugs.freedesktop.org/show_bug.cgi?id=10227
3667
3668 Optimization
3669 ------------
3670 • It was Behdad that suggested we focus strictly on bug fixes now that
3671   we shipped so many performance improvements in 1.4.0, but it was
3672   also Behdad that got distracted by the chance to remove a lot of
3673   mallocs from cairo. Paths, gstates, trapezoids, splines, polygons,
3674   and gradient color stops will now use small, stack-allocated buffers
3675   in the most common cases rather than calling malloc as
3676   often. (Behdad Esfahbod). And look for more from Mathias Hasselmann
3677   soon.
3678
3679 Release 1.4.0 (2007-03-06 Carl Worth <cworth@cworth.org>)
3680 =========================================================
3681 The many people[*] who have been working hard on cairo are very
3682 pleased to announce the long-awaited release of cairo 1.4. This
3683 release comes 4 months after the last stable update release (1.2.6)
3684 and 9 months since the initial release of 1.2.0.
3685
3686 The release notes below are intended to capture the highlights of the
3687 changes that have occurred from the 1.2 series to the new 1.4.0
3688 release.
3689
3690 Performance improvements
3691 ------------------------
3692 Within the cairo project, the last 6 months or so has seen an intense
3693 effort focusing on the performance of cairo itself. That effort has
3694 paid off considerably, as can be seen in the following highlights of
3695 some of the performance differences from cairo 1.2.6 to cairo 1.4.0.
3696
3697 (Note: The performance results reported here were measured on an x86
3698 laptop. Many of the improvements in 1.4---particular those involving
3699 text rendering---are even more dramatic on embedded platforms without
3700 hardware floating-point units. Such devices played an important part
3701 of many of the optimizations that found their way into cairo over the
3702 last few months.)
3703
3704 • Dramatic improvement when drawing objects that are mostly off-screen
3705   with the image backend (with the xlib backend this case is still
3706   slow due to an X server bug):
3707
3708   image-rgba       long-lines-uncropped-100  479.64 ->  4.98: 96.24x speedup
3709   ███████████████████████████████████████████████▋
3710
3711 • Dramatic improvement when copying a small fraction of an image
3712   surface to an xlib surface:
3713
3714    xlib-rgba              subimage_copy-512    3.93 ->  0.07: 54.52x speedup
3715   ██████████████████████████▊
3716
3717 • Dramatic improvement to tessellation speed for complex objects:
3718
3719   image-rgb              tessellate-256-100  874.16 -> 34.79: 25.13x speedup
3720   ████████████▏
3721    xlib-rgba        zrusin_another_fill-415  148.40 -> 13.85: 10.72x speedup
3722   ████▉
3723    xlib-rgb                  world_map-800  680.20 -> 345.54:  1.97x speedup
3724   ▌
3725
3726 • Dramatic improvement to the speed of stroking rectilinear shapes,
3727   (such as the outline of a rectangle or "box"):
3728
3729   image-rgb          box-outline-stroke-100    0.18 ->  0.01: 24.22x speedup
3730   ███████████▋
3731    xlib-rgb          box-outline-stroke-100    0.46 ->  0.06:  8.05x speedup
3732   ███▌
3733
3734
3735 • Dramatic improvements to text rendering speeds:
3736
3737    xlib-rgba       text_image_rgba_over-256   63.12 ->  9.61:  6.57x speedup
3738   ██▊
3739
3740 • 3x improvements to floating-point to fixed-point conversion speeds:
3741
3742   image-rgba      pattern_create_radial-16     9.29 ->  3.44:  2.70x speedup
3743   ▉
3744
3745 • 2x improvements to linear gradient computation:
3746
3747   image-rgb     paint_linear_rgb_source-512   26.22 -> 11.61:  2.26x speedup
3748   ▋
3749
3750 • 2x improvement to a case common in PDF rendering:
3751
3752   image-rgb              unaligned_clip-100    0.10 ->  0.06:  1.81x speedup
3753   ▍
3754
3755 • 1.3x improvement to rectangle filling speed (note: this improvement
3756   is new since 1.3.16---previously this test case was a 1.3x slowdown
3757   compared to 1.2.6):
3758
3759   image-rgba                 rectangles-512    6.19 ->  4.37:  1.42x speedup
3760   ▎
3761   xlib-rgba                  rectangles-512    7.48 ->  5.58:  1.34x speedup
3762   ▏
3763
3764 NOTE: In spite of our best efforts, there are some measurable
3765 performance regressions in 1.4 compared to 1.2. It appears that the
3766 primary problem is the increased overhead of the new tessellator when
3767 drawing many, very simple shapes. The following test cases capture
3768 some of that slowdown:
3769
3770   image-rgba    mosaic_tessellate_lines-800   11.03 -> 14.29:  1.30x slowdown
3771   ▏
3772   image-rgba           box-outline-fill-100    0.01 ->  0.01:  1.26x slowdown
3773   ▏
3774   image-rgba        fill_solid_rgb_over-64     0.20 ->  0.22:  1.12x slowdown
3775
3776   image-rgba       fill_image_rgba_over-64     0.23 ->  0.25:  1.10x slowdown
3777
3778    xlib-rgb     paint_image_rgba_source-256    3.24 ->  3.47:  1.07x slowdown
3779
3780 We did put some special effort into eliminating this slowdown for the
3781 very common case of drawing axis-aligned rectangles with an identity
3782 matrix (see the box-outline-stroke and rectangles speedup numbers
3783 above). Eliminating the rest of this slowdown will be a worthwhile
3784 project going forward.
3785
3786 Also note that the "box-outline-fill" case is a slowdown while
3787 "box-outline-stroke" is a (huge) speedup. These two test cases
3788 resulted from the fact that some GTK+ theme authors were filling
3789 between two rectangles to avoid slow performance from the more natural
3790 means of achieving the same shape by stroking a single rectangle. With
3791 1.4 that workaround should definitely be eliminated as it will now
3792 cause things to perform more slowly.
3793
3794 Greatly improved PDF output
3795 ---------------------------
3796 We are very happy to be able to announce that cairo-generated PDF
3797 output will now have text that can be selected, cut-and-pasted, and
3798 searched with most capable PDF viewer applications. This is something
3799 that was not ever possible with cairo 1.2.
3800
3801 Also, the PDF output now has much more compact encoding of text than
3802 before. Cairo is now much more careful to not embed multiple copies of
3803 the same font at different sizes. It also compresses text and font
3804 streams within the PDF output.
3805
3806 API additions
3807 -------------
3808 There are several new functions available in 1.4 that were not
3809 available in 1.2. Curiously, almost all of the new functions simply
3810 allow the user to query state that has been set in cairo (many new
3811 "get" functions) rather than providing any fundamentally new
3812 operations. The new functionality is:
3813
3814 • Getting information about the current clip region
3815
3816   cairo_clip_extents
3817   cairo_copy_clip_rectangle_list
3818   cairo_rectangle_list_destroy
3819
3820 • Getting information about the current dash setting
3821
3822   cairo_get_dash_count
3823   cairo_get_dash
3824
3825 • Getting information from a pattern
3826
3827   cairo_pattern_get_rgba
3828   cairo_pattern_get_surface
3829   cairo_pattern_get_color_stop_rgba
3830   cairo_pattern_get_color_stop_count
3831   cairo_pattern_get_linear_points
3832   cairo_pattern_get_radial_circles
3833
3834 • Getting the current scaled font
3835
3836   cairo_get_scaled_font
3837
3838 • Getting reference counts
3839
3840   cairo_get_reference_count
3841   cairo_surface_get_reference_count
3842   cairo_pattern_get_reference_count
3843   cairo_font_face_get_reference_count
3844   cairo_scaled_font_get_reference_count
3845
3846 • Setting/getting user data on objects
3847
3848   cairo_set_user_data
3849   cairo_get_user_data
3850   cairo_pattern_set_user_data
3851   cairo_pattern_get_user_data
3852   cairo_scaled_font_set_user_data
3853   cairo_scaled_font_get_user_data
3854
3855 • New cairo-win32 functions:
3856
3857   cairo_win32_surface_create_with_ddb
3858   cairo_win32_surface_get_image
3859   cairo_win32_scaled_font_get_logical_to_device
3860   cairo_win32_scaled_font_get_device_to_logical
3861
3862 API deprecation
3863 ---------------
3864 The CAIRO_FORMAT_RGB16_565 enum value has been deprecated. It never
3865 worked as a format value for cairo_image_surface_create, and it wasn't
3866 necessary for supporting 16-bit 565 X server visuals.
3867
3868 A sampling of bug fixes in cairo 1.4
3869 ------------------------------------
3870   • Fixed radial gradients
3871   • Fixed dashing (degenerate and "leaky" cases)
3872   • Fixed transformed images in PDF/PS output (eliminate bogus repeating)
3873   • Eliminate errors from CAIRO_EXTEND_REFLECT and CAIRO_EXTEND_PAD
3874   • cairo_show_page no longer needed for single-page output
3875   • SVG: Fix bug preventing text from appearing in many viewers
3876   • cairo-ft: Return correct metrics when hinting is off
3877   • Eliminate crash in cairo_create_similar if nil surface is returned
3878   • Eliminate crash after INVALID_RESTORE error
3879   • Fix many bugs related to multi-threaded use and locking
3880   • Fix for glyph spacing 32 times larger than desired (cairo-win32)
3881   • Fixed several problems in cairo-atsui (assertion failures)
3882   • Fix PDF output to avoid problems when printing from Acrobat Reader
3883   • Fix segfault on Mac OS X (measuring a zero-length string)
3884   • Fix text extents to not include the size of non-inked characters
3885   • Fix for glyph cache race condition in glitz backend (Jinghua Luo)
3886   • Fix make check to work on OPD platforms (IA64 or PPC64)
3887   • Fix compilation problems of cairo "wideint" code on some platforms
3888   • Many, many others...
3889
3890 Experimental backends (quartz, XCB, OS/2, BeOS, directfb)
3891 ---------------------------------------------------------
3892 None of cairo's experimental backends are graduating to "supported"
3893 status with 1.4.0, but two of them in particular (quartz and xcb), are
3894 very close.
3895
3896 The quartz baceknd has been entirely rewritten and is now much more
3897 efficient. The XCB backend has been updated to track the latest XCB
3898 API (which recently had a 1.0 release).
3899
3900 We hope to see these backends become supported in a future release,
3901 (once they are passing all the tests in cairo's test suite).
3902
3903 The experimental OS/2 backend is new in cairo 1.4 compared to cairo
3904 1.2.
3905
3906 Documentation improvements
3907 --------------------------
3908 We have added documentation for several functions and types that
3909 were previously undocumented, and improved documentation on other
3910 ones.  As of this release, there remain only two undocumented
3911 symbols: cairo_filter_t and cairo_operator_t.
3912
3913 [*]Thanks to everyone
3914 ---------------------
3915 I've accounted for 41 distinct people with attributed code added to
3916 cairo between 1.2.6 and 1.4.0, (their names are below). That's an
3917 impressive number, but there are certainly dozens more that
3918 contributed with testing, suggestions, clarifying questions, and
3919 encouragement. I'm grateful for the friendships that have developed as
3920 we have worked on cairo together. Thanks to everyone for making this
3921 all so much fun!
3922
3923 Adrian Johnson, Alfred Peng, Alp Toker, Behdad Esfahbod,
3924 Benjamin Otte, Brian Ewins, Carl Worth, Christian Biesinger,
3925 Christopher (Monty) Montgomery, Daniel Amelang, Dan Williams,
3926 Dave Yeo, David Turner, Emmanuel Pacaud, Eugeniy Meshcheryakov,
3927 Frederic Crozat, Hans Breuer, Ian Osgood, Jamey Sharp, Jeff Muizelaar,
3928 Jeff Smith, Jinghua Luo, Jonathan Watt, Joonas Pihlaja, Jorn Baayen,
3929 Kalle Vahlman, Kjartan Maraas, Kristian Høgsberg, M Joonas Pihlaja,
3930 Mathias Hasselmann, Mathieu Lacage, Michael Emmel, Nicholas Miell,
3931 Pavel Roskin, Peter Weilbacher, Robert O'Callahan,
3932 Soren Sandmann Pedersen, Stuart Parmenter, T Rowley,
3933 Vladimir Vukicevic
3934
3935 Snapshot 1.3.16 (2007-03-02 Carl Worth <cworth@cworth.org>)
3936 ===========================================================
3937 New API functions
3938 -----------------
3939 A few new public functions have been added to the cairo API since the
3940 1.3.14 snapshot. These include a function to query the current scaled
3941 font:
3942
3943         cairo_get_scaled_font
3944
3945 New functions to query the reference count of all cairo objects:
3946
3947         cairo_get_reference_count
3948
3949         cairo_surface_get_reference_count
3950         cairo_pattern_get_reference_count
3951
3952         cairo_font_face_get_reference_count
3953         cairo_scaled_font_get_reference_count
3954
3955 And new functions to allow the use of user_data with any cairo object,
3956 (previously these were only available on cairo_surface_t and
3957 cairo_font_face_t objects):
3958
3959         cairo_set_user_data
3960         cairo_get_user_data
3961
3962         cairo_pattern_set_user_data
3963         cairo_pattern_get_user_data
3964
3965         cairo_scaled_font_set_user_data
3966         cairo_scaled_font_get_user_data
3967
3968 Usability improvement for PDF/PS/SVG generation
3969 -----------------------------------------------
3970 In previous versions of cairo, generating single-page output with the
3971 cairo-pdf, cairo-ps, or cairo-svg backends required a final call to
3972 cairo_show_page. This was often quite confusing as people would port
3973 functional code from a non-paginated backend and be totally mystified
3974 as to why the output was blank until they learned to add this call.
3975
3976 Now that call to cairo_show_page is optional, (it will be generated
3977 implicitly if the user does not call it). So cairo_show_page is only
3978 needed to explicitly separate multiple pages.
3979
3980 Greatly improved PDF output
3981 ---------------------------
3982 We are very happy to be able to announce that cairo-generated PDF
3983 output will now have text that can be selected, cut-and-paste, and
3984 searched with most capable PDF viewer applications. This is something
3985 that was not ever possible with cairo 1.2.
3986
3987 Also, the PDF output now has much more compact encoding of text than
3988 before. Cairo is now much more careful to not embed multiple copies of
3989 the same font at different sizes. It also compresses text and font
3990 streams within the PDF output.
3991
3992 Major bug fixes
3993 ---------------
3994   • Fixed radial gradients
3995
3996     The rendering of radial gradients has been greatly improved. In
3997     the cairo 1.2 series, there was a serious regression affecting
3998     radial gradients---results would be very incorrect unless one of
3999     the gradient circles had a radius of 0.0 and a center point within
4000     the other circle. These bugs have now been fixed.
4001
4002   • Fixed dashing
4003
4004     Several fixes have been made to the implementation of dashed
4005     stroking. Previously, some dashed, stroked rectangles would
4006     mis-render and fill half of the rectangle with a large triangular
4007     shape. This bug has now been fixed.
4008
4009   • Fixed transformed images in PDF/PS output
4010
4011     In previous versions of cairo, painting with an image-based source
4012     surface pattern to the PDF or PS backends would cause many kinds
4013     of incorrect results. One of the most common problems was that an
4014     image would be repeated many times even when the user had
4015     explicitly requested no repetition with CAIRO_EXTEND_NONE. These
4016     bugs have now been fixed.
4017
4018   • Eliminate errors from CAIRO_EXTEND_REFLECT and CAIRO_EXTEND_PAD
4019
4020     In the 1.2 version of cairo any use of CAIRO_EXTEND_REFLECT or
4021     CAIRO_EXTEND_PAD with a surface-based pattern resulted in an
4022     error, (cairo would stop rendering). This bug has now been
4023     fixed.
4024
4025     Now, CAIRO_EXTEND_REFLECT should work properly with surface
4026     patterns.
4027
4028     CAIRO_EXTEND_PAD is still not working correctly, but it will now
4029     simply behave as CAIRO_EXTEND_NONE rather than triggering the
4030     error.
4031
4032 New rewrite of quartz backend (still experimental)
4033 --------------------------------------------------
4034 Cairo's quartz backend has been entirely rewritten and is now much
4035 more efficient. This backend is still marked as experimental, not
4036 supported, but it is now much closer to becoming an officially
4037 supported backend. (For people that used the experimental nquartz
4038 backend in previous snapshots, that implementation has now been
4039 renamed from "nquartz" to "quartz" and has replaced the old quartz
4040 backend.)
4041
4042 Documentation improvements
4043 --------------------------
4044 We have added documentation for several functions and types that
4045 were previously undocumented, and improved documentation on other
4046 ones.  As of this release, there remain only two undocumented
4047 symbols: cairo_filter_t and cairo_operator_t.
4048
4049 Other bug fixes
4050 ---------------
4051   • cairo-svg: Fix bug that was preventing text from appearing in many
4052     viewers
4053
4054   • cairo-ft: Return correct metrics when hinting is off
4055
4056   • Cairo 1.3.14 deadlocks in cairo_scaled_font_glyph_extents or
4057     _cairo_ft_unscaled_font_lock_face
4058
4059     https://bugs.freedesktop.org/show_bug.cgi?id=10035
4060
4061   • cairo crashes in cairo_create_similar if nil surface returned by
4062     other->backend->create_similar
4063
4064     https://bugs.freedesktop.org/show_bug.cgi?id=9844
4065
4066   • evolution crash in _cairo_gstate_backend_to_user()
4067     https://bugs.freedesktop.org/show_bug.cgi?id=9906
4068
4069   • Fix memory leak in rectilinear stroking code
4070
4071 Things not in this release
4072 --------------------------
4073   • Solid-surface-pattern cache: This patch had been applied during
4074     the 1.3.x series, but it was reverted due to some inter-thread
4075     problems it caused. The patch is interesting since it made a big
4076     benefit for text rendering performance---so we'll work to bring a
4077     corrected version of this patch back as soon as possible.
4078
4079 Snapshot 1.3.14 (2006-02-13 Carl Worth <cworth@cworth.org>)
4080 ===========================================================
4081 This is the seventh development snapshot in the 1.3 series, (and there
4082 likely won't be many more before the 1.4.0 release). It comes just
4083 over 3 weeks after the 1.3.12 snapshot.
4084
4085 Since we're so close to the 1.4.0 release, there are not a lot of new
4086 features nor even a lot of new performance improvements in this
4087 snapshot. Instead, there are a great number of bug fixes. Some are
4088 long-standing bugs that we're glad to say goodbye to, and several are
4089 fixes for regressions that were introduced as part of the optimization
4090 efforts during the 1.3.x series.
4091
4092 PDF text selection fixed
4093 ------------------------
4094 The inability to correctly select text in cairo-generated PDF has been
4095 a defect ever since the initial support for the PDF backend in the
4096 cairo 1.2.0 release. With the 1.3.14 snapshot, in most situations, and
4097 with most PDF viewer applications, the PDF generated by cairo will
4098 allow text to be correctly selected for copy-and-paste, (as well as
4099 searching).
4100
4101 We're very excited about this new functionality, (and very grateful to
4102 Adrian Johnson, Behdad Esfahbod, and others that have put a lot of
4103 work into this lately). Please test this new ability and give feedback
4104 on the cairo@cairographics.org list.
4105
4106 Many thread-safety issues fixed
4107 -------------------------------
4108 We've discovered that no release of cairo has ever provided safe text
4109 rendering from a multi-threaded application. With the 1.3.14 snapshot
4110 a huge number of the bugs in this area have been fixed, and multiple
4111 application dvelopers have now reported success at writing
4112 multi-threaded applications with cairo.
4113
4114 Other fixes
4115 -----------
4116 Fixed a bug that was causing glyph spacing to be 32 times larger than
4117 desired when using cairo-win32.
4118
4119 Fixed a regression in the rendering of linear gradients that had been
4120 present since the 1.3.8 snapshot.
4121
4122 Fixed several problems in cairo-atsui that were leading to assertion
4123 failures when rendering text.
4124
4125 Fix corrupted results when rendering a transformed source image
4126 surface to an xlib surface. This was a regression that had been
4127 present since the 1.3.2 snapshot.
4128
4129 Fixed PDF output to prevent problems printing from some versions of
4130 Acrobat Reader, (a single glyph was being substituted for every
4131 glyph).
4132
4133 And many other fixes as well, (see the logs for details).
4134
4135 Snapshot 1.3.12 (2007-01-20 Carl Worth <cworth@cworth.org>)
4136 ===========================================================
4137 The relentless march toward the cairo 1.4 release continues, (even if
4138 slightly late out of the starting blocks in 2007). This is the sixth
4139 development snapshot in the 1.3 series. It comes 4 weeks after the
4140 1.3.10 snapshot.
4141
4142 Performance
4143 -----------
4144 As usual, this snapshot has some fun performance improvements to show
4145 off:
4146
4147 image-rgba long-lines-uncropped-100  470.08 -> 4.95: 94.91x speedup
4148 ███████████████████████████████████████████████
4149 image-rgb  long-lines-uncropped-100  461.60 -> 4.96: 93.02x speedup
4150 ██████████████████████████████████████████████
4151
4152 This 100x improvement, (and yes, that's 100x, not 100%), in the image
4153 backend occurs when drawing large shapes where only a fraction of the
4154 shape actually appears in the final result, (the rest being outside
4155 the bounds of the destination surface). Many applications should see
4156 speedups here, and the actual amount of speedup depends on the ratio
4157 of non-visible to visible portions of geometry.
4158
4159 [Note: There remains a similar performance bug when drawing mostly
4160 non-visible objects with the xlib backend. This is due to a similar
4161 bug in the X server itself, but we hope a future cairo snapshot will
4162 workaround that bug to get a similar speedup with the xlib backend.]
4163
4164 image-rgba       unaligned_clip-100    0.09 -> 0.06:  1.67x speedup
4165
4166 image-rgb        unaligned_clip-100    0.09 -> 0.06:  1.66x speedup
4167
4168
4169 This speedup is due to further MMX optimization by Soeren Sandmann for
4170 a case commonly hit when rendering PDF files, (and thanks to Jeff
4171 Muizelaar for writing code to extract the test case for us).
4172
4173 There's another MMX optimization in this snapshot (without a fancy
4174 speedup chart) by Dan Williams which improves compositing performance
4175 specifically for the OLPC machine.
4176
4177 Thanks to Adrian Johnson, cairo's PDF output is now much more
4178 efficient in the way it encodes text output. By reducing redundant
4179 information and adding compression to text output streams, Adrian
4180 achieved a ~25x improvement in the efficiency of encoding text in PDF
4181 files, (was ~45 bytes per glyph and is now ~1.6 bytes per glyph).
4182
4183 Bug fixes
4184 ---------
4185 In addition to those performance improvements, this snapshot includes
4186 several bug fixes:
4187
4188  * A huge number of bug fixes for cairo-atsui text rendering, (for mac
4189    OS X). These bugs affect font selection, glyph positioning, glyph
4190    rendering, etc. One noteworthy bug fixes is that
4191    cairo_select_font_face will no longer arbitrarily select bold nor
4192    italic when not requested, (at least not when using a standard CSS2
4193    font family name such as "serif", "sans-serif", "monospace", etc.).
4194    All these fixes are thanks to Brian Ewins who continues to do a
4195    great job as the new cairo-atsui maintainer.
4196
4197  * Fix PDF output so that images that are scaled down no longer
4198    mysteriously repeat (Carl Worth).
4199
4200  * Fix segfault on Mac OS X dues to attempt to measure extents of a
4201    zero-length string (Behdad Esfahbod).
4202
4203  * Fix text extents to not include the size of initial/trailing
4204    non-inked characters (Behdad Esfahbod).
4205
4206 API tweaks
4207 ----------
4208 Three functions have had API changes to improve consistency. Note that
4209 the API functions being changed here are all functions that were
4210 introduced as new functions during these 1.3.x snapshots. As always,
4211 there will not be any API changes to functions included in a major
4212 release (1.2.x, 1.4.x, etc.) of cairo.
4213
4214 The changes are as follows:
4215
4216  * Rename of cairo_copy_clip_rectangles to cairo_copy_clip_rectangle_list.
4217
4218  * Change cairo_get_dash_count to return an int rather than accepting a
4219    pointer to an int for the return value.
4220
4221  * Change cairo_get_dash to have a void return type rather than
4222    returning cairo_status_t.
4223
4224 It's possible there will be one more round of changes to these
4225 functions, (and perhaps cairo_get_color_stop as well), as we seek to
4226 establish a unifying convention for returning lists of values.
4227
4228 Snapshot 1.3.10 (2006-12-23 Carl Worth <cworth@cworth.org>)
4229 ===========================================================
4230 Santa Claus is coming just a little bit early this year, and he's
4231 bringing a shiny new cairo snapshot for all the good little boys and
4232 girls to play with.
4233
4234 This is the fifth development snapshot in the 1.3 series. It comes 9
4235 days after the 1.3.8 snapshot, and still well within our goal of
4236 having a new snapshot every week, (though don't expect one next
4237 week---we'll all be too stuffed with sugar plums).
4238
4239 Speaking of sugar plums, there's a sweet treat waiting in this cairo
4240 snapshot---greatly improved performance for stroking rectilinear
4241 shapes, like the ever common rectangle:
4242
4243 image-rgb          box-outline-stroke-100 0.18 -> 0.01: 25.58x speedup
4244 ████████████████████████▋
4245 image-rgba         box-outline-stroke-100 0.18 -> 0.01: 25.57x speedup
4246 ████████████████████████▋
4247 xlib-rgb          box-outline-stroke-100 0.49 -> 0.06:  8.67x speedup
4248 ███████▋
4249 xlib-rgba         box-outline-stroke-100 0.22 -> 0.04:  5.39x speedup
4250 ████▍
4251
4252 In past releases of cairo, some people had noticed that using
4253 cairo_stroke to draw rectilinear shapes could be awfully slow. Many
4254 people had worked around this by using cairo_fill with a more complex
4255 path and gotten a 5-15x performance benefit from that.
4256
4257 If you're one of those people, please rip that workaround out, as now
4258 the more natural use of cairo_stroke should be 1.2-2x faster than the
4259 unnatural use of cairo_fill.
4260
4261 And if you hadn't ever implemented that workaround, then you just
4262 might get to see your stroked rectangles now get drawn 5-25x faster.
4263
4264 Beyond that performance fix, there are a handful of bug fixes in this
4265 snapshot:
4266
4267  * Fix for glyph cache race condition in glitz backend (Jinghua Luo)
4268
4269  * Many fixes for ATSUI text rendering (Brian Ewins)
4270
4271  * Un-break recent optimization-triggered regression in rendering text
4272    with a translation in the font matrix (Behdad Esfahbod)
4273
4274  * Fix make check to work on OPD platforms (IA64 or PPC64)
4275    (Frederic Crozat)
4276
4277  * Fix a couple of character spacing issues on Windows
4278     (Jonathan Watt)
4279
4280 Have fun with that, everybody, and we'll be back for more in the new
4281 year, (with a plan to add the last of our performance improvements in
4282 this round, fix a few bad, lingering bugs, and then finish off a nice,
4283 stable 1.4 release before the end of January).
4284
4285 -Carl
4286
4287 Snapshot 1.3.8 (2006-12-14 Carl Worth <cworth@cworth.org>)
4288 ==========================================================
4289 This is the fourth development snapshot in the 1.3 series. It comes
4290 just slightly more than one week after the 1.3.6 snapshot.
4291
4292 After the bug fixes in 1.3.6, we're back to our original program of
4293 weekly snapshots, each one faster than the one from the week
4294 before. Cairo 1.3.8 brings a 2x improvement in the speed of rendering
4295 linear gradients (thanks to David Turner), and a significant reduction
4296 in X traffic when rendering text (thanks to Xan Lopez and Behdad
4297 Esfahbod), making cairo behave very much like Xft does.
4298
4299 A few other things in the 1.3.8 snapshot worth noting include a more
4300 forgiving image comparator in the test suite, (using the "perceptual
4301 diff" metric and GPL implementation by Hector Yee[*]), a bug fix for
4302 broken linking on x86_64 (thanks to M Joonas Pihlaja) and an even
4303 better implementation of _cairo_lround, (not faster, but supporting a
4304 more complete input range), from Daniel Amelang.
4305
4306 [*] http://pdiff.sourceforge.net/
4307
4308 Snapshot 1.3.6 (2006-12-06 Carl Worth <cworth@cworth.org>)
4309 ==========================================================
4310 This is the third development snapshot in the 1.3 series. It comes two
4311 weeks after the 1.3.4 snapshot.
4312
4313 We don't have fancy performance charts this week as the primary
4314 changes in this snapshot are bug fixes. The performance work continues
4315 and the next snapshot (planned for one week from today) should include
4316 several improvements. The bug fixes in this snapshot include:
4317
4318  * Fix undesirable rounding in glyph positioning (Dan Amelang)
4319
4320    This bug was noticed by several users, most commonly by seeing
4321    improper text spacing or scrambled glyphs as drawn by nautilus. For
4322    example:
4323
4324         Update to cairo-1.3.4 worsen font rendering
4325         https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=217819
4326
4327  * Fix reduced range of valid input coordinates to tessellator
4328    (M Joonas Pihlaja)
4329
4330    This bug was causing lots of assertion failures in mozilla as
4331    mentioned here:
4332
4333         CAIRO_BO_GUARD_BITS and coordinate space?
4334         http://lists.freedesktop.org/archives/cairo/2006-December/008743.html
4335
4336  * Fix several regressions in new tessellator (M Joonas Pihlaja)
4337
4338    Joonas just had a good eye for detail here. I don't think any
4339    external cairo users had noticed any of these bugs yet.
4340
4341  * Fix compilation problems of cairo "wideint" code on some platforms
4342    (Mathieu Lacage)
4343
4344  * Fix failed configure due to broken grep (Dan Amelang)
4345
4346    This bug was reported here:
4347
4348         AX_C_FLOAT_WORDS_BIGENDIAN doesn't work because grep doesn't
4349         work with binary file
4350         https://bugs.freedesktop.org/show_bug.cgi?id=9124
4351
4352  * Remove the pkg-config minimum version requirement (Behdad Esfahbod)
4353
4354    Some systems ship with pkg-config 0.15 and there was really no good
4355    reason for cairo to insist on having version 0.19 before it would
4356    build.
4357
4358 There is also one new (but inert) feature in this snapshot. There's a
4359 new option that can be passed to cairo's configure script:
4360
4361         --disable-some-floating-point
4362
4363         Disable certain code paths that rely heavily on double precision
4364         floating-point calculation. This option can improve
4365         performance on systems without a double precision floating-point
4366         unit, but might degrade performance on those that do.
4367
4368 As of this snapshot, this option does not make any change to cairo,
4369 but it is possible that future versions of cairo will respect this
4370 option and change the implementation of various functions as
4371 appropriate.
4372
4373 Snapshot 1.3.4 (2006-11-22 Carl Worth <cworth@cworth.org>)
4374 ==========================================================
4375 This is the second development snapshot in the 1.3 series. It comes
4376 one week after the 1.3.2 snapshot.
4377
4378 This snapshot has a couple of significant performance improvements,
4379 and also adds new support for producing multi-page SVG output, (when
4380 targeting SVG 1.2)---thanks to Emmanuel Pacaud. The details of the
4381 performance improvements are as follows:
4382
4383 1. The long-awaited "new tessellator".
4384
4385    The credit for this being an improvement goes to Joonas Pihlaja. He
4386    took my really slow code and really put it through its paces to get
4387    the dramatic performance improvement seen below (up to 38x faster
4388    on realistic cases, and more than 10x faster for the zrusin_another
4389    test).
4390
4391    His own writeup of the work he did is quite thorough, but more than
4392    can be quoted here. Please see his post for the interesting details:
4393
4394    http://lists.freedesktop.org/archives/cairo/2006-November/008483.html
4395
4396    (Though note that this snapshot also includes some additional,
4397    significant improvements that were only sketched out in that
4398    email---see "Generating fewer trapezoids").
4399
4400 2. More floating-point improvements
4401
4402    Daniel Amelang continues to work the magic he began in the 1.3.2
4403    snapshot. This time he short-circuits floating-point
4404    transformations by identity matrices and applies the earlier
4405    floating-to-fixed-point technique to the problem of rounding.
4406
4407    The improvements here will primarily benefit text performance, and
4408    will benefit platforms without hardware floating-point more than
4409    those that have it, (some text tests show 20% improvement on an x86
4410    machine and closer to 80% improvement on arm).
4411
4412 The performance chart comparing 1.3.2 to 1.3.4 really speaks for
4413 itself, (this is on an x86 laptop). This is quite a lot of progress
4414 for one week:
4415
4416  xlib-rgb    stroke_similar_rgba_over-256   74.99 1.45% ->   2.03 68.38%: 36.86x speedup
4417 ███████████████████████████████████▉
4418  xlib-rgb  stroke_similar_rgba_source-256   78.23 1.43% ->   3.30 67.05%: 23.71x speedup
4419 ██████████████████████▊
4420  xlib-rgba             tessellate-256-100  820.42 0.15% ->  35.06 2.84%: 23.40x speedup
4421 ██████████████████████▍
4422 image-rgba             tessellate-256-100  819.55 0.32% ->  35.04 3.56%: 23.39x speedup
4423 ██████████████████████▍
4424  xlib-rgb      stroke_image_rgba_over-256   78.10 1.43% ->   4.33 65.56%: 18.04x speedup
4425 █████████████████
4426  xlib-rgb    stroke_image_rgba_source-256   80.11 1.63% ->   5.75 63.99%: 13.94x speedup
4427 █████████████
4428  xlib-rgba  zrusin_another_tessellate-415   89.22 0.35% ->   8.38 5.23%: 10.65x speedup
4429 █████████▋
4430 image-rgba  zrusin_another_tessellate-415   87.38 0.89% ->   8.37 5.22%: 10.44x speedup
4431 █████████▍
4432 image-rgba        zrusin_another_fill-415  117.67 1.34% ->  12.88 2.77%:  9.14x speedup
4433 ████████▏
4434  xlib-rgba        zrusin_another_fill-415  140.52 1.57% ->  15.79 2.88%:  8.90x speedup
4435 ███████▉
4436 image-rgba              tessellate-64-100    9.68 3.42% ->   1.42 0.60%:  6.82x speedup
4437 █████▉
4438  xlib-rgba              tessellate-64-100    9.78 4.35% ->   1.45 0.83%:  6.72x speedup
4439 █████▊
4440  xlib-rgb     stroke_linear_rgba_over-256   46.01 2.44% ->   7.74 54.51%:  5.94x speedup
4441 █████
4442  xlib-rgb   stroke_linear_rgba_source-256   48.09 2.15% ->   9.14 53.00%:  5.26x speedup
4443 ████▎
4444  xlib-rgb     stroke_radial_rgba_over-256   50.96 2.34% ->  12.46 47.99%:  4.09x speedup
4445 ███▏
4446  xlib-rgb   stroke_radial_rgba_source-256   53.06 1.57% ->  13.96 46.57%:  3.80x speedup
4447 ██▊
4448 image-rgba  paint_similar_rgba_source-256    0.12 1.57% ->   0.08 9.92%:  1.42x speedup
4449
4450 image-rgba    paint_image_rgba_source-256    0.12 2.49% ->   0.08 10.70%:  1.41x speedup
4451
4452 image-rgba                  world_map-800  356.28 0.46% -> 275.72 1.15%:  1.29x speedup
4453
4454  xlib-rgba                  world_map-800  456.81 0.39% -> 357.95 1.39%:  1.28x speedup
4455
4456 image-rgb               tessellate-16-100    0.09 0.57% ->   0.07 3.43%:  1.23x speedup
4457
4458 image-rgba              tessellate-16-100    0.09 0.06% ->   0.07 2.46%:  1.23x speedup
4459
4460 image-rgba        text_solid_rgb_over-256    5.39 4.01% ->   4.47 0.70%:  1.21x speedup
4461
4462 image-rgba       text_solid_rgba_over-256    5.37 0.82% ->   4.45 0.75%:  1.21x speedup
4463
4464 image-rgba        text_image_rgb_over-64     0.78 0.10% ->   0.65 0.74%:  1.20x speedup
4465
4466 image-rgba       text_image_rgba_over-64     0.78 0.29% ->   0.65 0.68%:  1.19x speedup
4467
4468 image-rgb         text_solid_rgb_over-64     0.76 2.45% ->   0.63 0.81%:  1.19x speedup
4469
4470 image-rgba       text_solid_rgba_over-64     0.76 0.33% ->   0.64 0.66%:  1.19x speedup
4471
4472 image-rgba     text_similar_rgba_over-256    5.99 4.72% ->   5.04 1.09%:  1.19x speedup
4473
4474
4475 We should point out that there is some potential for slowdown in this
4476 snapshot. The following are the worst slowdowns reported by the cairo
4477 performance suite when comparing 1.3.2 to 1.3.4:
4478
4479 image-rgba              subimage_copy-256    0.01 0.87% ->   0.01 3.61%:  1.45x slowdown
4480
4481  xlib-rgb        paint_solid_rgb_over-256    0.31 10.23% ->   0.38 0.33%:  1.26x slowdown
4482
4483 image-rgba           box-outline-fill-100    0.01 0.30% ->   0.01 2.52%:  1.21x slowdown
4484
4485 image-rgba        fill_solid_rgb_over-64     0.20 1.22% ->   0.22 1.59%:  1.12x slowdown
4486
4487 image-rgb       fill_similar_rgb_over-64     0.21 1.04% ->   0.24 1.06%:  1.11x slowdown
4488
4489 image-rgba        fill_image_rgb_over-64     0.21 1.19% ->   0.24 0.72%:  1.11x slowdown
4490
4491 image-rgba      fill_similar_rgb_over-64     0.21 0.18% ->   0.24 0.30%:  1.11x slowdown
4492
4493 image-rgb        fill_solid_rgba_over-64     0.22 1.66% ->   0.24 1.15%:  1.11x slowdown
4494
4495 image-rgb         fill_image_rgb_over-64     0.21 0.14% ->   0.24 0.80%:  1.11x slowdown
4496
4497 image-rgba       fill_image_rgba_over-64     0.22 1.34% ->   0.25 0.20%:  1.11x slowdown
4498
4499 image-rgba       fill_solid_rgba_over-64     0.22 1.48% ->   0.24 0.95%:  1.11x slowdown
4500
4501 image-rgb      fill_similar_rgba_over-64     0.22 1.13% ->   0.25 1.25%:  1.10x slowdown
4502
4503
4504 The 45% slowdown for subimage_copy is an extreme case. It's unlikely
4505 to hit many applications unless they often use cairo_rectangle;
4506 cairo_fill to copy a single pixel at a time. In any case, it shows a
4507 worst-case impact of the overhead of the new tessellator. The other
4508 slowdowns (~ 10%) are probably more realistic, and still very
4509 concerning.
4510
4511 We will work to ensure that performance regressions like these are not
4512 present from one major release of cairo to the next, (for example,
4513 from 1.2 to 1.4).
4514
4515 But we're putting this 1.3.4 snapshot out there now, even with this
4516 potential slowdown so that people can experiment with it. If you've
4517 got complex geometry, we hope you will see some benefit from the new
4518 tessellator. If you've got primarily simple geometry, we hope things
4519 won't slowdown too much, but please let us know what slowdown you see,
4520 if any, so we can calibrate our performance suite against real-world
4521 impacts.
4522
4523 Thanks, and have fun with cairo!
4524
4525 Snapshot 1.3.2 (2006-11-14 Carl Worth <cworth@cworth.org>)
4526 ==========================================================
4527 This is the first development snapshot since the 1.2 stable series
4528 branched off shortly after the 1.2.4 release in August 2006.
4529
4530 This snapshot includes all the bug fixes from the 1.2.6 release,
4531 (since they originated here on the 1.3 branch first and were
4532 cherry-picked over to 1.2). But more importantly, it contains some new
4533 API in preparation for a future 1.4 release, and most importantly, it
4534 contains several performance improvements.
4535
4536 The bug fixes will not be reviewed here, as most of them are already
4537 described in the 1.2.6 release notes. But details for the new API and
4538 some performance improvements are included here.
4539
4540 As with all snapshots, this is experimental code, and the new API
4541 added here is still experimental and is not guaranteed to appear
4542 unchanged in any future release of cairo.
4543
4544 API additions
4545 -------------
4546 Several new API additions are available in this release. There is a
4547 common theme among all the additions in that they allow cairo to
4548 advertise information about its state that it was refusing to
4549 volunteer earlier. So this isn't groundbreaking new functionality, but
4550 it is essential for easily achieving several tasks.
4551
4552 The new functions can be divided into three categories:
4553
4554         Getting information about the current clip region
4555         -------------------------------------------------
4556         cairo_clip_extents
4557         cairo_copy_clip_rectangles
4558         cairo_rectangle_list_destroy
4559
4560         Getting information about the current dash setting
4561         --------------------------------------------------
4562         cairo_get_dash_count
4563         cairo_get_dash
4564
4565         Getting information from a pattern
4566         ----------------------------------
4567         cairo_pattern_get_rgba
4568         cairo_pattern_get_surface
4569         cairo_pattern_get_color_stop_rgba
4570         cairo_pattern_get_color_stop_count
4571         cairo_pattern_get_linear_points
4572         cairo_pattern_get_radial_circles
4573
4574 In each of these areas, we have new API for providing a list of
4575 uniform values from cairo. The closest thing we had to this before was
4576 cairo_copy_path, (which is rather unique in providing a list of
4577 non-uniform data).
4578
4579 The copy_clip_rectangles/rectangle_list_destroy functions follow a
4580 style similar to that of cairo_copy_path. Meanwhile, the dash and
4581 pattern color stop functions introduce a new style in which there is a
4582 single call to return the number of elements available (get_dash_count
4583 and get_color_stop_count) and then a function to be called once to get
4584 each element (get_dash and get_color_stop_rgba).
4585
4586 I'm interested in hearing feedback from users of these new API
4587 functions, particularly from people writing language bindings. One
4588 open question is whether the clip "getter" functionality should adopt
4589 a style similar to that of the new dash and color_stop interfaces.
4590
4591 API deprecation
4592 ---------------
4593 The CAIRO_FORMAT_RGB16_565 enum value has been deprecated. It never
4594 worked as a format value for cairo_image_surface_create, and it wasn't
4595 necessary for supporting 16-bit 565 X server visuals.
4596
4597 XCB backend changes
4598 -------------------
4599 The XCB backend has been updated to track the latest XCB API (which
4600 recently had a 1.0 release).
4601
4602 New quartz backend
4603 ------------------
4604 Vladimir Vukicevic has written a new "native quartz" backend which
4605 will eventually replace the current "image-surface wrapping" quartz
4606 backend. For now, both backends are available, (the old one is
4607 "quartz" and the new one is "nquartz"). But it is anticipated that the
4608 new backend will replace the old one and take on the "quartz" name
4609 before this backend is marked as supported in a release of cairo.
4610
4611 New OS/2 backend
4612 ----------------
4613 Doodle and Peter Weilbacher have contributed a new, experimental
4614 backend for using cairo on OS/2 systems.
4615
4616 Performance improvements
4617 ------------------------
4618 Here are some highlights from cairo's performance suite showing
4619 improvements from cairo 1.2.6 to cairo 1.3.2. The command used to
4620 generate this data is:
4621
4622         ./cairo-perf-diff 1.2.6 HEAD
4623
4624 available in the perf/ directory of a recent checkout of cairo's
4625 source, (the cairo-perf-diff script does require a git checkout and
4626 will not work from a tar file---though ./cairo-perf can still be used
4627 to generate a single report there and ./cairo-perf-diff-files can be
4628 used to compare two reports).
4629
4630 Results are described below both for an x86 laptop (with an old Radeon
4631 video card, recent X.org build, XAA, free software drivers), as well
4632 as for a Nokia 770. First the x86 results with comments on each, (all
4633 times are reported in milliseconds).
4634
4635 Copying subsets of an image surface to an xlib surface (much faster)
4636 --------------------------------------------------------------------
4637  xlib-rgba              subimage_copy-512   10.50 ->   : 53.97x speedup
4638 █████████████████████████████████████████████████████
4639
4640 Thanks to Christopher (Monty) Montgomery for this big performance
4641 improvement. Any application which has a large image surface and is
4642 copying small pieces of it at a time to an xlib surface, (imagine an
4643 application that loads a single image containing all the "sprites" for
4644 that application), will benefit from this fix. The larger the ratio of
4645 the image surface to the portion being copied, the larger the benefit.
4646
4647 Floating-point conversion (3x faster)
4648 -------------------------------------
4649  xlib-rgba  pattern_create_radial-16    27.75 ->   3.93 :  2.94x speedup
4650 ██
4651 image-rgb   pattern_create_radial-16    26.06 ->   3.74 :  2.90x speedup
4652 █▉
4653
4654 Thanks to Daniel Amelang, (and others who had contributed the idea
4655 earlier), for this nice improvement in the speed of converting
4656 floating-point values to fixed-point.
4657
4658 Text rendering (1.3 - 2x faster)
4659 ------------------------------
4660  xlib-rgba text_image_rgba_source-256  319.73 ->  62.40 :  2.13x speedup
4661 █▏
4662 image-rgb    text_solid_rgba_over-64     2.85 ->   0.88 :  1.35x speedup
4663
4664
4665 I don't think we've ever set out to improve text performance
4666 specifically, but we did it a bit anyway. I believe the extra
4667 improvement in the xlib backend is due to Monty's image copying fix
4668 above, and the rest is due to the floating-point conversion speedup.
4669
4670 Thin stroke improvements (1.5x faster)
4671 ---------------------------------------------
4672 image-rgb               world_map-800  1641.09 -> 414.77 :  1.65x speedup
4673
4674  xlib-rgba              world_map-800  1939.66 -> 529.94 :  1.52x speedup
4675
4676
4677 The most modest stuff to announce in this release is the 50%
4678 improvement I made in the world_map case. This is in improvement that
4679 should help basically anything that is doing strokes with many
4680 straight line segments, (and the thinner the better, since that makes
4681 tessellation dominate rasterization). The fixes here are to use a
4682 custom quadrilateral tessellator rather than the generic tessellator
4683 for straight line segments and the miter joins.
4684
4685 Performance results from the Nokia 770
4686 --------------------------------------
4687  xlib-rgba          subimage_copy-512     55.88 ->     2.04 : 27.34x speedup
4688 ██████████████████████████▍
4689  xlib-rgb     text_image_rgb_over-256   1487.58 ->   294.43 :  5.05x speedup
4690 ████
4691 image-rgb   pattern_create_radial-16     187.13 ->    91.86 :  2.04x speedup
4692
4693  xlib-rgba              world_map-800  21261.41 -> 15628.02 :  1.36x speedup
4694
4695
4696 Here we see that the subimage_copy improvement was only about half as
4697 large as the corresponding improvement on my laptop, (27x faster
4698 compared to 54x) and the floating-point conversion fix also was quite
4699 as significant, (2x compared to 3x). Oddly the improvement to text
4700 rendering performance was more than twice as good (5x compared to
4701 2x). I don't know what the reason for that is, but I don't think it's
4702 anything anybody should complain about.
4703
4704 Release 1.2.6 (2006-11-02 Behdad Esfahbod <behdad@behdad.org>)
4705 ==============================================================
4706 This is the third bug fix release in the 1.2 series, coming less than
4707 two months after the 1.2.4 release made on August 18.
4708
4709 The 1.2.4 release turned out to be a pretty solid one, except for a crasher
4710 bug when forwarding an X connection where the client and the server have
4711 varying byte orders, eg. from a PPC to an i686.  Other than that, various
4712 other small bugs have been fixed.
4713
4714 Various improvements have been made in the testing infrastructure to prevent
4715 false positives, and to make sure the generated cairo shared object behaves as
4716 expected in terms of exported symbols and relocations.
4717
4718 There were a total of 89 changes since 1.2.4.  The following list the most
4719 important ones:
4720
4721 Common fixes
4722 ------------
4723 - Avoid unsigned loop control variable to eliminate infinite,
4724   memory-scribbling loop. (#7593)
4725 - Fix cairo_image_surface_create to report INVALID_FORMAT errors.
4726   Previously the detected error was being lost and a nil surface was
4727   returned that erroneously reported CAIRO_STATUS_NO_MEMORY.
4728 - Change _cairo_color_compute_shorts to not rely on any particular
4729   floating-point epsilon value. (#7497)
4730 - Fix infinite-join test case (bug #8379)
4731 - Pass correct surface to create_similar in _cairo_clip_init_deep_copy().
4732
4733 PS/PDF fixes
4734 ------------
4735 - Fix Type 1 embedding in PDF.
4736 - Correct the value of /LastChar in the PDF Type 1 font dictionary.
4737 - Improve error checking in TrueType subsetting.
4738 - Compute right index when looking up left side bearing. (bug #8180)
4739 - Correct an unsigned to signed conversion problem in truetype subsetting
4740   bbox.
4741 - Type1 subsetting: Don't put .notdef in Encoding when there are 256 glyphs.
4742 - Add cairo version to PS header / PDF document info dictionary.
4743 - Set CTM before path construction.
4744
4745 Win32 fixes
4746 -----------
4747 - Get correct unhinted outlines on win32. (bug 7603)
4748 - Make cairo as a win32 static library possible.
4749 - Use CAIRO_FORMAT_RGB24 for BITSPIXEL==32 surfaces too.
4750
4751 Build system fixes
4752 ------------------
4753 - Define WINVER if it's not defined. (bug 6456)
4754 - Fix the AMD64 final link by removing SLIM from pixman.
4755 - Misc win32 compilation fixes.
4756 - Add Sun Pro C definition of pixman_private.
4757 - Use pixman_private consistently as prefix not suffix.
4758 - Added three tests check-plt.sh, check-def.sh, and check-header.sh that check
4759   that the shared object, the .def file, and the public headers agree about
4760   the exported symbols.
4761 - Require pkg-config 0.19. (#8686)
4762
4763
4764 Release 1.2.4 (2006-08-18 Carl Worth <cworth@cworth.org>)
4765 =========================================================
4766 This is the second bug fix release in the 1.2 series, coming less than
4767 two weeks after the 1.2.2 release made on August 8.
4768
4769 The big motivation for a quick release was that there were a log of
4770 build system snags that people ran into with the 1.2.2 release. But,
4771 by the time we got those all done, we found that we had a bunch of
4772 fixes for cairo's rendering as well. So there's a lot of goodness in
4773 here for such a short time period.
4774
4775 Rendering fixes
4776 ---------------
4777 Fix image surfaces to not be clipped when used as a source (Vladimir Vukicevic)
4778 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=72e25648c4c4bc82ddd938aa4e05887a293f0d8b
4779
4780 Fix a couple of corner cases in dashing degenerate paths (Jeff Muizelaar)
4781 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=fbb1758ba8384650157b2bbbc93d161b0c2a05f0
4782
4783 Fix support for type1 fonts on win32 (Adrian Johnson)
4784 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=da1019c9138695cb838a54f8b871bbfd0e8996d7
4785
4786 Fix assertion failure when rotating bitmap fonts (Carl Worth)
4787 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=0bfa6d4f33b8ddb5dc55bbe419c15df4af856ff9
4788
4789 Fix assertion failure when calling cairo_text_path with bitmap fonts (Carl Worth)
4790 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=9878a033531e6b96b5f27e69e10e90dee7440cd9
4791
4792 Fix mis-handling of cairo_close_path in some situations (Tim Rowley, Carl Worth)
4793 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=53f74e59faf1af78f2f0741ccf1f23aa5dad4efc
4794
4795 Respect font_matrix translation in _cairo_gstate_glyph_path (Behdad Esfahbod)
4796 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=f183b835b111d23e838889178aa8106ec84663b3
4797
4798 Fix vertical metrics adjustment to work with non-identity shapes (Behdad Esfahbod)
4799 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=b7bc263842a798d657a95e539e1693372448837f
4800
4801 [PS] Set correct ImageMatrix in _cairo_ps_surface_emit_bitmap_glyph_data (Behdad Esfahbod)
4802 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=d47388ad759b0a1a0869655a87d9b5eb6ae2445d
4803
4804 Build system fixes
4805 ------------------
4806 Fix xlib detection to prefer pkg-config to avoid false libXt dependency (Behdad Esfahbod)
4807 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=0e78e7144353703cbd28aae6a67cd9ca261f1d68
4808
4809 Fix typos causing win32 build problem with PS,PDF, and SVG backends (Behdad Esfahbod)
4810 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=aea83b908d020e26732753830bb3056e6702a774
4811
4812 Fix configure cache to not use stale results (Behdad Esfahbod)
4813 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=6d0e3260444a2d5b6fb0cb223ac79f1c0e7b3a6e
4814
4815 Fix to not pass unsupported warning options to the compiler (Jens Granseuer)
4816 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=97524a8fdb899de1ae4a3e920fb7bda6d76c5571
4817
4818 Fix to allow env. variables such as png_REQUIRES to override configure detection (Jens Granseuer)
4819 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=abd16e47d6331bd3811c908e524b4dcb6bd23bf0
4820
4821 Fix test suite to not use an old system cairo when converting svg2png (Behdad Esfahbod)
4822 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=6122cc85c8f71b1ba2df3ab86907768edebe1781
4823
4824 Fix test suite to not require signal.h to be present (Behdad Esfahbod)
4825 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=6f8cf53b1e1ccdbe1ab6a275656b19c6e5120e40
4826
4827 Code cleanups
4828 -------------
4829 Many useful warnings cleanups from sparse, valgrind, and careful eyes
4830 (Kjartan Maraas, Pavel Roskin)
4831
4832 Release 1.2.2 (2006-08-08 Carl Worth <cworth@cworth.org>)
4833 =========================================================
4834 This is the first bug fix release in the 1.2 series since the original
4835 1.2.0 release made six weeks ago.
4836
4837 There were some very serious bugs in the 1.2.0 release, (see below),
4838 so everybody is encouraged to upgrade from 1.2.0 to 1.2.2. The 1.2.2
4839 release maintains source and binary compatibility with 1.2.0 and does
4840 not make any API additions.
4841
4842 Fix crashes with BGR X servers
4843 ------------------------------
4844 With cairo 1.2.0 many people reported problems with all cairo-using
4845 programs, (including all GTK+ programs with GTK+ >= 2.8) immediately
4846 crashing with a complaint about an unsupported image format. This bug
4847 affected X servers that do not provide the Render extension and that
4848 provide a visual with BGR rather than RGB channel order.
4849
4850 report: https://bugs.freedesktop.org/show_bug.cgi?id=7294
4851 fix:    http://gitweb.freedesktop.org/?p=cairo;a=commit;h=9ae66174e774b57f16ad791452ed44efc2770a59
4852
4853 Fix the "disappearing text" bug
4854 -------------------------------
4855 With cairo 1.2.0 many people reported that text would disappear from
4856 applications, sometimes reappearing with mouse motion or
4857 selection. The text would disappear after the first space in a string
4858 of text. This bug was caused by an underlying bug in (very common) X
4859 servers, and only affected text rendered without antialiasing, (either
4860 a bitmap font or a vector font with antialiasing disabled). The bug
4861 was also exacerbated by a KDE migration bug that caused antialiasing
4862 to be disabled more than desired.
4863
4864 report: https://bugs.freedesktop.org/show_bug.cgi?id=7494
4865 fix:    http://gitweb.freedesktop.org/?p=cairo;a=commit;h=456cdb3058f3b416109a9600167cd8842300ae14
4866 see also:
4867 Xorg:   https://bugs.freedesktop.org/show_bug.cgi?id=7681
4868 KDE:    http://qa.mandriva.com/show_bug.cgi?id=23990
4869
4870 Fix broken image fallback scaling (aka. "broken printing")
4871 ----------------------------------------------------------
4872 The various "print" backends, (pdf, ps, and svg), sometimes fallback
4873 to using image-based rendering for some operations. In cairo 1.2.0
4874 these image fallbacks were scaled improperly. Applications using cairo
4875 can influence the resolution of the image fallbacks with
4876 cairo_surface_set_fallback_resolution. With the bug, any value other
4877 than 72.0 would lead to incorrect results, (larger values would lead
4878 to increasingly shrunken output).
4879
4880 report: https://bugs.freedesktop.org/show_bug.cgi?id=7533
4881 fix:    http://gitweb.freedesktop.org/?p=cairo;a=commit;h=1feb4291cf7813494355459bb547eec604c54ffb
4882
4883 Fix inadvertent semantic change of font matrix translation (Behdad Esfahbod)
4884 ----------------------------------------------------------------------------
4885 The 1.2.0 release introduced an inadvertent change to how the
4886 translation components of a font matrix are interpreted. In the 1.0
4887 series, font matrix translation could be used to offset the glyph
4888 origin, (though glyph metrics were reported incorrectly in
4889 1.0). However in 1.2.0, the translation was applied to the advance
4890 values between each glyph. The 1.2.0 behavior is fairly useless in
4891 practice, and it was not intentional to introduce a semantic
4892 change. With 1.2.2 we return to the 1.0 semantics, with a much better
4893 implementation that provides correct glyph metrics.
4894
4895 fix:    http://gitweb.freedesktop.org/?p=cairo;a=commit;h=84840e6bba6e72aa88fad7a0ee929e8955ba9051
4896
4897 Fix create_similar to preserve fallback resolution and font options (Behdad Esfahbod)
4898 -------------------------------------------------------------------------------------
4899 There has been a long-standing issue with cairo_surface_create_similar
4900 such that font options and other settings from the original
4901 destination surface would not be preserved to the intermediate
4902 "similar" surface. This could result in incorrect rendering
4903 (particularly with respect to text hinting/antialiasing) with
4904 fallbacks, for example.
4905
4906 report: https://bugs.freedesktop.org/show_bug.cgi?id=4106
4907 fixes:  http://gitweb.freedesktop.org/?p=cairo;a=commit;h=9fcb3c32c1f16fe6ab913e27eb54d18b7d9a06b0
4908         http://gitweb.freedesktop.org/?p=cairo;a=commit;h=bdb4e1edadb78a2118ff70b28163f8bd4317f1ec
4909
4910 xlib: Fix text performance regression from 1.0 to 1.2.0 (Vladimir Vukicevic)
4911 ----------------------------------------------------------------------------
4912 Several people noticed that upgrading from cairo 1.0 to cairo 1.2.0
4913 caused a significant performance regression when using the xlib
4914 backend. This performance regression was particularly noticeable when
4915 doing lots of text rendering and when using a high-latency connection
4916 to the X server, (such as a remote X server over an ssh
4917 connection). The slowdown was identified and fixed in 1.2.2.
4918
4919 report: https://bugs.freedesktop.org/show_bug.cgi?id=7514
4920 fix:    http://gitweb.freedesktop.org/?p=cairo;a=commit;h=b7191885c88068dad57d68ced69a752d1162b12c
4921
4922 PDF: Eliminate dependency on FreeType library dependency (Adrian Johnson)
4923 -------------------------------------------------------------------------
4924 The cairo 1.2 series adds a supported pdf backend to cairo. In cairo
4925 1.2.0 this backend required the freetype library, which was an
4926 undesirable dependency on systems such as win32, (cairo is designed to
4927 always prefer the "native" font system). As of cairo 1.2.2 the
4928 freetype library is not required to use the pdf backend on the win32
4929 platform.
4930
4931 report: https://bugs.freedesktop.org/show_bug.cgi?id=7538
4932 fix:    http://gitweb.freedesktop.org/?p=cairo;a=commit;h=a0989f427be87c60415963dd6822b3c5c3781691
4933
4934 PDF: Fix broken output on amd64 (Adrian Johnson)
4935 ------------------------------------------------
4936 report: http://bugzilla.gnome.org/show_bug.cgi?id=349826
4937 fix:    http://gitweb.freedesktop.org/?p=cairo;a=commit;h=f4b12e497b7ac282b2f6831b8fb68deebc412e60
4938
4939 PS: Fix broken output for truetype fonts > 64k (Adrian Johnson)
4940 ---------------------------------------------------------------
4941 fix:    http://gitweb.freedesktop.org/?p=cairo;a=commit;h=067d97eb1793a6b0d0dddfbd0b54117844511a94
4942
4943 PDF: Fix so that dashing doesn't get stuck on (Kent Worsnop)
4944 ------------------------------------------------------------
4945 Kent notices that with the PDF backend in cairo 1.2.0 as soon as a
4946 stroke was performed with dashing, all subsequent strokes would also
4947 be dashed. There was no way to turn dashing off again.
4948
4949 fix:    http://gitweb.freedesktop.org/?p=cairo;a=commit;h=778c4730a86296bf0a71080cf7008d7291792256
4950
4951 Fix memory leaks in failure paths in gradient creation (Alfred Peng)
4952 --------------------------------------------------------------------
4953 fix:    http://gitweb.freedesktop.org/?p=cairo;a=commit;h=db06681b487873788b51a6766894fc619eb8d8f2
4954
4955 Fix memory leak in _cairo_surface_show_glyphs (Chris Wilson)
4956 ------------------------------------------------------------
4957 report: https://bugs.freedesktop.org/show_bug.cgi?id=7766
4958 fix:    http://gitweb.freedesktop.org/?p=cairo;a=commit;h=e2fddcccb43d06486d3680a19cfdd5a54963fcbd
4959
4960 Solaris: Add definition of cairo_private for some Sun compilers (Alfred Peng)
4961 -----------------------------------------------------------------------------
4962 report: https://bugzilla.mozilla.org/show_bug.cgi?id=341874
4963 fix:    http://gitweb.freedesktop.org/?p=cairo;a=commit;h=04757a3aa8deeff3265719ebe01b021638990ec6
4964
4965 Solaris: Change version number of Sun's Xorg server with buggy repeat (Brian Cameron)
4966 -------------------------------------------------------------------------------------
4967 report: https://bugs.freedesktop.org/show_bug.cgi?id=7483
4968 fix:    http://gitweb.freedesktop.org/?p=cairo;a=commit;h=e0ad1aa995bcec4246c0b8ab0d5a5a79871ce235
4969
4970 Various memory leak fixes
4971 -------------------------
4972 Fix memory leak in _cairo_surface_show_glyphs (bug 7766)
4973 Fix file handle leak in failure path (bug 7616)
4974 Fix some memory leaks in the test cases.
4975 Fix some memory leaks in font subsetting code used in print backends.
4976
4977 Documentation improvements (Behdad Esfahbod)
4978 --------------------------------------------
4979 Added new documentation for several functions (cairo_show_page,
4980 cairo_copy_page, cairo_in_stroke, cairo_in_fill).
4981
4982 Fixed some syntax errors that were preventing some existing
4983 documentation from being published.
4984
4985 Fixed several minor typographical errors.
4986
4987 Added an index for new symbols in 1.2.
4988
4989 Release 1.2.0 (2006-06-27 Carl Worth <cworth@cworth.org>)
4990 =========================================================
4991 This is the culmination of the work that has gone on within the 1.1
4992 branch of cairo.
4993
4994 There has been one API addition since the cairo 1.1.10 snapshot:
4995
4996         cairo_xlib_surface_get_width
4997         cairo_xlib_surface_get_height
4998
4999 There's also a new feature without any API change:
5000
5001         Dots can now be drawn by using CAIRO_LINE_CAP_ROUND with
5002         degenerate sub-paths, (cairo_move_to() followed by either
5003         cairo_close_path() or a cairo_line_to() to the same location).
5004
5005 And at least the following bugs have been fixed:
5006
5007  6759  fontconfig option AntiAlias doesn't work in cairo 1.1.2
5008  6955  Some characters aren't displayed when using xlib (cache u...
5009  7268  positive device_offset values don't work as source
5010  * PDF emit_glyph function needs to support bitmapped glyphs
5011  * PS emit_glyph function needs to support bitmapped glyphs
5012  * SVG emit_glyph function needs to support bitmapped glyphs
5013  * PDF: minefield page one is falling back unnecessarily
5014  * PS/PDF: Fix broken placement for vertical glyphs
5015  * PS: Fix to not draw BUTT-capped zero-length dash segments
5016  * Do device offset before float->fixed conversion
5017    http://bugzilla.gnome.org/show_bug.cgi?id=332266
5018  * PS: Fix source surfaces with transformations
5019  * PS: Fix to not draw BUTT-capped degnerate sub-paths
5020  * PS: Don't walk off end of array when printing "~>"
5021  * Fix some memory leaks in the test suite rig
5022  * SVG: Fix memory leak when using cairo_mask
5023  * Fix EXTEND_REFLECT and EXTEND_PAD to not crash (though these are
5024    still not yet fully implemented for surface patterns).
5025
5026 This has been a tremendous effort by everyone, and I'm proud to have
5027 been a part of it. Congratulations to all contributors to cairo!
5028
5029 Snapshot 1.1.10 (2006-06-16 Carl Worth <cworth@cworth.org>)
5030 ===========================================================
5031 This is the fifth in a series of snapshots working toward the 1.2
5032 release of cairo.
5033
5034 The primary motivation for this snapshot is to fix a long-standing bug
5035 that had long been silent, but as of the 1.1.8 snapshot started
5036 causing crashes when run against 16-bit depth X servers, (often Xvnc
5037 or Xnest). The fix for this adds a new CAIRO_FORMAT_RGB16_565 to the
5038 API.
5039
5040 This snapshot also includes a rewrite of cairo's SVG backend to
5041 eliminate the dependency on libxml2. With this in place, cairo 1.2
5042 will not depend on any libraries that cairo 1.0 did not.
5043
5044 As usual, there are also a few fixes for minor bugs.
5045
5046 Snapshot 1.1.8 (2006-06-14 Carl Worth <cworth@cworth.org>)
5047 ==========================================================
5048 This is the fourth in a series of snapshots working toward the 1.2
5049 release of cairo. At this point, all major features of the 1.2 release
5050 are in place, leaving just a few bug fixes left.
5051
5052 In particular, there well be no additional API changes between this
5053 1.1.8 snapshot and the 1.2 release.
5054
5055 The announcement for 1.1.6 mentioned several API changes being
5056 considered. Only one of these changes was actually implemented
5057 (set_dpi -> fallback_resolution). This change does introduce one
5058 source-level incompatibility with respect to previous 1.1.x snapshots,
5059 so see below for details.
5060
5061 Here is an abbreviated summary of changes since the 1.1.6 snapshot:
5062
5063 ** API Change **
5064 ----------------
5065 According to the plan mentioned in the 1.1.6 notes, one source-level
5066 incompatible change has been implemented. The following three
5067 functions have been removed from cairo's API:
5068
5069         cairo_pdf_surface_set_dpi
5070         cairo_ps_surface_set_dpi
5071         cairo_svg_surface_set_dpi
5072
5073 and in their place the following function has been added:
5074
5075         cairo_surface_set_fallback_resolution
5076
5077 The signature and semantics of the function remains the same, so it is
5078 a simple matter of changing the name of the function when calling
5079 it. As a transition mechanism, this snapshot will (on many systems)
5080 build to include the old symbols so that code previously compiled will
5081 still run. However, all source code using the old names must be
5082 updated before it will compile. And the upcoming 1.2 release is not
5083 anticipated to include the old symbols.
5084
5085 Finally, it should be pointed out that the old symbols never existed
5086 in the supported API of any stable release of cairo. (In the stable
5087 1.0 releases the PDF, PS, and SVG backends were advertised as
5088 experimental and unstable.)
5089
5090 And, as always, cairo continues to maintain source and binary
5091 compatibility between major releases. So applications compiled against
5092 supported backends in a stable release of cairo (1.0.4 say) will
5093 continue to compile and run without modification against new major
5094 releases (1.2.0 say) without modification.
5095
5096 API additions
5097 -------------
5098 The following new functions have been added to cairo's API:
5099
5100         cairo_surface_get_content
5101         cairo_debug_reset_static_data
5102         cairo_image_surface_get_data
5103         cairo_image_surface_get_format
5104         cairo_image_surface_get_stride
5105         cairo_win32_font_face_create_for_hfont
5106
5107 New, backend-specific pkg-config files
5108 --------------------------------------
5109 In addition to the original cairo.pc file, cairo will also now install
5110 a pkg-config files for each configured backend, (for example
5111 cairo-pdf.pc, cairo-svg.pc, cairo-xlib.pc, cairo-win32.pc, etc.) this
5112 also includes optional font backends (such as cairo-ft.pc) and the
5113 optional png functionality (cairo-png.pc).
5114
5115 These new pkg-config files should be very convenient for allowing
5116 cairo-using code to easily check for the existing of optional
5117 functionality in cairo without having to write complex rules to grub
5118 through cairo header files or the compiled library looking for
5119 symbols.
5120
5121 Printing backend (PS, PDF, and SVG)
5122 -----------------------------------
5123 Improving the quality of the "printing" backends has been a priority
5124 of the development between cairo 1.1.6 and cairo 1.1.8.
5125
5126 The big improvement here is in the area of text output. Previously, at
5127 best, text was output as paths without taking advantage of any font
5128 support available in the output file format.
5129
5130 Now, at the minimum text paths will be shared by using type3 fonts
5131 (for PS and PDF---and similarly, defs for SVG). Also, if possible,
5132 type3 and truetype fonts will be embedded in PostScript and PDF
5133 output. There are still some known bugs with this, (for example,
5134 selecting text in a cairo-generated PDF file with an embedded truetype
5135 font does not work). So there will be some more changes in this area
5136 before cairo 1.2, but do try test this feature out as it exists so
5137 far.
5138
5139 Many thanks to Kristian Høgsberg for the truetype and type1 font
5140 embedding.
5141
5142 win32 backend
5143 -------------
5144 Performance improvements by preferring GDI over pixman rendering when possible.
5145 Fixes for text rendering.
5146
5147 xlib backend
5148 ------------
5149 Fix potentially big performance bug by making xlib's create_similar
5150 try harder to create a pixmap of a depth matching that of the screen.
5151
5152 Bug fixes
5153 ---------
5154 Among various other fixes, the following bugs listed in bugzilla have
5155 been fixed:
5156
5157     Bug 2488: Patch to fix pixman samping location bug (#2488).
5158     https://bugs.freedesktop.org/show_bug.cgi?id=2488
5159
5160     Bug 4196: undef MIN an MAX before defining to avoid duplicate definition
5161     https://bugs.freedesktop.org/show_bug.cgi?id=4196
5162
5163     Bug 4723: configure.in: Fix m4 quoting when examining pkg-config version
5164     https://bugs.freedesktop.org/show_bug.cgi?id=4723
5165
5166     Bug 4882: Flag Sun's X server has having buggy_repeat.
5167     https://bugs.freedesktop.org/show_bug.cgi?id=4882
5168
5169     Bug 5306: test/pdf2png: Add missing include of stdio.h
5170     https://bugs.freedesktop.org/show_bug.cgi?id=5306
5171
5172     Bug 7075: Fix make clean to remove cairo.def
5173     https://bugs.freedesktop.org/show_bug.cgi?id=7075
5174
5175 (Many thanks to Behdad Esfahbod for helping us track down and fix many
5176 of these.)
5177
5178 Snapshot 1.1.6 (2006-05-04 Carl Worth <cworth@cworth.org>)
5179 ==========================================================
5180 This is the third in a series of snapshots working toward the imminent
5181 1.2 release of cairo. For a list of items still needing work on the
5182 cairo 1.2 roadmap, please see:
5183
5184         http://cairographics.org/ROADMAP
5185
5186 As can be seen in that list, there are no longer any API additions
5187 left on the roadmap. Instead, there is a feature (PDF type 3 fonts) a
5188 performance optimization (X server gradients) and a list of bug
5189 fixes. This gives us a fair amount of freedom to cut the 1.2 release
5190 at almost any point by deciding to defer remaining bug fixes to
5191 subsequent maintenance releases such as 1.2.2 and 1.2.4.
5192
5193 Before we will do that, we must first be wiling to commit to all the
5194 new API additions. As a heads-up, there are a couple of potential API
5195 changes being considered. (Note that these are changes to new API
5196 introduced during 1.1 so these will not introduce API
5197 incompatibilities compared to the stable 1.0 series). The changes
5198 being considered are:
5199
5200   cairo_get_group_target: may acquire x and y offset return
5201         parameters. May also be eliminated in favor of
5202         cairo_get_target assuming its role
5203
5204   cairo_pdf_surface_set_dpi:
5205   cairo_ps_surface_set_dpi:
5206   cairo_svg_surface_set_dpi: These functions may be removed in favor
5207         of a new cairo_surface_set_fallback_resolution
5208
5209 Additionally there is the possibility of a slight change in the
5210 semantics of cairo_set_line_width. We believe the current behavior of the sequence:
5211
5212         cairo_set_line_width; ... change CTM ...; cairo_stroke;
5213
5214 is buggy. It is currently behaving the same as:
5215
5216         ... change CTM ...; cairo_set_line_width; cairo_stroke;
5217
5218 We are considering fixing this bug before 1.2 with the hope that
5219 nobody is already relying on the buggy behavior described here. Do
5220 shout if you suspect you might be in that position.
5221
5222 The items included in this snapshot (since the 1.1.4 snapshot) are
5223 described below.
5224
5225 API additions
5226 -------------
5227 The long-awaited group-rendering support is now available with the
5228 following function calls:
5229
5230         cairo_push_group
5231         cairo_push_group_with_content
5232         cairo_pop_group
5233         cairo_pop_group_to_source
5234         cairo_get_group_target
5235
5236 This API provides a much more convenient mechanism for doing rendering
5237 to an intermediate surface without the need to manually create a
5238 temporary cairo_surface_t and a temporary cairo_t and clean them up
5239 afterwards.
5240
5241 Add the following missing get function to complement
5242 cairo_surface_set_device_offset:
5243
5244         cairo_surface_get_device_offset
5245
5246 PDF backend (API addition)
5247 --------------------------
5248 The PDF backend now provides for per-page size changes, (similar to
5249 what the PostScript backend got in the 1.1.4 snapshot). The new API
5250 is:
5251
5252         cairo_pdf_surface_set_size
5253
5254 Xlib backend (API additions)
5255 ----------------------------
5256 The following functions have been added to allow the extraction of
5257 Xlib surface:
5258
5259         cairo_xlib_surface_get_display
5260         cairo_xlib_surface_get_drawable
5261         cairo_xlib_surface_get_screen
5262         cairo_xlib_surface_get_visual
5263         cairo_xlib_surface_get_depth
5264
5265 XCB backend (experimental)
5266 --------------------------
5267 Update backend so that it now compiles with the recent XCB 0.9 release.
5268
5269 Bug fixes and memory leak cleanup
5270 ---------------------------------
5271 Various little things, nothing too significant though.
5272
5273 Snapshot 1.1.4 (2006-05-03 Carl Worth <cworth@cworth.org>)
5274 ==========================================================
5275 This is the second in a series of snapshots working toward the
5276 upcoming 1.2 release of cairo. For a list of items still needing work
5277 on the cairo 1.2 roadmap, please see:
5278
5279         http://cairographics.org/ROADMAP
5280
5281 The items included in this snapshot (since the 1.1.2 snapshot) are
5282 described below.
5283
5284 PostScript backend: new printing-oriented API
5285 ---------------------------------------------
5286 We anticipate that with cairo 1.2, toolkits will begin to use cairo
5287 for printing on systems that use PostScript as the spool format. To
5288 support this use case, we have added 4 new function calls that are
5289 specific to the PostScript backend:
5290
5291         cairo_ps_surface_set_size
5292         cairo_ps_surface_dsc_comment
5293         cairo_ps_surface_dsc_begin_setup
5294         cairo_ps_surface_dsc_begin_page_setup
5295
5296 These functions allow variation of the page size/orientation from one
5297 page to the next in the PostScript output. They also allow the toolkit
5298 to provide per-document and per-page printer control options in a
5299 device-independent way, (for example, by using PPD options and
5300 emitting them as DSC comments into the PostScript output). This should
5301 allow toolkits to provide very fine-grained control of many options
5302 available in printers, (media size, media type, tray selection, etc.).
5303
5304 SVG backend: builds by default, version control
5305 -----------------------------------------------
5306 The SVG backend continues to see major improvements. It is expected
5307 that the SVG backend will be a supported backend in the 1.2
5308 release. This backend will now be built by default if its dependencies
5309 (freetype and libxml2) are met.
5310
5311 Additionally, the SVG backend now has flexibility with regard to what
5312 version of SVG it targets. It will target SVG 1.1 by default, which
5313 will require image fallbacks for some of the "fancier" cairo
5314 compositing operators. Or with the following new function calls:
5315
5316         cairo_svg_surface_restrict_to_version
5317         cairo_svg_get_versions
5318         cairo_svg_version_to_string
5319
5320 it can be made to target SVG 1.2 in which there is native support for
5321 these compositing operators.
5322
5323 Bug fixes
5324 ---------
5325 At least the following bugs have been fixed since the 1.1.2 snapshot:
5326
5327 crash at XRenderAddGlyphs
5328 https://bugs.freedesktop.org/show_bug.cgi?id=4705
5329
5330 Can't build cairo-1.1.2 on opensolaris due to " void function cannot return value"
5331 https://bugs.freedesktop.org/show_bug.cgi?id=6792
5332
5333 Missing out-of-memory check at gfx/cairo/cairo/src/cairo-atsui-font.c:185
5334 https://bugzilla.mozilla.org/show_bug.cgi?id=336129
5335
5336 A couple of memory leaks.
5337
5338 Snapshot 1.1.2 (2006-04-25 Carl Worth <cworth@cworth.org>)
5339 ==========================================================
5340 This is the first in a series of snapshots working toward the upcoming
5341 1.2 release of cairo. (Subsequent snapshot will use successive even
5342 numbers for the third digit, 1.1.4, 1.1.6, etc.) This snapshot is
5343 backwards-compatible with the 1.0 series---it makes a few API
5344 additions but does not remove any API.
5345
5346 PostScript and PDF backends are no longer "experimental"
5347 --------------------------------------------------------
5348 The major theme of the 1.2 release is improved PostScript and PDF
5349 backends for cairo. Unlike the 1.0 series, in the 1.2 series these
5350 backends will not be marked as experimental and will be enabled by
5351 default. We encourage people to test this snapshot and the PS/PDF
5352 backends in particular as much as possible.
5353
5354 The PostScript and PDF output is not yet ideal.
5355
5356  * One major problem with the PostScript output is that image
5357    fallbacks are used more often than strictly necessary, and the
5358    image fallbacks are at a lower resolution than desired, (the
5359    cairo_ps_surface_set_dpi call is ignored).
5360
5361   * The major drawback of the current PDF backend implementation is
5362     its text support. Every glyph is represented by a filled path in
5363     the PDF file. The causes file sizes to be much larger and
5364     rendering to be much slower than desired.
5365
5366 It is anticipated that both of these shortcomings will see some
5367 improvements before the final 1.2 release.
5368
5369 In spite of those shortcomings, we hope that the PS and PDF backends
5370 will yield faithful results for pretty much any cairo operations you
5371 can throw at them. Please let us know if you are getting obviously
5372 "different" results from the PS/PDF backends than from the image or
5373 xlib backends.
5374
5375 Other new experimental backends
5376 -------------------------------
5377 This snapshot includes three new backends that did not exist in the
5378 1.0 series:
5379
5380         * beos backend
5381
5382         * directfb backend
5383
5384         * svg backend
5385
5386 These are all currently marked "experimental" and are disabled by
5387 default. But the SVG backend in particular has seen a lot of recent
5388 development and is very close to passing the entire cairo test
5389 suite. It is possible that this backend will become a fully supported
5390 backend by the time of the cairo 1.2 release.
5391
5392 Public API additions
5393 --------------------
5394 There have been a few new API functions added to cairo, including:
5395
5396 New get_type functions for querying sub-types of object:
5397
5398         cairo_surface_get_type
5399         cairo_pattern_get_type
5400         cairo_font_face_get_type
5401         cairo_scaled_font_get_type
5402
5403 More convenience in working with cairo_scaled_font_t with new getter
5404 functions:
5405
5406         cairo_scaled_font_get_font_face
5407         cairo_scaled_font_get_font_matrix
5408         cairo_scaled_font_get_ctm
5409         cairo_scaled_font_get_font_options
5410
5411 As well as a convenience function for setting a scaled font into a
5412 cairo context:
5413
5414         cairo_set_scaled_font
5415
5416 and a function to allow text extents to be queried directly from a
5417 scaled font, (without requiring a cairo_surface_t or a cairo_t):
5418
5419         cairo_scaled_font_text_extents
5420
5421 These new scaled font functions were motivated by the needs of the
5422 pango library.
5423
5424 Finally, a new path-construction function was added which clears the
5425 current point in preparation for a new sub path. This makes cairo_arc
5426 easier to use in some situations:
5427
5428         cairo_new_sub_path
5429
5430 Before the 1.2 release is final we do still plan a few more API
5431 additions specifically motivated by the needs of Mozilla/Firefox.
5432
5433 Optimizations and bug fixes
5434 ---------------------------
5435 Shortly after the 1.0 maintenance series branched off the mainline
5436 there was a major rework of the cairo font internals. This should
5437 provide some good performance benefits, but it's also another area
5438 people should look at closely for potential regressions.
5439
5440 There has not yet been any widespread, systematic optimization of
5441 cairo, but various performance improvements have been made, (and some
5442 of them are fairly significant). So if some things seem faster than
5443 1.0 then things are good. If there are any performance regressions
5444 compared to 1.0 then there is a real problem and we would like to hear
5445 about that.
5446
5447 There has been a huge number of bug fixes---too many to mention in
5448 detail. Again, things should be better, and never worse compared to
5449 1.0. Please let us know if your testing shows otherwise.
5450
5451 Release 1.0.2 (2005-10-03 Carl Worth <cworth@cworth.org>)
5452 =========================================================
5453 For each bug number XXXX below, see:
5454
5455         https://bugs.freedesktop.org/show_bug.cgi?id=XXXX
5456
5457 for more details.
5458
5459 General bug fixes
5460 -----------------
5461  * 4408 - Add support for dashing of stroked curves
5462           (Carl Worth)
5463
5464  * 4409 - Fix dashing so that each dash is capped on both ends
5465           (Carl Worth)
5466
5467  * 4414 - Prevent SIGILL failures (proper use of -mmmx and -msse flags)
5468           (Sebastien Bacher, Billy Biggs)
5469
5470  * 4299 - Fix crashes with text display in multi-threaded program
5471           (Alexey Shabalin, Carl Worth)
5472
5473  * 4401 - Do not use sincos function since it is buggy on some platforms)
5474           (Tim Mooney, Carl Worth)
5475
5476  * 4245 - Fix several bugs in the test suite exposed by amd64 systems
5477           (Seemant Kulleen, Carl Worth)
5478
5479  * 4321 - Add missing byteswapping on GetImage/PutImage
5480           (Sjoerd Simons, Owen Taylor)
5481
5482  * 4220 - Make the check for rectangular trapezoids simpler and more accurate
5483           (Richard Stellingwerff, Owen Taylor)
5484
5485  * 4260 - Add missing channel-order swapping for antialised fonts
5486           (Barbie LeVile, Owen Taylor)
5487
5488  * 4283 - Fix compilation failure with aggressive inlining (gcc -O3)
5489           (Marco Manfredini, Owen Taylor)
5490
5491  * 4208 - Fix some warnings from sparse
5492           (Kjartan Maraas, Billy Biggs)
5493
5494  * 4269 - Fix to not crash when compiled with -fomit-frame-pointer
5495           (Ronald Wahl, Owen Taylor)
5496
5497  * 4263 - Improve performance for vertical gradients
5498           (Richard Stellingwerff, Owen Taylor)
5499
5500  * 4231
5501  * 4298 - Accomodate gentoo and Mandriva versions in X server vendor string check
5502           (Billy Biggs, Frederic Crozat, Owen Taylor)
5503
5504 win32-specific fixes
5505 --------------------
5506  * 4599 - Fix "missing wedges" on some stroked paths (win32)
5507           (Tim Rowley, Jonathan Watt, Bertram Felgenhauer, Carl Worth, Keith Packard)
5508
5509  * 4612 - Fix disappearing text if first character out of surface (win32)
5510           (Tim Rowley)
5511
5512  * 4602 - Fix shutdown of cairo from failing intermediate, size-0 bitmaps (win32)
5513           Aka. the "white rectangles" bug from mozilla-svg testing
5514           (Tim Rowley)
5515
5516  * Various portability improvements for win32
5517           (Hans Breuer, Owen Taylor, Carl Worth)
5518
5519  * 4593 - Fix font sizes to match user expectations (win32)
5520           (Tor Lillqvist, Owen Taylor)
5521
5522  * 3927 - Fix to report metrics of size 0 for glyph-not-available (win32)
5523           (Hans Breuer, Owen Taylor, Tor Lillqvist)
5524
5525  * Add locking primitives for win32
5526           (Hans Breuer)
5527
5528 xlib-specific fixes
5529 -------------------
5530  * Fix crash from size-0 pixmap due to empty clip region (xlib)
5531           (Radek Doulík, Carl Worth)
5532
5533 Release 1.0.0 (2005-08-24 Carl Worth <cworth@cworth.org>)
5534 =========================================================
5535 Experimental backends
5536 ---------------------
5537  * The Glitz, PS, PDF, Quartz, and XCB backends have been declared
5538    experimental, and are not part of the API guarantees that accompany
5539    this release. They are not built by default, even when the required
5540    libraries are available, and must be enabled explicitly with
5541    --enable-ps, --enable-pdf, --enable-quartz or --enable-xcb.
5542
5543    It is very painful for us to be pushing out a major release without
5544    these backends enabled. There has been a tremendous amount of work
5545    put into each one and all are quite functional to some
5546    extent. However, each also has some limitations. And none of these
5547    backends have been tested to the level of completeness and
5548    correctness that we expect from cairo backends.
5549
5550    We do encourage people to experiment with these backends and report
5551    success, failure, or means of improving them.
5552
5553 Operator behavior
5554 -----------------
5555  * Prior to 0.9.0 the SOURCE, CLEAR and a number of other operators
5556    behaved in an inconsistent and buggy fashion and could affect areas
5557    outside the clip mask. In 0.9.0, these six "unbounded" operators
5558    were fixed to consistently clear areas outside the shape but within
5559    the clip mask.  This is useful behavior for an operator such as IN,
5560    but not what was expected for SOURCE and CLEAR. So, in this release
5561    the behavior of SOURCE and CLEAR has been changed again. They now
5562    affect areas only within both the source and shape. We can write
5563    the new operators as:
5564
5565      SOURCE: dest' = (mask IN clip) ? source : dest
5566      CLEAR:  dest' = (mask IN clip) ? 0 : dest
5567
5568 Behavior and API changes
5569 ------------------------
5570  * Setting the filter on a gradient pattern would change the
5571    interpolation between color stops away from the normal linear
5572    interpolation. This dubious behavior has been removed.
5573
5574  * The CAIRO_CONTENT_VALID() and CAIRO_FORMAT_VALID() macros --
5575    implementation details that leaked into cairo.h -- have been moved
5576    into an internal header.
5577
5578  * The cairo_show_text function now advances the current point
5579    according to the total advance values of the string.
5580
5581 API additions
5582 -------------
5583  * cairo_set_dash can now detect error and can set
5584    CAIRO_STATUS_INVALID_DASH.
5585
5586 Features
5587 --------
5588  * When compiled against recent versions of fontconfig and FreeType,
5589    artificial bold fonts can now be turned on from fonts.conf using
5590    the FC_EMBOLDEN fontconfig key.
5591
5592 Optimization
5593 ------------
5594  * The compositing code from the 'xserver' code tree has now been
5595    completely merged into libpixman. This includes MMX optimization of
5596    common operations.
5597
5598  * The image transformation code in libpixman has been improved and
5599    now performs significantly faster.
5600
5601 Bug fixes
5602 ---------
5603  * Several crashes related to corruption in the font caches have been
5604    fixed.
5605
5606  * All test cases now match pixel-for-pixel on x86 and PPC; this
5607    required fixing bugs in the compositing, stroking, and pattern
5608    rendering code.
5609
5610  * Negative dash offsets have been fixed to work correctly.
5611
5612  * The stroking of paths with mutiple subpaths has now been fixed to
5613    apply caps to all subpaths rather than just the last one.
5614
5615  * Many build fixes for better portability on various systems.
5616
5617  * Lots of other bug fixes, but we're too tired to describe them in
5618    more detail here.
5619
5620 Release 0.9.2 (2005-08-13 Carl Worth <cworth@cworth.org>)
5621 =========================================================
5622 Release numbering
5623 -----------------
5624  * You will notice that this release jumped from 0.9.0 to 0.9.2. We've
5625    decided to use an odd micro version number (eg. 0.9.1) to indicate
5626    in-progress development between releases. As soon as 0.9.2 is
5627    tagged, the version will be incremented in CVS to 0.9.3 where it
5628    will stay until just before 0.9.4 is built, uploaded, and tagged.
5629
5630    So, even-micro == a released version, odd-micro == something in-between.
5631
5632 Libpixman dependency dropped
5633 ----------------------------
5634  * As of this release, the dependency on an external libpixman has
5635    been dropped. Instead, the code from libpixman needed for cairo has
5636    been incorporated into the cairo source tree. The motivation for
5637    this change is that while cairo's API is stable and ready to be
5638    maintained after the 1.0 release, libpixman's API is not, so we do
5639    not want to expose it at this time.
5640
5641    Also, the incorporation of libpixman into cairo also renames all
5642    previously-public libpixman symbols in order to avoid any conflict
5643    with a future release of libpixman
5644
5645 API additions
5646 -------------
5647  * Macros and functions have been added so that the version of cairo
5648    can be queried at either compile-time or at run-time. The version
5649    is made available as both a human-readable string and as a single
5650    integer:
5651
5652         CAIRO_VERSION_STRING               eg. "0.9.2"
5653         CAIRO_VERSION                      eg. 000902
5654
5655         const char*
5656         cairo_version_string (void);    /* eg. "0.9.2" */
5657
5658         int
5659         cairo_version (void);           /* eg. 000902 */
5660
5661    A macro is provided to convert a three-part component version into
5662    the encoded single-integer form:
5663
5664         CAIRO_VERSION_ENCODE(X,Y,Z)
5665
5666    For example, the CAIRO_VERSION value of 000902 is obtained as
5667    CAIRO_VERSION_ENCODE(0,9,2). The intent is to make version
5668    comparisons easy, either at compile-time:
5669
5670         #if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(0,9,2)
5671         ...
5672         #endif
5673
5674    Or at run-time:
5675
5676         if (cairo_version() >= CAIRO_VERSION_ENCODE(0,9,2)) { /* ... */ }
5677
5678 Thread safety
5679 -------------
5680  * This release adds pthread-based locking (when available) to make
5681    the caches used by cairo safe for threaded programs. Some may
5682    remember a failed experiment with this locking between the 0.5.1
5683    and 0.5.2 snapshots, (where even single-threaded programs that
5684    linked with -lpthread would deadlock). We believe that that problem
5685    has been fixed, so we are looking forward to testing and reports
5686    from users with threaded applications.
5687
5688 Bug fixes
5689 ---------
5690  * The XCB and Quartz backends failed to compiled in the 0.9.0 release
5691    due to minor syntax errors. These have now been fixed.
5692
5693  * Various crashes in glitz and pixman due to size 0 glyphs have been
5694    fixed.
5695
5696 Release 0.9.0 (2005-08-08 Carl Worth <cworth@cworth.org>)
5697 =========================================================
5698 Soname change
5699 -------------
5700  * In all prior snapshots, the libtool library versioning was set to
5701    1:0:0. As this release is intended to mark the beginning of
5702    backwards-compatible releases, the versioning has been incremented
5703    to 2:0:0. You will notice that the numeric extension on the
5704    installed library filename will change similarly.
5705
5706    This change will also require all cairo-using applications to be
5707    recompiled. We recognize that this may cause some frustration since
5708    this release is backwards-compatible with 0.6.0 and in that sense
5709    "shouldn't" require re-compilation. However, since all historical
5710    snapshots have used the same 1:0:0 version in spite of incompatible
5711    API changes between them, it was essential that the upcoming 1.0
5712    release series have distinct library versioning.
5713
5714    All future releases will use the library versioning to properly
5715    indicate compatibility between releases. So, any application
5716    re-compiled now to work with the 0.9.0 will not need to be
5717    recompiled when a compatible 1.0 release of cairo is made in the
5718    future.
5719
5720 API additions
5721 -------------
5722  * Add new function calls to set/get the current antialiasing mode in
5723    the graphics state:
5724
5725         cairo_set_antialias
5726         cairo_get_antialias
5727
5728    This call accepts the same modes recently added for font options
5729    (NONE or GRAY) but affects the rendering of geometry other than
5730    text. The intent of this call is to enable more precise control of
5731    which pixels are affected by each operation, for example to allow
5732    for full-scene antialiasing for seam-free rendering. It is not
5733    expected that non-antialiased rendering will perform better than
5734    anti-aliased rendering.
5735
5736  * Three new functions were added to provide support for mixed cairo-
5737    and non-cairo drawing to the same surface:
5738
5739         cairo_surface_mark_dirty
5740         cairo_surface_mark_dirty_rectangle
5741         cairo_surface_flush
5742
5743  * The return type of the several "reference" functions was change,
5744    (API compatibly), from void to the same type as the argument. The
5745    affected functions are:
5746
5747         cairo_font_face_reference
5748         cairo_scaled_font_reference
5749         cairo_pattern_reference
5750         cairo_surface_reference
5751         cairo_reference
5752
5753    This allows a convenient way to assign and reference in a single
5754    statement.
5755
5756 Semantic changes
5757 ----------------
5758  * The behavior of cairo_set_source with a pattern with a non-identity
5759    matrix was previously not well-defined. The new behavior is as
5760    follows:
5761
5762         The pattern's transformation matrix will be locked to the
5763         user space in effect at the time of cairo_set_source(). This means
5764         that further modifications of the CTM will not affect the source
5765         pattern.
5766
5767 cairo-win32
5768 -----------
5769  * Some portability improvements, (eg. workaround for missing stdint.h).
5770
5771 cairo-ft
5772 --------
5773  * Updated to allow compilation with older versions of freetype.
5774
5775 Bug fixes
5776 ---------
5777  * Fix the unbounded operators to actually produce a correct result,
5778    (previously the results were artificially restricted to the
5779    bounding box of whatever shape was being drawn rather than
5780    extending out infinitely). The fixed operators are:
5781
5782         CAIRO_OPERATOR_CLEAR
5783         CAIRO_OPERATOR_SOURCE
5784         CAIRO_OPERATOR_OUT
5785         CAIRO_OPERATOR_IN
5786         CAIRO_OPERATOR_DEST_IN
5787         CAIRO_OPERATOR_DEST_ATOP
5788
5789  * Fix cairo_mask and cairo_mask_surface to transform the mask by the
5790    current transformation matrix (CTM).
5791
5792  * Fix cairo_set_source to lock the CTM used to transform the pattern.
5793
5794  * Workaround for X server Render bug involving repeating patterns
5795    with a general transformation matrix.
5796
5797  * cairo_get_font_face fixed to return a "nil" font face object rather
5798    than NULL on error.
5799
5800  * cairo_set_font_face fixed to not crash if given a NULL font face,
5801    (which is the documented interface for restoring the default font
5802    face).
5803
5804  * Fix xlib glyphset caching to not try to free a NULL glyph.
5805
5806 Snapshot 0.6.0 (2005-07-28 Carl Worth <cworth@cworth.org>)
5807 ==========================================================
5808 API changes
5809 -----------
5810 * The prototypes of the following functions have changed:
5811
5812         cairo_xlib_surface_create_with_xrender_format
5813         cairo_xlib_surface_create_for_bitmap
5814
5815   A Screen* parameter has been added to each. This allows the cairo
5816   xlib backend to work correctly with multi-head X servers.
5817
5818 * The following function has been modified:
5819
5820         cairo_scaled_font_create
5821
5822   to accept a cairo_font_options_t*. See below fore more details.
5823
5824 * All opaque, reference-counted cairo objects have now been moved to a
5825   standard error-handling scheme. The new objects to receive this
5826   treatment are cairo_font_face_t, cairo_scaled_font_t, and
5827   cairo_surface_t. (Previous snapshots already provided this scheme
5828   for cairo_t, cairo_path_t, and cairo_pattern_t.)
5829
5830   This changes two functions to have a return type of void rather than
5831   cairo_status_t:
5832
5833         cairo_scaled_font_extent
5834         cairo_surface_finish
5835
5836   And significantly, none of the create functions for any of the
5837   objects listed above will return NULL. The pointer returned from any
5838   function will now always be a valid pointer and should always be
5839   passed to the corresponding destroy function when finished
5840
5841   The simplest strategy for porting code is to switch from:
5842
5843         object = cairo_<object>_create ();
5844         if (object == NULL)
5845             goto BAILOUT;
5846
5847         /* act on object */
5848
5849         cairo_<object>_destroy (object);
5850
5851   to:
5852
5853         object = cairo_<object>_create ();
5854         if (cairo_<object>_status (object))
5855             goto BAILOUT;
5856
5857         /* act on object */
5858
5859         cairo_<object>_destroy (object);
5860
5861    But significantly, it is not required to check for an error status
5862    before the "act on object" portions of the code above. All
5863    operations on an object with an error status are, by definition,
5864    no-ops without side effect. So new code might be written in an
5865    easier-to-read style of:
5866
5867         object = cairo_<object>_create ();
5868
5869         /* act on object */
5870
5871         cairo_<object>_destroy (object);
5872
5873    with cairo_<object>_status checks placed only at strategic
5874    locations. For example, passing an error object to another object,
5875    (eg. cairo_set_source with an in-error pattern), will propagate the
5876    error to the subsequent object (eg. the cairo_t). This means that
5877    error checking can often be deferred even beyond the destruction of
5878    a temporary object.
5879
5880 API additions
5881 -------------
5882 * New functions for checking the status of objects that have been
5883   switched to the common error-handling scheme:
5884
5885         cairo_font_face_status
5886         cairo_scaled_font_status
5887         cairo_surface_status
5888
5889 * The _cairo_error function which was added in 0.5.1 has now been made
5890   much more useful. In 0.5.1 only errors on cairo_t objects passed
5891   through _cairo_error. Now, an error on any object should pass
5892   through _cairo_error making it much more reliable as a debugging
5893   mechanism for finding when an error first occurs.
5894
5895 * Added new font options support with a myriad of functions:
5896
5897         cairo_font_options_create
5898         cairo_font_options_copy
5899         cairo_font_options_destroy
5900
5901         cairo_font_options_status
5902
5903         cairo_font_options_merge
5904         cairo_font_options_equal
5905         cairo_font_options_hash
5906
5907         cairo_font_options_set_antialias
5908         cairo_font_options_get_antialias
5909         cairo_font_options_set_subpixel_order
5910         cairo_font_options_get_subpixel_order
5911         cairo_font_options_set_hint_style
5912         cairo_font_options_get_hint_style
5913         cairo_font_options_set_hint_metrics
5914         cairo_font_options_get_hint_metrics
5915
5916         cairo_surface_get_font_options
5917
5918         cairo_ft_font_options_substitute
5919
5920         cairo_set_font_options
5921         cairo_get_font_options
5922
5923    This new font options support allows the application to have much
5924    more fine-grained control over how fonts are rendered.
5925    Significantly, it also allows surface backends to have some
5926    influence over the process. For example, the xlib backend now
5927    queries existing Xft properties to set font option defaults.
5928
5929 * New function:
5930
5931         cairo_xlib_surface_set_drawable
5932
5933   which allows the target drawable for an xlib cairo_surface_t to be
5934   changed to another with the same format, screen, and display. This
5935   is necessary in certain double-buffering techniques.
5936
5937 New features
5938 ------------
5939 * Sub-pixel text antialiasing is now supported.
5940
5941 Bug fixes
5942 ---------
5943 * Fixed assertion failure in cairo_surface_create_similar when
5944   application commits an error by passing a cairo_format_t rather than
5945   a cairo_content_t.
5946
5947 * Avoid division by zero in various places (cairo-ft).
5948
5949 * Fix infinite loop when using non-default visuals (cairo-xlib).
5950
5951 * Eliminate segfault in cairo_image_surface_create_from_png_stream.
5952
5953 * Prevent errant sign-extension of masks on 64-bit architectures
5954   (cairo-xlib and cairo-xcb).
5955
5956 * Other miscellaneous fixes.
5957
5958 Snapshot 0.5.2 (2005-07-18 Carl Worth <cworth@cworth.org>)
5959 ==========================================================
5960 API changes
5961 -----------
5962 * New functions for creating patterns of a single color:
5963
5964         cairo_pattern_create_rgb
5965         cairo_pattern_create_rgba
5966
5967 * Change cairo_surface_create_similar to accept a new type of
5968   cairo_content_t rather than cairo_format_t:
5969
5970         typedef enum _cairo_content {
5971             CAIRO_CONTENT_COLOR         = 0x1000,
5972             CAIRO_CONTENT_ALPHA         = 0x2000,
5973             CAIRO_CONTENT_COLOR_ALPHA   = 0x3000
5974         } cairo_content_t;
5975
5976 * Add new CAIRO_FORMAT_VALID and CAIRO_CONTENT_VALID macros.
5977
5978 * Remove unused status value:
5979
5980         CAIRO_STATUS_NO_TARGET_SURFACE
5981
5982 * Add new status values:
5983
5984         CAIRO_STATUS_INVALID_STATUS
5985
5986 * Require libpixman >= 0.1.5 (for necessary bug fixes)
5987
5988 Bug fixes
5989 ---------
5990 * Fix cairo_surface_write_to_png for RGB24 images.
5991
5992 * Fix broken metrics and rendering for bitmap fonts. Add mostly
5993   useless bitmap glyph transformation.
5994
5995 * Fix glyph caches to not eject entries that might be immediately
5996   needed, (fixing intermittent crashes when rendering text).
5997
5998 * Fix all memory leaks found by running "make check-valgrind".
5999
6000 ATSUI backend changes
6001 ---------------------
6002 * Allow building against < 10.3 SDK.
6003
6004 * Prevent crash on empty strings.
6005
6006 Glitz backend changes
6007 ---------------------
6008 * Require glitz >= 0.4.4.
6009
6010 * Use frame buffer objects instead of pbuffers for accelerated
6011   offscreen drawing.
6012
6013 * Minor improvement to gradient pattern creation.
6014
6015 PostScript backend fixes
6016 ------------------------
6017 * Rewrite of the PS backend to generate more interesting output that
6018   the old big-image implementation.
6019
6020 Win32 backend fixes
6021 -------------------
6022 * Implement glyph path support.
6023
6024 * Fix swap of blue and green values in the fill_rectangles path.
6025
6026 Xlib backend fixes
6027 ------------------
6028 * Add optimization to use XCopyArea rather than XRenderComposite when
6029   transforming only with an integer translation, and using SOURCE
6030   operator or OVER with a source pattern without alpha.
6031
6032 Snapshot 0.5.1 (2005-06-20 Carl Worth <cworth@cworth.org>)
6033 ==========================================================
6034 API changes
6035 -----------
6036 * Removed cairo_status_string(cairo_t*) and add
6037   cairo_status_to_string(cairo_status_t) in its place. Code using
6038   cairo_status_string can be ported forward as follows:
6039
6040         cairo_status (cr);
6041         ->
6042         cairo_status_to_string (cairo_status (cr));
6043
6044 * Removed the BAD_NESTING restriction which means that two different
6045   cairo_t objects can now interleave drawing to the same
6046   cairo_surface_t without causing an error.
6047
6048 * The following functions which previously had a return type of
6049   cairo_status_t now have a return type of void:
6050
6051         cairo_pattern_add_color_stop_rgba
6052         cairo_pattern_set_matrix
6053         cairo_pattern_get_matrix
6054         cairo_pattern_set_extend
6055         cairo_pattern_set_filter
6056
6057   See discussion of cairo_pattern_status below for more details.
6058
6059 API additions
6060 -------------
6061 * Improved error handling:
6062
6063         cairo_status_t
6064         cairo_pattern_status (cairo_pattern_t *pattern);
6065
6066   This snapshot expands the status-based error handling scheme from
6067   cairo_t to cairo_path_t and cairo_pattern_t. It also expands the
6068   scheme so that object-creating functions, (cairo_create,
6069   cairo_pattern_create_*, cairo_copy_path_*), are now guaranteed to
6070   not return NULL. Instead, in the case of out-of-memory these
6071   functions will return a static object with
6072   status==CAIRO_STATUS_NO_MEMORY. The status can be checked with the
6073   functions cairo_status and cairo_pattern_status, or by direct
6074   inspection of the new status field in cairo_path_t.
6075
6076   Please note that some objects, including cairo_surface_t and all of
6077   the font-related objects have not been converted to this
6078   error-handling scheme.
6079
6080 * In addition to the above changes, a new private function has been added:
6081
6082         _cairo_error
6083
6084   This function can be used to set a breakpoint in a debugger to make
6085   it easier to find programming error in cairo-using code. (Currently,
6086   _cairo_error is called when any error is detected within a cairo_t
6087   context, but is not called for non-cairo_t errors such as for
6088   cairo_path_t and cairo_pattern_t).
6089
6090 * Fixed cairo_path_data_t so that its enum is visible to C++ code, (as
6091   cairo_path_data_type_t).
6092
6093 Performance improvements
6094 ------------------------
6095 * Made a minor performance improvement for clipping, (restrict clip
6096   surface to the new intersected bounds).
6097
6098 * Optimize rendering of a solid source pattern with a pixel-aligned
6099   rectangular path to use backend clipping rather than rasterization
6100   and backend compositing.
6101
6102 * Optimize cairo_paint_with_alpha to defer to cairo_paint when alpha
6103   is 1.0.
6104
6105 Bug fixes
6106 ---------
6107 * Fixed memory leak in cairo_copy_path.
6108
6109 * A build fix for non-srcdir builds.
6110
6111 PDF backend fixes
6112 -----------------
6113 * New support for path-based clipping.
6114
6115 * Fix for text rotated to angles other than multiples of π/2.
6116
6117 Win32 backend fixes
6118 -------------------
6119 * Fix for text extents.
6120
6121 Xlib backend
6122 ------------
6123 * Implemented a complex workaround for X server bug[*] related to
6124   Render-based compositing with untransformed, repeating source
6125   pictures. The workaround uses core Xlib when possible for
6126   performance, (ie. with CAIRO_OPERATOR_SOURCE or CAIRO_OPERATOR_OVER
6127   with an opaque source surface), and falls back to the pixman
6128   image-based compositing otherwise.
6129
6130   [*] https://bugs.freedesktop.org/show_bug.cgi?id=3566
6131
6132 * Various bug fixes, particularly in the fallback paths.
6133
6134 Snapshot 0.5.0 (2005-05-17 Carl Worth <cworth@cworth.org>)
6135 ==========================================================
6136 This is a pretty big, and fairly significant snapshot.  It represents
6137 between 2 and 3 months of solid work from a lot of people on improving
6138 the API as much as possible. I'd like to express my appreciation and
6139 congratulations to everyone who has worked on the big API Shakeup,
6140 (whether in email battles over names, or fixing my silly bugs).
6141
6142 This snapshot will require some effort on the part of users, since
6143 there are a _lot_ of API changes (ie. no cairo program ever written is
6144 safe --- they're all broken now in at least one way). But, in spite of
6145 that, we do encourage everyone to move their code to this snapshot as
6146 soon as possible. And we're doing everything we can think of to make
6147 the transition as smooth as possible.
6148
6149 The idea behind 0.5 is that we've tried to make every good API change
6150 we could want now, and get them all done with. That is, between now
6151 and the 1.0 release of cairo, we expect very few new API changes,
6152 (though some will certainly sneak in). We will have some significant
6153 additions, but the pain of moving code from cairo 0.4 to cairo 0.5
6154 should be a one time experience, and things should be much smoother as
6155 we continue to move toward cairo 1.0.
6156
6157 And with so many changes coming out for the first time in this 0.5
6158 release, we really do need a lot of people trying this out to make
6159 sure the ideas are solid before we freeze the API in preparation for
6160 the 1.0 release.
6161
6162 OK, enough introduction. Here is a (not-quite-complete) description of
6163 the API removals, changes and additions in this snapshot, (compared to
6164 0.4.0)
6165
6166 API removals
6167 ============
6168 The following public functions have been removed:
6169
6170 - cairo_set_target_*
6171
6172         This is a big change. See the description of cairo_create in
6173         the API changes section for how to deal with this.
6174
6175 - cairo_set_alpha
6176
6177         Alpha blending hasn't gone away; there's just a much more
6178         unified rendering model now. Almost all uses of
6179         cairo_set_alpha will be trivially replaced with
6180         cairo_set_source_rgba and a few others will be replaced just
6181         as easily with cairo_paint_with_alpha.
6182
6183 - cairo_show_surface
6184
6185         Another useful function that we realized was muddling up the
6186         rendering model. The replacement is quite easy:
6187         cairo_set_source_surface and cairo_paint.
6188
6189 - cairo_matrix_create
6190 - cairo_matrix_destroy
6191 - cairo_matrix_copy
6192 - cairo_matrix_get_affine
6193
6194         These functions supported an opaque cairo_matrix_t. We now
6195         have an exposed cairo_matrix_t structure, so these can be
6196         dropped.
6197
6198 - cairo_surface_set_repeat
6199 - cairo_surface_set_matrix
6200 - cairo_surface_set_filter
6201
6202         These properties don't belong on surfaces. If you were using
6203         them, you'll just want to instead use
6204         cairo_pattern_create_for_surface and then set these properties
6205         on the pattern.
6206
6207 - cairo_copy
6208
6209         This was a confusing function and hopefully nobody will miss
6210         it. But if you really don't find cairo_save/restore adequate,
6211         let us know and we have another idea for a potential
6212         replacement.
6213
6214 And while we're on the subject of removals, we carefully tightened up
6215 the cairo header files so they no longer gratuitously include header
6216 files that are not strictly necessary, (stdio.h, stdint.h, pixman.h,
6217 Xrender.h, etc. and their dependencies). This may lead to some
6218 surprising errors, so keep your eyes open for that.
6219
6220 API changes
6221 ===========
6222 Here are some of the API changes that have occurred:
6223
6224 ~ cairo_create(void) -> cairo_create(cairo_surface_t *)
6225
6226         This is the big change that breaks every program. The ability
6227         to re-target a cairo_t was not particularly useful, but it did
6228         introduce a lot of muddy semantic questions. To eliminate
6229         that, cairo_create now requires its target surface to be
6230         passed in at creation time. This isn't too hard to cope with
6231         as the typical first operation after cairo_create was often
6232         cairo_set_target_foo. So the order of those two swap and the
6233         application instead has cairo_foo_surface_create, then
6234         cairo_create.
6235
6236 ~ cairo_current_* -> cairo_get_*
6237
6238         We had a strange mixture of cairo_get and cairo_current
6239         functions. They've all been standardized on cairo_get, (though
6240         note one is cairo_get_current_point).
6241
6242 ~ CAIRO_OPERATOR_SRC -> CAIRO_OPERATOR_SOURCE
6243 ~ CAIRO_OPERATOR_OVER_REVERSE -> CAIRO_OPERATOR_DEST_OVER
6244
6245         Many of the cairo_operator_t symbolic values were renamed to
6246         reduce the amount of abbreviation. The confusing "OP_REVERSE"
6247         naming was also changed to use "DEST_OP" instead which is
6248         easier to read and has wider acceptance in other
6249         libraries/languages.
6250
6251 ~ cairo_set_pattern -> cairo_set_source
6252 ~ cairo_set_rgb_color -> cairo_set_source_rgb
6253
6254         All of the various functions that changed the source
6255         color/pattern were unified to use cairo_set_source names to
6256         make the relation more clear.
6257
6258 ~ cairo_transform_point            -> cairo_user_to_device
6259 ~ cairo_transform_distance         -> cairo_user_to_device_distance
6260 ~ cairo_inverse_transform_point    -> cairo_device_to_user
6261 ~ cairo_inverse_transform_distance -> cairo_device_to_user_distance
6262
6263         These names just seemed a lot more clear.
6264
6265 ~ cairo_init_clip       -> cairo_reset_clip
6266 ~ cairo_concat_matrix   -> cairo_transform
6267
6268         More abbreviation elimination
6269
6270 ~ cairo_current_path      -> cairo_copy_path
6271 ~ cairo_current_path_flat -> cairo_copy_path_flat
6272
6273         The former mechanism for examining the current path was a
6274         function that required 3 or 4 callbacks. This was more
6275         complexity than warranted in most situations. The new
6276         cairo_copy_path function copies the current path into an
6277         exposed data structure, and the documentation provides a
6278         convenient idiom for navigating the path data.
6279
6280 API additions
6281 -------------
6282 + cairo_paint
6283
6284         A generalized version of the painting operators cairo_stroke
6285         and cairo_fill. The cairo_paint call applies the source paint
6286         everywhere within the current clip region. Very useful for
6287         clearing a surface to a solid color, or painting an image,
6288         (see cairo_set_source_surface).
6289
6290 + cairo_paint_with_alpha
6291
6292         Like cairo_paint but applying some alpha to the source,
6293         (making the source paint translucent, eg. to blend an image on
6294         top of another).
6295
6296 + cairo_mask
6297
6298         A more generalized version of cairo_paint_with_alpha which
6299         allows a pattern to specify the amount of translucence at each
6300         point rather than using a constant value everywhere.
6301
6302 + cairo_mask_surface
6303
6304         A convenience function on cairo_mask for when the mask pattern
6305         is already contained within a surface.
6306
6307 + cairo_surface_set_user_data
6308 + cairo_surface_get_user_data
6309 + cairo_font_face_set_user_data
6310 + cairo_font_face_get_user_data
6311
6312         Associate arbitrary data with a surface or font face for later
6313         retrieval. Get notified when a surface or font face object is
6314         destroyed.
6315
6316 + cairo_surface_finish
6317
6318         Allows the user to instruct cairo to finish all of its
6319         operations for a given surface. This provides a safe point for
6320         doing things such as flushing and closing files that the
6321         surface may have had open for writing.
6322
6323 + cairo_fill_preserve
6324 + cairo_stroke_preserve
6325 + cairo_clip_preserve
6326
6327         One interesting change in cairo is that the path is no longer
6328         part of the graphics state managed by
6329         cairo_save/restore. This allows functions to construct paths
6330         without interfering with the graphics state. But it prevents
6331         the traditional idiom for fill-and-stroke:
6332
6333                 cairo_save; cairo_fill; cairo_restore; cairo_stroke
6334
6335         Instead we know have alternate versions cairo cairo_fill,
6336         cairo_stroke, and cairo_clip that preserve the current path
6337         rather than consuming it. So the idiom now becomes simply:
6338
6339                 cairo_fill_preserve; cairo_stroke
6340
6341 + cairo_surface_write_to_png
6342 + cairo_surface_write_to_png_stream
6343
6344         In place of a single PNG backend, now a surface created
6345         through any backend (except PDF currently) can be written out
6346         to a PNG image.
6347
6348 + cairo_image_surface_create_from_png
6349 + cairo_image_surface_create_from_png_stream
6350
6351         And its just as easy to load a PNG image into a surface as well.
6352
6353 + cairo_append_path
6354
6355         With the new, exposed path data structure, it's now possible
6356         to append bulk path data to the current path, (rather than
6357         issuing a long sequence of cairo_move_to/line_to/curve_to
6358         function calls).
6359
6360 Xlib and XCB backends
6361 ---------------------
6362
6363 Any cairo_format_t and Colormap arguments have been dropped from
6364 cairo_xlib_surface_create. There are also two new
6365 cairo_xlib|xcb_surface_create functions:
6366
6367         cairo_xlib|xcb_surface_create_for_bitmap
6368                 (Particular for creating A1 surfaces)
6369         cairo_xlib|xcb_surface_create_with_xrender_format
6370                 (For any other surface types, not described by a Visual*)
6371
6372 All of these surface create functions now accept width and height. In
6373 addition, there are new cairo_xlib|xcb_surface_set_size functions
6374 which must be called each time a window that is underlying a surface
6375 changes size.
6376
6377 Print backends (PS and PDF)
6378 ---------------------------
6379 The old FILE* based interfaces have been eliminated. In their place we
6380 have two different functions. One accepts a simple const char
6381 *filename. The other is a more general function which accepts a
6382 callback write function and a void* closure. This should allow the
6383 flexibility needed to hook up with various stream object in many
6384 languages.
6385
6386 In addition, when specifying the surface size during construction, the
6387 units are now device-space units (ie. points) rather than inches. This
6388 provides consistency with all the other surface types and also makes
6389 it much easier to reason about the size of the surface when drawing to
6390 it with the default identity matrix.
6391
6392 Finally, the DPI parameters, which are only needed to control the
6393 quality of fallbacks, have been made optional. Nothing is required
6394 during surface_create (300 DPI is assumed) and
6395 cairo_ps|pdf_surface_set_dpi can be used to set alternate values if
6396 needed.
6397
6398 Font system
6399 -----------
6400 Owen very graciously listened to feedback after the big font rework he
6401 had done for 0.4, and came up with way to improve it even more. In 0.4
6402 there was a cairo_font_t that was always pre-scaled. Now, there is an
6403 unscaled cairo_font_face_t which is easier to construct, (eg. no
6404 scaling matrix required) and work with, (it can be scaled and
6405 transformed after being set on the graphics state). And the font size
6406 manipulation functions are much easier. You can set an explicit size
6407 and read/modify/write the font matrix with:
6408
6409         cairo_set_font_size
6410         cairo_get_font_matrix
6411         cairo_set_font_matrix
6412
6413 (Previously you could only multiply in a scale factor or a matrix.) A
6414 pleasant side effect is that we can (and do) now have a default font
6415 size that is reasonable, as opposed to the old default height of one
6416 device-space unit which was useless until scaled.
6417
6418 Of course, the old pre-scaled font had allowed some performance
6419 benefits when getting many metrics for a font. Those benefits are
6420 still made available through the new cairo_scaled_font_t. And a
6421 cairo_font_face_t can be "promoted" to a cairo_scaled_font_t by
6422 suppling a font_matrix and the desired CTM.
6423
6424 Quartz backend
6425 --------------
6426 Tim Rowley put in the work to bring the Quartz backend back after it
6427 had been disabled in the 0.4.0 snapshot. He was not able to bring back
6428 the function that allows one to create a cairo_font_t from an ATSUI
6429 style:
6430
6431         cairo_font_t *
6432         cairo_atsui_font_create (ATSUStyle style);
6433
6434 because he didn't have a test case for it. If you care about this
6435 function, please provide a fairly minimal test and we'll try to bring
6436 it back in an upcoming snapshot.
6437
6438 Snapshot 0.4.0 (2005-03-08 Carl Worth <cworth@cworth.org>)
6439 ==========================================================
6440 New documentation
6441 -----------------
6442 Owen Taylor has converted cairo's documentation system to gtk-doc and
6443 has begun some long-needed work on the documentation, which can now be
6444 viewed online here:
6445
6446         http://cairographics.org/manual/
6447
6448 New backend: win32
6449 ------------------
6450 This is the first snapshot to include a functional win32 backend,
6451 (thanks to Owen Taylor). The interface is as follows:
6452
6453         #include <cairo-win32.h>
6454
6455         void
6456         cairo_set_target_win32 (cairo_t *cr,
6457                                 HDC      hdc);
6458
6459         cairo_surface_t *
6460         cairo_win32_surface_create (HDC hdc);
6461
6462         cairo_font_t *
6463         cairo_win32_font_create_for_logfontw (LOGFONTW       *logfont,
6464                                               cairo_matrix_t *scale);
6465
6466         cairo_status_t
6467         cairo_win32_font_select_font (cairo_font_t *font,
6468                                       HDC           hdc);
6469
6470         void
6471         cairo_win32_font_done_font (cairo_font_t *font);
6472
6473         double
6474         cairo_win32_font_get_scale_factor (cairo_font_t *font);
6475
6476 And see also the documentation at:
6477
6478 http://cairographics.org/manual/cairo-Microsoft-Windows-Backend.html
6479
6480 Disabled backend: quartz
6481 ------------------------
6482 Unfortunately, the quartz backend code is currently out of date with
6483 respect to some recent backend interface changes. So, the quartz
6484 backend is disabled in this snapshot.
6485
6486 If the quartz backend is brought up-to-date before the next snapshot,
6487 we would be glad to make a 0.4.1 snapshot that re-enables it, (we do
6488 not expect many more big backend interface changes).
6489
6490 API Changes
6491 -----------
6492 The font system has been revamped, (as Owen Taylor's work with
6493 integrating pango and cairo gave us the first serious usage of the
6494 non-toy font API).
6495
6496 One fundamental, user-visible change is that the cairo_font_t object
6497 now represents a font that is scaled to a particular device
6498 resolution. Further changes are described below.
6499
6500  cairo.h
6501  -------
6502  Removed cairo_font_set_transform and cairo_font_current_transform.
6503
6504  Added cairo_font_extents and cairo_font_glyph_extents. See
6505  documentation for details:
6506
6507  http://cairographics.org/manual/cairo-cairo-t.html#cairo-font-extents
6508
6509  cairo-ft.h
6510  ----------
6511  The cairo_ft_font API changed considerably. Please see the
6512  documentation for details:
6513
6514  http://cairographics.org/manual/cairo-FreeType-Fonts.html
6515
6516 Performance
6517 -----------
6518 Make the fast-path clipping (pixel-aligned rectangles) faster.
6519
6520 Add optimization for applying a constant alpha to a pattern.
6521
6522 Optimize gradients that are horizontal or vertical in device space.
6523
6524 Xlib: When RENDER is not available, use image surfaces for
6525 intermediate surfaces rather than xlib surfaces.
6526
6527 Backend-specific changes
6528 ------------------------
6529  Glitz
6530  -----
6531  Major update to glitz backend. The output quality should now be just
6532  as good as the image and xlib backends.
6533
6534  Track changes to glitz 0.4.0.
6535
6536  PDF
6537  ---
6538  Various improvements to produce more conformant output.
6539
6540 Internals
6541 ---------
6542 David Reveman contributed a large re-work of the cairo_pattern_t
6543 implementation, providing cleaner code and more optimization
6544 opportunities.
6545
6546  Backend interface changes
6547  -------------------------
6548  Rework backend interface to accept patterns, not surfaces for source
6549  and mask.
6550
6551  Remove set_matrix, set_filter, and set_repeat functions.
6552
6553  More sophisticated backend interface for image fallbacks,
6554  ({acquire,release}_{source,dest}_image() and clone_similar).
6555
6556 Bug fixes
6557 ---------
6558 Only install header files for backends that have been compiled.
6559
6560 Fixed some rounding errors leading to incorrectly placed glyphs.
6561
6562 Many other minor fixes.
6563
6564 Snapshot 0.3.0 (2005-01-21 Carl Worth <cworth@cworth.org>)
6565 ==========================================================
6566 Major API changes
6567 -----------------
6568 1) The public header files will no longer be directly installed into
6569    the system include directory. They will now be installed in a
6570    subdirectory named "cairo", (eg. in /usr/include/cairo rather than
6571    in /usr/include).
6572
6573    As always, the easiest way for applications to discover the
6574    location of the header file is to let pkg-config generate the
6575    necessary -I CFLAGS and -L/-l LDFLAGS. For example:
6576
6577         cc `pkg-config --cflags --libs cairo` -o foo foo.c
6578
6579    IMPORTANT: Users with old versions of cairo installed will need to
6580               manually remove cairo.h and cairo-features.h from the
6581               system include directories in order to prevent the old
6582               headers from being used in preference to the new ones.
6583
6584 2) The backend-specific portions of the old monolithic cairo.h have
6585    been split out into individual public header files. The new files
6586    are:
6587
6588         cairo-atsui.h
6589         cairo-ft.h
6590         cairo-glitz.h
6591         cairo-pdf.h
6592         cairo-png.h
6593         cairo-ps.h
6594         cairo-quartz.h
6595         cairo-xcb.h
6596         cairo-xlib.h
6597
6598    Applications will need to be modified to explicitly include the new
6599    header files where appropriate.
6600
6601 3) There are two new graphics backends in this snapshot, a PDF
6602    backend, and a Quartz backend. There is also one new font backend,
6603    ATSUI.
6604
6605 PDF backend
6606 -----------
6607 Kristian Høgsberg has contributed a new backend to allow cairo-based
6608 applications to generate PDF output. The interface for creating a PDF
6609 surface is similar to that of the PS backend, as can be seen in
6610 cairo-pdf.h:
6611
6612         void
6613         cairo_set_target_pdf (cairo_t   *cr,
6614                               FILE      *file,
6615                               double    width_inches,
6616                               double    height_inches,
6617                               double    x_pixels_per_inch,
6618                               double    y_pixels_per_inch);
6619
6620         cairo_surface_t *
6621         cairo_pdf_surface_create (FILE          *file,
6622                                   double        width_inches,
6623                                   double        height_inches,
6624                                   double        x_pixels_per_inch,
6625                                   double        y_pixels_per_inch);
6626
6627 Once a PDF surface has been created, applications can draw to it as
6628 any other cairo surface.
6629
6630 This code is still a bit rough around the edges, and does not yet
6631 support clipping, surface patterns, or transparent gradients.  Text
6632 only works with TrueType fonts at this point and only black text is
6633 supported.  Also, the size of the generated PDF files is currently
6634 quite big.
6635
6636 Kristian is still actively developing this backend, so watch this
6637 space for future progress.
6638
6639 Quartz backend
6640 --------------
6641 Calum Robinson has contributed a new backend to allow cairo
6642 applications to target native Mac OS X windows through the Quartz
6643 API. Geoff Norton integrated this backend into the current
6644 configure-based build system, while Calum also provided Xcode build
6645 support in the separate "macosx" module available in CVS.
6646
6647 The new interface, available in cairo-quartz.h, is as follows:
6648
6649         void
6650         cairo_set_target_quartz_context (cairo_t        *cr,
6651                                          CGContextRef   context,
6652                                          int            width,
6653                                          int            height);
6654
6655         cairo_surface_t *
6656         cairo_quartz_surface_create (CGContextRef context,
6657                                      int          width,
6658                                      int          height);
6659
6660 There is an example program available in CVS in cairo-demo/quartz. It
6661 is a port of Keith Packard's fdclock program originally written for
6662 the xlib backend. A screenshot of this program running on Mac OS X is
6663 available here:
6664
6665         http://cairographics.org/~cworth/images/fdclock-quartz.png
6666
6667 ATSUI font backend
6668 ------------------
6669 This new font backend complements the Quartz backend by allowing
6670 applications to use native font selection on Mac OS X. The interface
6671 is a single new function:
6672
6673         cairo_font_t *
6674         cairo_atsui_font_create (ATSUStyle style);
6675
6676 Minor API changes
6677 -----------------
6678 Prototype for non-existent function "cairo_ft_font_destroy" removed.
6679
6680 Now depends on libpixman 0.1.2 or newer, (0.1.3 is being released
6681 concurrently and has some useful performance improvements).
6682
6683 Default paint color is now opaque black, (was opaque white). Default
6684 background color is transparent (as before).
6685
6686 Renamed "struct cairo" to "struct _cairo" to free up the word "cairo"
6687 from the C++ identifier name space.
6688
6689 Functions returning multiple return values through provided pointers,
6690 (cairo_matrix_get_affine, cairo_current_point, and
6691 cairo_current_color_rgb), will now accept NULL for values the user
6692 wants to ignore.
6693
6694 CAIRO_HAS_FREETYPE_FONT has now been renamed to CAIRO_HAS_FT_FONT.
6695
6696 Performance improvements
6697 ------------------------
6698 Alexander Larsson provided some fantastic performance improvements
6699 yielding a 10000% performance improvement in his application, (when
6700 also including his performance work in libpixman-0.1.3). These include
6701
6702  * Fixed handling of cache misses.
6703
6704  * Creating intermediate clip surfaces at the minimal size required.
6705
6706  * Eliminating roundtrips when creating intermediate Xlib surfaces.
6707
6708 Implementation
6709 --------------
6710 Major re-work of font metrics system by Keith Packard. Font metrics
6711 should now be much more reliable.
6712
6713 Glitz backend
6714 -------------
6715 Updated for glitz-0.3.0.
6716 Bug fixes in reference counting.
6717
6718 Test suite
6719 ----------
6720 New tests for cache crashing, rotating text, improper filling of
6721 complex polygons, and leaky rasterization.
6722
6723 Bug fixes
6724 ---------
6725 Fixed assertion failure when selecting the same font multiple times in
6726 sequence.
6727
6728 Fixed reference counting so cache_destroy functions work.
6729
6730 Remove unintended copyright statement from files generated with
6731 PostScript backend.
6732
6733 Fixed to eliminate new warnings from gcc 3.4 and gcc 4.
6734
6735 Snapshot 0.2.0 (2004-10-27 Carl Worth <cworth@cworth.org>)
6736 ===========================================================
6737 New license: LGPL/MPL
6738 ---------------------
6739 The most significant news with this release is that the license of
6740 cairo has changed. It is now dual-licensed under the LGPL and the
6741 MPL. For details see the COPYING file as well as COPYING-LGPL-2.1 and
6742 COPYING-MPL-1.1.
6743
6744 I express my thanks to everyone involved in the license change process
6745 for their patience and support!
6746
6747 New font and glyph internals
6748 ----------------------------
6749 Graydon Hoare has put a tremendous amount of work into new internals
6750 for handling fonts and glyphs, including caches where appropriate.
6751 This work has no impact on the user-level API, but should result in
6752 great performance improvements for applications using text.
6753
6754 New test suite
6755 --------------
6756 This snapshot of cairo includes a (small) test suite in
6757 cairo/test. The tests can be run with "make check". The test suite was
6758 designed to make it very easy to add new tests, and we hope to see
6759 many contributions here. As you find bugs, please try adding a minimal
6760 test case to the suite, and submit it with the bug report to the
6761 cairo@cairographics.org mailing list. This will make it much easier
6762 for us to track progress in fixing bugs.
6763
6764 New name for glitz backend
6765 --------------------------
6766 The gl backend has now been renamed to the glitz backend. This means
6767 that the following names have changed:
6768
6769         CAIRO_HAS_GL_SURFACE    -> CAIRO_HAS_GLITZ_SURFACE
6770         cairo_set_target_gl     -> cairo_set_target_glitz
6771         cairo_gl_surface_create -> cairo_glitz_surface_create
6772
6773 This change obviously breaks backwards compatibility for applications
6774 using the old gl backend.
6775
6776 Up-to-date with latest glitz snapshots
6777 --------------------------------------
6778 This snapshot of cairo is now up to date with the latest glitz
6779 snapshot, (currently 0.2.3). We know that the latest cairo and glitz
6780 snapshots have been incompatible for a very long time. We've finally
6781 fixed that now and we're determined to not let that happen again.
6782
6783 Revert some tessellation regression bugs
6784 ----------------------------------------
6785 People that have been seeing some tessellation bugs, (eg. leaked
6786 fills), in the CVS version of cairo may have better luck with this
6787 release. A change since the last snapshot was identified to trigger
6788 some of these bugs and was reverted before making the snapshot. The
6789 behavior should be the same as the previous (0.1.23) snapshot.
6790
6791 Miscellaneous changes
6792 ---------------------
6793 Changed CAIRO_FILTER_DEFAULT to CAIRO_FILTER_BEST to make gradients
6794 easier.
6795
6796 Track XCB API change regarding iterators.
6797
6798 Various bug fixes
6799 -----------------
6800 Fix calculation of required number of vertices for pen.
6801
6802 Fix to avoid zero-dimensioned pixmaps.
6803
6804 Fix broken sort of pen vertices.
6805
6806 Fix bug when cairo_show_text called with a NULL string.
6807
6808 Fix clipping bugs.
6809
6810 Fix bug in computing image length with XCB.
6811
6812 Fix infinite loop bug in cairo_arc.
6813
6814 Fix memory management interactions with libpixman.
6815
6816 Snapshot 0.1.23 (2004-05-11 Carl Worth <cworth@isi.edu>)
6817 ========================================================
6818 Fixes for gcc 3.4
6819 -----------------
6820 Fix prototype mismatches so that cairo can be built by gcc 3.4.
6821
6822 Updates to track glitz
6823 ----------------------
6824 Various fixes to support the latest glitz snapshot (0.1.2).
6825
6826 Gradient updates
6827 ----------------
6828 Radial gradients now support both inner and outer circles.
6829 Transformed linear gradients are now properly handled.
6830 Fixes for extend type reflect.
6831
6832 Glitz updates
6833 -------------
6834 Converted shading routines to use fixed point values and introduced a
6835 shading operator structure for more efficient shading calculations.
6836 Support compositing with mask surface when mask is solid or
6837 multi-texturing is available.
6838
6839 PNG backend cleanups
6840 --------------------
6841 Fix output to properly compensate for pre-multiplied alpha format in cairo.
6842 Add support for A8 and A1 image formats.
6843
6844 Bug fixes
6845 ---------
6846 Avoid crash or infinite loop on null strings and degeneratively short
6847 splines.
6848
6849 New? bugs in cairo_clip
6850 -----------------------
6851 There are some fairly serious bugs in cairo_clip. It is sometimes
6852 causing an incorrect result. And even when it does work, it is
6853 sometimes so slow as to be unusable. Some of these bugs may not be
6854 new, (indeed cairo_clip has only ever had a braindead-slow
6855 implementation), but I think they're worth mentioning here.
6856
6857 Snapshot 0.1.22 (2004-04-16 Carl Worth <cworth@isi.edu>)
6858 ========================================================
6859 Cairo was updated to track the changes in libpixman, and now depends
6860 on libpixman version 0.1.1.
6861
6862 Snapshot 0.1.21 (2004-04-09 David Reveman <c99drn@cs.umu.se>)
6863 =============================================================
6864 New OpenGL backend
6865 ------------------
6866 The OpenGL backend provides hardware accelerated output for
6867 X11 and OS X. The significant new functions are:
6868
6869         cairo_set_target_gl
6870         cairo_gl_surface_create
6871
6872 Automatic detection of available backends
6873 -----------------------------------------
6874 The configure script now automatically detect what backends are
6875 available, (use ./configure --disable-`backend' to prevent
6876 compilation of specific backends).
6877
6878 Snapshot 0.1.20 (2004-04-06 Carl Worth <cworth@isi.edu>)
6879 ========================================================
6880 New pattern API
6881 ---------------
6882 David Reveman has contributed a new pattern API which enable linear
6883 and radial gradient patterns in addition to the original surface-based
6884 patterns. The significant new top-level functions are:
6885
6886         cairo_pattern_create_linear
6887         cairo_pattern_create_radial
6888         cairo_pattern_create_for_surface
6889         cairo_pattern_add_color_stop
6890         cairo_set_pattern
6891
6892 Any code using the old cairo_set_pattern, (which accepted a
6893 cairo_surface_t rather than a cairo_pattern_t), will need to be
6894 updated.
6895
6896 Update to XCB backend
6897 ---------------------
6898 The XCB backend is now enabled by default, (use ./configure
6899 --disable-xcb to turn it off).
6900
6901 Faster clipping
6902 ---------------
6903 Graydon Hoare has added optimizations that make cairo_clip much faster
6904 when the path is a pixel-aligned, rectangular region.
6905
6906 Bug fixes.
6907
6908 Snapshot 0.1.19 (2004-02-24 Carl Worth <cworth@isi.edu>)
6909 ========================================================
6910 New PNG backend
6911 ---------------
6912 Olivier Andrieu contributed a new PNG backend. It builds on the
6913 existing image backend to make it easy to render "directly" to a
6914 .png file. The user never needs to deal with the actual image
6915 buffer. The significant new functions are:
6916
6917         cairo_set_target_png
6918         cairo_png_surface_create
6919
6920 The PNG backend is not enabled by default so that by default there is
6921 not a new dependency on libpng. Use ./configure --enable-png to enable
6922 this backend.
6923
6924 Snapshot 0.1.18 (2004-02-17 Carl Worth <cworth@isi.edu>)
6925 ========================================================
6926 Path query functionality
6927 ------------------------
6928 It's now possible to query the current path. The two new functions
6929 are:
6930
6931         cairo_current_path
6932         cairo_current_path_flat
6933
6934 Each function accepts a number of callback functions that will be
6935 called for each element in the path (move_to, line_to, curve_to,
6936 close_path). The cairo_current_path_flat function does not accept a
6937 curve_to callback. Instead, all curved portions of the path will be
6938 converted to line segments, (within the current tolerance value). This
6939 can be handy for doing things like text-on-path without having to
6940 manually interpolate Bézier splines.
6941
6942 New XCB backend
6943 ---------------
6944 Jamey Sharp has contributed a second X backend that uses the new, lean
6945 XCB library rather than Xlib. It cannot currently be compiled at the
6946 same time as the Xlib backend. See ./configure --enable-xcb.
6947
6948 Build fixes for cygwin.
6949
6950 Bug fixes.
6951
6952 Snapshot 0.1.17 (2003-12-16 Carl Worth <cworth@isi.edu>)
6953 ========================================================
6954
6955 Better text support
6956 -------------------
6957 This snapshot provides much better text support by implementing the
6958 following four functions:
6959
6960         cairo_text_extents
6961         cairo_glyph_extents
6962         cairo_text_path
6963         cairo_glyph_path
6964
6965 The text/glyph_extents functions can be used to determine the bounding
6966 box (and advance) for text as if drawn by show_text/glyphs.
6967
6968 The text/glyph_path objects functions place text shapes on the current
6969 path, where they can be subsequently manipulated. For example,
6970 following these functions with cairo_stroke allows outline text to be
6971 drawn. Calling cairo_clip allows clipping to a text-shaped region.
6972
6973 Combined dependencies
6974 ---------------------
6975 The cairo core now depends only on the libpixman library. This single
6976 library replaces the three previous libraries libic, libpixregion, and
6977 slim. Thanks to Dave Beckett <dave.beckett@bristol.ac.uk> for all of
6978 the heavy lifting with this renaming effort.
6979
6980 Conditional compilation of backends
6981 -----------------------------------
6982 Cairo now allows optional backends to be disabled at compile time. The
6983 following options may now be passed to the configure script:
6984
6985         --disable-xlib
6986         --disable-ps
6987
6988 Note that the first option is a change from the old --without-x option
6989 which will no longer have any effect.
6990
6991 OS X supported - several byte-order issues resolved
6992 ---------------------------------------------------
6993 Cairo has now been successfully compiled under OS X. Testing revealed
6994 that there were some byte-order problems in the PostScript backend and
6995 the PNG generation in the demos. These have now been resolved.
6996
6997 2003-10
6998 =======
6999 Graydon Hoare <graydon@redhat.com> implemented the first real text
7000 support using Freetype/fontconfig, (previous versions of cairo used
7001 Xft and could only draw text when using an X backend).
7002
7003 2003-09
7004 =======
7005 Graydon Hoare <graydon@redhat.com> added the first real support for
7006 running cairo with a non-render-aware X server.
7007
7008 Jamey Sharp <jamey@minilop.net> virtualized the backend font and
7009 surface interfaces in September, 2003.
7010
7011 2003-06
7012 =======
7013 Xr is renamed cairo to avoid confusion since it no longer had a strict
7014 dependence on X.
7015
7016 2003-05
7017 =======
7018 A new image surface backend is added to Xr. Keith Packard
7019 <keithp@keithp.com> wrote the image compositing code in libic that is
7020 used for the image_surface backend. This code was originally written
7021 as the software fallback for the render extension within the X
7022 server.
7023
7024 2002-06
7025 =======
7026 Carl Worth <cworth@isi.edu> wrote the first lines of Xr, after Keith
7027 Packard <keithp@keithp.com> proposed the plan for a stateful drawing
7028 library in C providing a PostScript-like rendering model.
7029
7030  LocalWords:  mutex BeOS extraordinaire distro's URL lcd bool tarball