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