1 Snapshot 1.9.2 (2009-06-12)
2 ===========================
5 cairo_surface_set_mime_data()
6 cairo_surface_get_mime_data()
8 Should this take unsigned int, unsigned long or size_t for the length
9 parameter? (Some datasets may be >4GiB in size.)
11 Associate an alternate, compressed, representation for a surface.
13 "image/jp2" (JPEG2000) is understood by PDF >= 1.5
14 "image/jpeg" is understood by PDF,PS,SVG,win32-printing.
15 "image/png" is understood by SVG.
18 cairo_pdf_surface_restrict_to_version()
19 cairo_pdf_get_versions()
20 cairo_pdf_version_to_string()
22 Similar to restrict to version and level found in SVG and PS,
23 these limit the features used in the output to comply with the PDF
24 specification for that version.
26 CAIRO_STATUS_INVALID_SIZE
27 Indicates that the request surface size is not supported by the
28 backend. This generally indicates that the request is too large.
30 CAIRO_STATUS_USER_FONT_NOT_IMPLEMENTED
31 Indicates that a required callback for a user-font was not implemented.
33 CAIRO_STATUS_LAST_STATUS
34 This is a special value to indicate the number of status values enumerated
35 at compile time. (This may differ to the number known at run-time.)
37 The built-in twin font is now called "@cairo:" and supports a limited set
38 of options like "@cairo:mono". Where are these specified?
40 cairo_in_fill() now uses HTML Canvas semantics, all edges are inside.
42 New experimental backends:
48 cairo-trace and cairo-perf-trace
50 cairo-trace generates a human-readable, replayable, compact(-ish!)
51 representation of the sequences of drawing commands made by an
54 Under the util/cairo-script directory is a library to replay traces.
56 perf/cairo-perf-trace replays traces against multiple backends
57 and makes useful benchmark reports. This is integrated with
58 'make perf'. You may collect your own traces or take advantage
59 of traces collected by the community:
61 git://git.cairographics.org/git/cairo-traces
63 (Put this into perf/cairo-traces to run these as part of "make perf".)
65 There is additional WIP in building a debugging tool for cairo applications
66 based on CairoScript (currently very preliminary, mostly serves to show
67 that GtkSourceView is too slow) :
69 people.freedesktop.org:~ickle/sphinx
73 The test suite is undergoing an overhaul, primarily to improve its speed
74 and utility. (Expect more changes in the near future to improve XFAIL
78 polygon rasterisation! Joonas implemented the Tor polygon scan converter,
79 on typical geometry is about 30% faster for the image backend.
81 Bovine Polaroids! For those not in on the joke, this is the long
82 awaited "copy-on-write snapshot" or "COW snapshot" support. The
83 user-visible feature is that including the same image multiple times
84 into a PDF file should result in only a single instance of that
85 image in the final output. This is unlike previous versions of cairo
86 which would generate very large PDF files with multiple copies of
87 the same image. Adrian says that the PDF is not quite working as
88 well as it should yet, so we hope for futher improvements before
95 Better handling of large scale-factors on image patterns.
97 Emit /Interpolate for PS,PDF images.
99 Global glyph cache - cap on the total number of inactive glyphs,
100 should prove fairer for fonts with larger glyph sets.
102 Compilation without fontconfig
104 Improved handling of low-bitdepth sources (e.g. copying the contents
105 of 16-bit xserver windows)
109 cairo_traps_extract_region >10x slower. Fix pending.
113 Region tracking API (ssp) for damage tracking, hit testing etc
116 An expiremental OpenGL backend?
118 Tweaks to tessellator, allocations of patterns, delayed
119 initialisation of the xlib backend (reduce the cairo overhead of
120 render_bench by ~80%).
123 Release 1.8.8 (2009-06-16 Chris Wilson <chris@chris-wilson.co.uk>)
124 ==================================================================
125 The cairo community is pleased to announce the 1.8.8 release of the
126 cairo graphics library. This is the fourth update to cairo's stable
127 1.8 series and contains a small number of bug fixes (in particular a
128 few corrections to the documentation and a few fixes in the FreeType font
129 backend). This is being released just over six months after cairo 1.8.6.
131 We recommend that everyone using cairo upgrade to 1.8.8.
137 There were reports of incompatibilities with the autotools bundled in with
138 the 1.8.6 tarball. This release has been built with automake-1.10.2 and
141 The configure check for FreeType has been improved:
143 typo in check for version of freetype in configure script
144 https://bugs.freedesktop.org/show_bug.cgi?id=19283
146 Compilation on 64-bit MacOS/X fixes:
148 Cannot build cairo_quartz_font_face_create_for_atsu_font_id on 64-bit Mac OS X
149 https://bugs.freedesktop.org/show_bug.cgi?id=15702
153 Uninitialised status return within _cairo_clip_intersect_mask(). This caused
154 random crashes and general mayhem as an error could be generated causing all
155 rendering to the context to stop.
157 Avoid transforming nearly-degenerate matrices into degenerate matrices:
159 Painting stops in this case, using -moz-transform: scale, rotate and video
160 https://bugzilla.mozilla.org/show_bug.cgi?id=467423
162 A few FreeType font handling bugs were fixed:
164 Rendering with PANGO_GRAVITY_EAST leads to different results with image and pdf
165 https://bugs.freedesktop.org/show_bug.cgi?id=21985
167 Don't call FT_Done_Face() on faces we did not create
169 zombie ft_font_face / ft_unscaled_font mutual referencing problems
170 http://bugs.freedesktop.org/show_bug.cgi?id=21706
172 Ensure win32 font backend sets the return value to -1 (indicating the absent
173 glyph) if the font index lookup for the unicode character fails. And
174 similarly fix a bug where a fatal error was raised for an invalid glyph.
176 cairo_scaled_font_glyph_extents breaks with invalid glyph id
177 http://bugs.freedesktop.org/show_bug.cgi?id=20255
179 Various improvements to the documentation, reported by Truc Troung:
181 https://bugs.freedesktop.org/show_bug.cgi?id=20095
182 https://bugs.freedesktop.org/show_bug.cgi?id=20154
183 https://bugs.freedesktop.org/show_bug.cgi?id=20180
184 https://bugs.freedesktop.org/show_bug.cgi?id=20183
185 https://bugs.freedesktop.org/show_bug.cgi?id=20182
186 https://bugs.freedesktop.org/show_bug.cgi?id=20441
189 Release 1.8.6 (2008-12-13 Chris Wilson <chris@chris-wilson.co.uk>)
190 ==================================================================
191 The cairo community is pleased to announce the 1.8.6 release of the
192 cairo graphics library. This is the third update to cairo's stable
193 1.8 series and contains a small number of bug fixes (in particular a
194 few fixes for failures of cairo 1.8.4 on Quartz and PDF, and build fixes for
195 a couple of backends). This is being released just under a month after
198 We recommend that everyone using cairo upgrade to 1.8.6.
204 Fix build of DirectFB backend with debugging enabled:
206 Bug in _cairo_directfb_surface_release_source_image function
207 http://bugs.freedesktop.org/show_bug.cgi?id=18322
213 Workaround a mis-compilation of cairo_matrix_invert() that generated invalid
214 matrices and triggered assertion failures later. The issue was reported by
217 Invalid computation of the modulus:
219 https://bugzilla.mozilla.org/show_bug.cgi?id=466258
221 Invalid referencing of patterns in the Quartz backend:
223 Failed assertion `CAIRO_REFERENCE_COUNT_HAS_REFERENCE
224 (&pattern->ref_count)' when using cairo quartz backend
225 http://bugs.freedesktop.org/show_bug.cgi?id=18632
227 Invalid references to glyphs after early culling, causing segmentation faults
230 http://lists.cairographics.org/archives/cairo/2008-December/015976.html
232 Check for XRender in the XCB backend, or else we may attempt an invalid memory
235 XCB backend fails with missing render.
236 https://bugs.freedesktop.org/show_bug.cgi?id=18588
238 Release 1.8.4 (2008-11-14 Carl Worth <cworth@cworth.org>)
239 =========================================================
240 The cairo community is pleased to announce the 1.8.4 release of the
241 cairo graphics library. This is the second update to cairo's stable
242 1.8 series and contains a small number of bug fixes, (in particular a
243 few fixes for build failures of cairo 1.8.2 on various systems). This
244 is being released just over two weeks after cairo 1.8.2.
246 We recommend that everyone using cairo upgrade to 1.8.4.
252 Fix build with older XRender that doesn't define RepeatNone:
254 Build of xlib backend fails against old XRender (RepeatNone undeclared)
255 https://bugs.freedesktop.org/show_bug.cgi?id=18385
257 Fix build with bash version <= 3.0:
259 doltlibtool broken on linux with bash 3.00.0
260 https://bugs.freedesktop.org/show_bug.cgi?id=18363
264 Avoid triggering a bug in X.org server 6.9 resulting in a hung machine
267 https://bugs.freedesktop.org/show_bug.cgi?id=15628#c2
269 Fix display of user fonts as exercised by proposed support for type3
270 fonts in poppler (unsigned promotion fixes):
272 Use cairo user-font for Type 3 fonts
273 http://lists.freedesktop.org/archives/poppler/2008-October/004181.html
275 Avoid miscomputing size of fallback images required when rendering
276 with CLEAR, IN, or SOURCE operator to vector surfaces, (PS, PDF, SVG,
279 Be more tolerant of broken fonts when subsetting type1 fonts:
281 Error handling in cairo_type1_font_subset_get_glyph_names_and_widths
282 http://lists.cairographics.org/archives/cairo/2008-October/015569.html
284 Fix cairo_fill_extents, cairo_stroke_extents, cairo_path_extents, to
285 correctly allow NULL parameters as documented.
287 Fix potential crash on emitting a type3 glyph after having drawn text
288 paths from the same font, (for example with cairo_text_path).
290 Release 1.8.2 (2008-10-29 Carl Worth <cworth@cworth.org>)
291 =========================================================
292 The cairo community is pleased to announce the 1.8.2 release of the
293 cairo graphics library. This is the first update to cairo's stable 1.8
294 series and contains a large number of bug fixes. It is being released
295 just over one month since cairo 1.8.0.
297 This release consists primarily of bug fixes, but there is one notable
298 new feature, (the ability to build cairo without an external font
299 backend), and there are a few optimizations as well. See below for
300 details on these changes and the most important bug fixes.
302 While many people have contributed to this release, Chris Wilson
303 deserves particular mention. He has contributed well over twice as
304 many changes to cairo since 1.8.0 than everyone else combined. We
305 greatly appreciate the tremendous efforts of Chris and all cairo
308 We recommend everyone upgrade to cairo 1.8.2 and hope that everyone
309 will have lots of fun with cairo!
315 It is now possible to build cairo without any font backend, (such as
316 freetype, win32 or quartz). This is most useful when the application
317 provides custom font rendering through the user-font API. But in the
318 case where no external font backend is available, and no user-font is
319 provided, cairo will render with a failsafe font, (a stroked font
320 covering visible ASCII character). (Behdad Esfahbod)
324 Dramatically speed up compilation with dolt (removes much of the
325 libtool overhead) (Behdad Esfahbod with thanks to Josh Triplett).
327 Several minor optimizations to tessellator (special-cased comparisons,
328 faster insert for skiplist, etc.) (Chris Wilson).
330 Optimize away fractional translation component when doing
331 EXTEND_NEAREST filtering, (for better performance).
335 Allow cloning sub-regions of similar surfaces to fix this bug
338 Crafted gif file will crash firefox
339 [XError: 'BadAlloc (insufficient resources for operation)']
340 https://bugzilla.mozilla.org/show_bug.cgi?id=424333
342 Fix some matrix confusion to fix this regression (Chris Wilson):
344 Translucent star exports in a wrong way to PDF
345 https://bugs.launchpad.net/inkscape/+bug/234546
347 Fix some long-standing bugs with respect to properly computing the
348 extents of transformed, filtered surfaces (Owen Taylor, Carl Worth,
351 Bad clipping with EXTEND_NONE
352 http://bugs.freedesktop.org/show_bug.cgi?id=15349
354 Improve filtering handling in cairo-pattern.c
355 http://bugs.freedesktop.org/show_bug.cgi?id=15367
357 Many thanks to Chris Wilson for digging out and cleaning up
360 Fix compilation on Solaris 10 (Chris Wilson):
362 Cairo requires -DREENTRANT (along with -D_POSIX_THREAD_SEMANTICS)
363 to compile on Solaris 10 with pthreads
364 https://bugs.freedesktop.org/show_bug.cgi?id=18010
366 Fix very old bug causing dashes to be rendered at the wrong length in
367 fallback images (Adrian Johnson)
369 Dashed strokes too long in fallback images
370 https://bugs.freedesktop.org/show_bug.cgi?id=9189
372 Fix broken dashing when a dashed path starts outside the clip region
375 Avoid range overflow when computing large patterns (Benjamin Otte and
378 Avoid crashing due to an invalid font with an incorrect entry in its
379 CMAP table (Adrian Johnson).
381 Fix bugs in computing maximum size of text requests that can be sent
382 with the Render extension, (avoiding potential crashes when rendering
383 large amounts of text) (Behdad Esfahbod and Chris Wilson).
385 Fix rendering of operators unbounded by the mask (Chris Wilson).
387 Fix compilation on systems without compiler support for a native
388 64-bit type (Chris Wilson).
390 Fix several cases of missing error-status propagation. (Chris Wilson,
391 doing the work he seems to never tire of).
393 Fix several locking issues found with the lockdep valgrind skin (Chris
396 Backend-specific bug fixes
397 --------------------------
398 xlib: Avoid crash due to attempting XRender calls on pixmaps with
399 formats not supported by the Render extension (Chris Wilson):
401 XRender crashes due to NULL pointer from Cairo on SGI O2
402 https://bugs.freedesktop.org/show_bug.cgi?id=11734
404 xlib: Add support for XImages with depth of 4, 20, 24, or 28 bits
407 cairo doesn't support 24 bits per pixel mode on X11
408 https://bugs.freedesktop.org/show_bug.cgi?id=9102
410 xlib: Avoid mistakenly considering two surfaces as similar just
411 because their depths match (while their Render formats do not) (Karl
414 ps: Fix slight mis-scaling of bitmapped fonts (Adrian Johnson)
416 svg: Correctly emit comp-op for paint, mask, and show_glyphs
417 operations (Emmanuel Pacaud).
419 svg: Use finer-grained fallbacks for SVG 1.2 (as PS and PDF backends
420 have been doing since 1.6.0) (Chris Wilson).
422 win32: Fallback to DIB if DDB create fails for
423 cairo_surface_create_similar (Vladimir Vukicevic).
425 win32: Fix compatibility with Windows Mobile (Vladimir Vukicevic).
427 win32: Fix static builds to not do __declspec(dllimport) on public
428 functions. This requires the user to set a CAIRO_WIN32_STATIC_BUILD
429 environment variable when compiling (Behdad Esfahbod).
431 Release 1.8.0 (2008-09-25 Carl Worth <cworth@cworth.org>)
432 =========================================================
433 The cairo community is happy (and relieved) to announce the 1.8.0
434 release of the cairo graphics library. This is a major update to
435 cairo, with new features and enhanced functionality which maintains
436 compatibility for applications written using any previous major cairo
437 release, (1.6, 1.4, 1.2, or 1.0). We recommend that anybody using a
438 previous version of cairo upgrade to cairo 1.8.0.
440 The dominant theme of this release is improvements to cairo's ability
441 to handle text. The highlights include a new "user fonts" feature as
442 well as a new cairo_show_text_glyphs API which allows glyphs to be
443 embedded in PDF output along with their original text, (for searching,
444 selection, and copy-and-paste). Another major feature is a revamp of
445 cairo's build system making it much easier to build cairo on various
448 See below for more details.
452 This new API allows the user of cairo API to provide drawings for
453 glyphs in a font. A common use for this is implementing fonts in
454 non-standard formats, like SVG fonts and Flash fonts. This API can
455 also be used by applications to provide custom glyph shapes for fonts
456 while still getting access to cairo's glyph caches. See
457 test/user-font.c and test/user-font-proxy.c for usage examples. This
458 is based on early work by Kristian Høgsberg. Thanks Kristian!
460 This new API consists of the following functions (and corresponding
463 cairo_user_font_face_create
465 cairo_user_font_face_set_init_func
466 cairo_user_font_face_set_render_glyph_func
467 cairo_user_font_face_set_text_to_glyphs_func
468 cairo_user_font_face_set_unicode_to_glyph_func
470 An additional, new API is
472 cairo_scaled_font_text_to_glyphs
474 We were previously reluctant to provide this function as
475 text-to-glyphs support in cairo was limited to "toy" font
476 functionality, not really interesting for real-world text
477 processing. However, with user fonts landing, this API is needed to
478 expose full access to how user fonts convert text to glyphs. This is
479 expected to be used by text toolkits like Pango, as well as "proxy"
480 user-font implementations.
482 cairo_show_text_glyphs
483 ----------------------
484 This new API allows the caller of cairo to provide text data
485 corresponding to glyphs being drawn. The PDF backend implements this
486 new API so that complex text can be copied out of cairo's PDF output
487 correctly and reliably, (assuming the user of cairo calls
488 cairo_show_text_glyphs). The cairo_show_text_glyphs API is definitely
489 the most daunting API to debut in cairo. It is anticipated that pango
490 (and similar high-level text libraries) will be the primary users of
491 this API. In fact, pango 1.22 already uses cairo_show_text_glyphs.
492 Behdad was the architect and implementor of this effort. Thanks,
495 The cairo_show_text_glyphs API includes the following new functions:
497 cairo_show_text_glyphs
502 cairo_text_cluster_allocate
503 cairo_text_cluster_free
505 cairo_surface_has_show_text_glyphs
509 The primary goal of the revamp is to make the build system less
510 fragile, (particularly for non-Linux platforms). For example, now
511 people building on win32 will no longer need to maintain a
512 platform-specific list of files to be built. See the new README.win32
513 for details. Also, the .so file will now be installed with a different
514 naming scheme, (for example, 1.7.6 will install with a .10800
515 suffix). Many thanks to Behdad and his small army of helpers!
517 Assorted API additions
518 ----------------------
519 For API completeness, several missing "getter" functions were added:
521 cairo_scaled_font_get_scale_matrix
523 cairo_surface_get_fallback_resolution
525 cairo_toy_font_face_create
526 cairo_toy_font_face_get_family
527 cairo_toy_font_face_get_slant
528 cairo_toy_font_face_get_weight
530 The new cairo_toy_font_face functions provide access to functionality
531 and settings provided by cairo_select_font_face(). Thanks Behdad!
533 cairo-ps/cairo-pdf: More efficient output
534 -----------------------------------------
535 Adrian Johnson has been busy fixing all kinds of bugs in PS and PDF
536 backends, as well making them generate much more compact output by
537 avoiding things like re-emitting the color or linestyle on every
538 drawing operation. Thanks Adrian!
540 cairo-xlib: dithering
541 ---------------------
542 Dithering: Cairo now does simple dithering when rendering to legacy X
543 servers. This is most visible with 8-bit visuals. Thanks Behdad!
545 cairo-xlib: Avoid rendering glyphs out of surface bounds
546 --------------------------------------------------------
547 This seemingly harmless optimization exposed a bug in OpenOffice.org 3
548 versions where OO.o was passing bogus surface extents to cairo,
549 resulting in no text rendered in OO.o. Please contact your
550 distribution's OO.o maintainers if you see this bug and point them to
553 https://bugs.freedesktop.org/show_bug.cgi?id=16209
555 cairo-xlib: Improved performance with X server without Render
556 -------------------------------------------------------------
557 Cairo now performs better on remote X servers that lack the Render
558 extension by being smarter about using X core protocol facilities
559 instead of falling back to doing all rendering on the client side.
561 cairo-ft: respecting FC_FT_FACE
562 -------------------------------
563 Previously it was impossible to instruct cairo to do emboldening on a
564 font face object created from an FT_Face. Cairo now respects and uses
565 the FC_FT_FACE fontconfig pattern element, so emboldening can be
566 achieved by using cairo_ft_font_face_create_for_pattern() and a
567 carefully crafted pattern using FC_FT_FACE and FC_EMBOLDEN. Thanks
570 cairo-directfb: backend improvements
571 ------------------------------------
572 The directfb backend, though still unsupported, has seen a good deal
573 of improvements. Thanks Vlad!
575 Bug fixing and optimizations
576 ----------------------------
577 xlib: Faster bookkeeping (Karl Tomlinson)
578 https://bugzilla.mozilla.org/show_bug.cgi?id=453199#c5
580 PS: Fix gradients with non-constant alpha (Chris Wilson)
582 Fix deadlock in user-font code (Richard Hughes and Behdad Esfahbod)
583 http://bugs.freedesktop.org/show_bug.cgi?id=16819
585 Countless other bugs have been fixed and optimizations made, many of
586 them thanks to Chris Wilson. Thanks Chris and others!
588 Note also that the code that had been in cairo 1.7.x calling into
589 freetype's optional lcd_filter function was removed from cairo before
590 the 1.8.0 release. We do expect this code to come back in some form in
593 Snapshot 1.7.6 (2008-09-17 Carl Worth <cworth@cworth.org>)
594 ==========================================================
595 The cairo community is happy to announce the 1.7.6 snapshot of the
596 cairo graphics library. This is a "release candidate" for the upcoming
597 1.8.0 release, so we will greatly appreciate any reports of problems
598 in this release, and no major changes are currently planned before
601 Notable changes in 1.7.6
602 ------------------------
603 The largest number of changes since 1.7.4 did not change the
604 implementation of cairo itself, but instead revamped cairo's build
605 system. The primary goal of the revamp is to make the build system
606 less fragile, (particularly for non-Linux platforms). For example, now
607 people building on win32 will no longer need to maintain a
608 platform-specific list of files to be built. Also, the .so file will
609 now be installed with a different naming scheme, (for example, 1.7.6
610 will install with a .10706 suffix). Much thanks, Behdad!
612 And, as usual, Chris Wilson has made another large round of robustness
613 improvements, (eliminating dead code, fixing propagation of error
614 status values, test suite improvements, etc. etc.). Thanks as always,
617 API changes since 1.7.4
618 -----------------------
619 There have been a few changes of API that was new during the 1.7
622 * Remove cairo_font_options_set_lcd_filter
623 and cairo_font_options_get_lcd_filter
625 Motivation: At the Cairo Summit, this API was determined to be too
626 specific to the freetype font backend to be in the general
627 API. A similar API with a cairo_ft prefix might be introduced
628 in the future. Note that cairo will still respect the
629 corresponding fontconfig settings for these options.
631 * Replace cairo_has_show_glyphs
632 with cairo_surface_has_show_glyphs
634 Motivation: This really is a surface-specific interface, and the
635 convenience function on the cairo_t is not obviously
636 necessary. An application can easily call:
638 cairo_surface_has_show_glyphs (cairo_get_target (cr));
642 * Add cairo_text_cluster_flags_t
643 to cairo_show_text_glyphs
644 cairo_scaled_font_text_to_glyphs
645 cairo_user_scaled_font_text_to_glyphs_func_t
647 Motivation: This flag, (and specifically the
648 CAIRO_TEXT_CLUSTER_FLAG_BACKWARD value), replaces the
649 cairo_bool_t backward argument in each of the above
650 interfaces. This leads to more readable user code, and also
651 allows future extensibility.
653 As always, there are no changes to any API from any major cairo
654 release, (1.0.x, 1.2.x, 1.4.x, 1.6.x). Cairo maintains the same
655 compatibility promise it always has.
657 Bug fixes since 1.7.4
658 ---------------------
659 xlib: Faster bookkeeping (Karl Tomlinson)
660 https://bugzilla.mozilla.org/show_bug.cgi?id=453199#c5
662 PS: Fix gradients with non-constant alpha (Chris Wilson)
664 Fix deadlock in user-font code (Richard Hughes and Behdad Esfahbod)
665 http://bugs.freedesktop.org/show_bug.cgi?id=16819
667 Several other minor fixes.
669 Snapshot 1.7.4 (2008-08-11 Behdad Esfahbod <behdad@behdad.org>)
670 ===============================================================
671 The cairo community is embarrassed to announce availability of the 1.7.4
672 snapshot of the cairo graphics library. This is a followup release to the
673 1.7.2 snapshot to ship a tarball that can actually be built. The only
674 change since 1.7.4 is including the missing header file
675 cairo-user-font-private.h in the distribution.
677 Snapshot 1.7.2 (2008-08-11 Behdad Esfahbod <behdad@behdad.org>)
678 ===============================================================
679 The cairo community is finally ready to announce availability of the 1.7.2
680 snapshot of the cairo graphics library. This is embarrassingly the first
681 snapshot in the 1.7 unstable series of cairo, leading to the eventual release
682 of cairo 1.8, currently planned for late September.
684 This snapshot comes four months after the 1.6.4 release. We have done a
685 really bad job on getting development snapshots out this cycle, but
686 hopefully all the API changes for 1.8 are now finished and the remaining
687 weeks will be spent on bug-fixing. There is more than 400 commits worth
688 of changes in this snapshot, and those can use some testing. Read on!
690 Text, text, and more text!
691 --------------------------
692 The dominant theme of this release, and 1.8 in general, is improvements
693 around cairo text API. Here is a high-level list of changes with text
698 This is new API allowing the user of cairo API to provide drawings for glyphs
699 in a font. This is most useful in implementing fonts in non-standard formats,
700 like SVG fonts and Flash fonts, but can also be used by games and other
701 applications to draw "funky" fonts. See test/user-font.c and
702 test/user-font-proxy.c for usage examples. This is based on early work by
703 Kristian Høgsberg. Thanks Kristian!
707 This new API allows the caller of cairo to mark text glyphs with their
708 original text. The PDF backend implements this new API and latest Pango
709 master uses it. The result is (when bugs are fixed) that complex text can be
710 copied out of pangocairo's PDF output correctly and reliably. There are bugs
711 to fix though. A few poppler bugs, and some more in cairo and pango.
713 To test show_text_glyph, just grab pango master and this cairo snapshot and
714 print text in gedit. Open in acroread or evince, select all, copy, paste
715 in gedit and compare. The Arabic text with diacritic marks is particularly
716 showing bad. Try with pango/pango-view/HELLO.txt if you are brave
717 enough. The Indic text is showing improvements, but is still coming out
720 LCD subpixel filtering using FreeType
721 -------------------------------------
722 FreeType 2.3.5 added support for various LCD subpixel filtering, and
723 fontconfig 2.6.0 added support for configuring LCD filter on a font by font
724 basis. Cairo now relies on FreeType and fontconfig for subpixel filtering.
725 This work is based on David Turner's original patch to cairo, maintained
726 and tested by Sylvain Pasche and others. Thanks all!
728 Toy font face constructor and getter
729 ------------------------------------
730 Mostly for API completion, but also useful for higher level (like Pango) to
731 hook into what the user has set using cairo_select_font_face(), making that
732 toy API a bit more useful.
734 FreeType: respecting FC_FT_FACE
735 -------------------------------
736 Previously it was impossible to instruct cairo to do emboldening on a font
737 face object created from an FT_Face. Cairo now respects and uses the
738 FC_FT_FACE fontconfig pattern element, so emboldening can be achieved by
739 using cairo_ft_font_face_create_for_pattern() and a carefully crafted pattern
740 using FC_FT_FACE and FC_EMBOLDEN.
743 PS/PDF: More efficient output
744 -----------------------------
745 Adrian Johnson has been busy fixing all kinds of bugs in PS and PDF
746 backends, as well making them generate much more compact output by avoiding
747 things like re-emitting the color or linestyle on every drawing operation.
753 Cairo now does simple dithering when rendering to legacy X servers. This is
754 mostly visible with 8-bit visuals.
756 Xlib: Avoid rendering glyphs out of surface bounds
757 --------------------------------------------------
758 This seemingly harmless change manifested a bug with OpenOffice.org 3 versions
759 where OO.o was passing bogus surface extents to cairo, resulting in no text
760 rendered in OO.o. Please contact your distro's OO.o maintainers if you see
761 this bug and point them to the following URL:
763 https://bugs.freedesktop.org/show_bug.cgi?id=16209
765 Xlib: Improved performance with Xrender-less X servers
766 ------------------------------------------------------
767 Cairo now performs better on remote, Xrender-less X servers by being smarter
768 about using X core protocol facilities instead of falling back to doing all
769 rendering on the client side.
772 Directfb: backend improvements
773 ------------------------------
774 The directfb backend, though still unsupported, has seen a good deal of
775 improvements. Thanks Vlad!
778 Bug fixing and optimizations
779 ----------------------------
780 Countless bugs have been fixed and optimizations made, many of them thanks to
781 Chris Wilson. Thanks Chris!
787 cairo_show_text_glyphs
789 This is a new text rendering API. Being a more advanced version of
790 cairo_show_glyphs(), it is aimed for use by higher-level text toolkits like
791 Pango, and enables better text extraction from output generated by backends
792 like PDF and SVG. The PDF backend already implements it, and the upcoming
793 Pango release will use it.
795 To make that API work, a bunch of other additions were made:
800 cairo_text_cluster_allocate
801 cairo_text_cluster_free
802 cairo_surface_has_show_text_glyphs
805 cairo_user_font_face_create
807 This is the "user" font face constructor, accompanied by a variety of method
808 signatures, getters, and setters for a callback-based font backend:
811 cairo_user_scaled_font_init_func_t
812 cairo_user_scaled_font_render_glyph_func_t
813 cairo_user_scaled_font_text_to_glyphs_func_t
814 cairo_user_scaled_font_unicode_to_glyph_func_t
815 cairo_user_font_face_set_init_func
816 cairo_user_font_face_set_render_glyph_func
817 cairo_user_font_face_set_text_to_glyphs_func
818 cairo_user_font_face_set_unicode_to_glyph_func
819 cairo_user_font_face_get_init_func
820 cairo_user_font_face_get_render_glyph_func
821 cairo_user_font_face_get_text_to_glyphs_func
822 cairo_user_font_face_get_unicode_to_glyph_func
825 cairo_scaled_font_text_to_glyphs
827 We were previously reluctant to provide this function as text-to-glyphs
828 support in cairo was limited to "toy" font functionality, not really
829 interesting for real-world text processing. However, with user-fonts
830 landing, this API is needed to expose full access to how user-fonts
831 convert text to glyphs. This is expected to be used by text toolkits like
832 Pango, as well as "proxy" user-font implementations.
836 cairo_font_options_set_lcd_filter
837 cairo_font_options_get_lcd_filter
839 These add the possibility to choose between various available LCD subpixel
840 filters. The available filter values are modeled after what FreeType
844 cairo_toy_font_face_create
845 cairo_toy_font_face_get_family
846 cairo_toy_font_face_get_slant
847 cairo_toy_font_face_get_weight
849 These provide access to functionality and settings provided by
850 cairo_select_font_face().
853 cairo_scaled_font_get_scale_matrix
854 cairo_surface_get_fallback_resolution
856 For API completeness.
859 Various new values for cairo_status_t enum
864 - Type3 fonts generated by cairo's PDF backend may show up in poppler/Evince
865 in a different color than expected. This is fixed in poppler master branch.
866 This mostly affects cairo user fonts. The test case test/user-font.c
869 - User fonts using other fonts in their rendering are currently embedded in
870 PDF as fallback bitmap glyphs. This will be (hopefully) fixed before 1.8.
871 The test case test/user-font-proxy.c demonstrates this.
874 Release 1.6.4 (2008-04-11 Carl Worth <cworth@cworth.org>)
875 =========================================================
876 The cairo community is wildly embarrassed to announce the 1.6.4
877 release of the cairo graphics library. This release reverts the xlib
878 locking change introduced in 1.6.4, (and the application crashes that
879 it caused). The community would be glad to sack its current release
880 manager and is accepting applications for someone who could do the job
881 with more discipline.
883 Revert 'add missing locking in cairo-xlib'
884 ------------------------------------------
885 This change was introduced in cairo 1.6.2, but also introduced a bug
886 which causes many cairo-xlib applications to crash, (with a
887 segmentation fault inside of XSetClipMask). Instead of attempting
888 another fix for the broken fix, the change in 1.6.2 has been
889 reverted. The original bug which the change was addressing has been
890 present since at least cairo 1.4, so it is not expected that leaving
891 this bug unfixed will cause any new problems for applications moving
892 from cairo 1.4 to cairo 1.6.
894 At this point, the code of cairo 1.6.4 differs from cairo 1.6.0 only
895 in the fix for the PostScript-printer crashes.
897 Tweak build to avoid linking with g++
898 -------------------------------------
899 Cairo 1.6.4 avoids a quirk in automake that was causing the cairo
900 library to be linked with g++ and linked against libstdc++ even when
901 only C source files were compiled for the library.
903 Release 1.6.2 (2008-04-11 Carl Worth <cworth@cworth.org>)
904 =========================================================
905 The cairo community is pleased (but somewhat sheepish) to announce the
906 1.6.2 release of the cairo graphics library. This is an update to
907 yesterday's 1.6.0 release with an important fix to prevent cairo's
908 PostScript output from crashing some printers. This release also
909 includes a locking fix for cairo's xlib backend to improve thread
910 safety. There are no changes beyond these two fixes.
912 Fix for PostScript printer crash
913 --------------------------------
914 Adrian Johnson discovered that cairo 1.6.0 was being a bit hard on
915 PostScript printers, by changing the font matrix very frequently. This
916 causes some PostScript interpreters to allocate new font objects every
917 few glyphs, eventually exhausting available resources. The fix
918 involves leaving translational components of the font matrix as zero,
919 so that the PostScript interpreter sees an identical font matrix
920 repeatedly, and can more easily share internal font object resources.
922 This fix has been tested to resolve the bugs posted here, (for both
923 Xerox and Dell printers):
925 Printing some PDFs from evince is crashing our Xerox printer
926 http://bugs.freedesktop.org/show_bug.cgi?id=15348
928 Cairo-generated postscript blocks Dell 5100cn
929 http://bugs.freedesktop.org/show_bug.cgi?id=15445
931 Add missing locking in cairo-xlib
932 ---------------------------------
933 Chris Wilson noticed that cairo 1.6.0 was manipulating an internal
934 cache of GC object within cairo's Xlib backend without proper
935 locking. The missing locking could cause failures for multi-threaded
936 applications. He fixed this in 1.6.2 by adding the missing locks.
938 Release 1.6.0 (2008-04-10 Carl Worth <cworth@cworth.org>)
939 =========================================================
940 The cairo community is quite pleased to announce the 1.6.0 release of
941 the cairo graphics library. This is a major update to cairo, with new
942 features and enhanced functionality which maintains compatibility for
943 applications written using cairo 1.4, 1.2, or 1.0. We recommend that
944 anybody using a previous version of cairo upgrade to cairo 1.6.0.
946 The most significant new features in this release are dramatically
947 improved PDF and PostScript[*] output, support for arbitrary X server
948 visuals (including PseudoColor), a new Quartz backend, and and a new
949 "win32 printing" backend. See below for more details on these and
952 New dependency on external pixman library (Thanks, Søren!)
953 ----------------------------------------------------------
954 As of cairo 1.6, cairo now depends on the pixman library, for which
955 the latest release can be obtained alongside cairo:
957 http://cairographics.org/releases/pixman-0.10.0.tar.gz
959 This library provides all software rendering for cairo, (the
960 implementation of the image backend as well as any image fallbacks
961 required for other backends). This is the same code that was
962 previously included as part of cairo itself, but is now an external
963 library so that it can be shared by both cairo and by the X server,
964 (which is where the code originated).
966 Improved PDF, PostScript, and SVG output (Thanks, Adrian!)
967 ----------------------------------------------------------
968 Users of the cairo-pdf, cairo-ps, and cairo-svg should see a dramatic
969 improvement from cairo 1.2/1.4 to 1.6. With this release there are now
970 almost no operations that will result in unnecessary rasterization in
971 the PDF and PostScript. Rasterized "image fallbacks" are restricted
972 only to minimal portions of the document where something is being
973 drawn with cairo that is beyond the native capabilities of the
974 document, (this is rare for PDF or SVG, but occurs when blending
975 translucent objects for PostScript).
977 This means that the final output will be of higher quality, and will
978 also be much smaller, and therefore will print more quickly. The
979 machinery for doing analysis and minimal fallbacks also benefits the
980 win32-printing surface described below.
982 In addition to doing less rasterization, the PostScript and PDF output
983 also has several other improvements to make the output more efficient
984 and more compatible with specifications.
986 [*] Note: Just before this release, a bug has been reported that the
987 PostScript output from cairo can crash some printers, (so far the
988 following models have been reported as problematic Xerox Workcentre
989 7228 or 7328 and Dell 5100cn). We will implement a workaround as soon
990 as we can learn exactly what in cairo's output these printers object
991 to, (and we could use help from users that have access to misbehaving
992 printers). This bug is being tracked here:
994 Printing some PDFs from evince is crashing our Xerox printer
995 http://bugs.freedesktop.org/show_bug.cgi?id=15348
997 New support for arbitrary X server visuals (Thanks, Keith and Behdad!)
998 ----------------------------------------------------------------------
999 As of cairo 1.6, cairo should now work with an arbitrary TrueColor or
1000 8-bit PseudoColor X server visual. Previous versions of cairo did not
1001 support these X servers and refused to draw anything. We're pleased to
1002 announce that this limitation has been lifted and people stuck with
1003 ancient display systems need no longer be stuck with ancient software
1004 just because of cairo.
1006 New, supported Quartz backend for Mac OS X (Thanks, Brian and Vladimir!)
1007 ------------------------------------------------------------------------
1008 As of cairo 1.6, the cairo-quartz backend is now marked as "supported"
1009 rather than "experimental" as in previous cairo releases. Its API now
1010 has guarantees of API stability into future cairo releases, and its
1011 output quality is comparable to other backends. There have been
1012 significant improvements to cairo-quartz since 1.4. It now uses many
1013 fewer image fallbacks, (meaning better performance), and has greatly
1014 improved text rendering.
1016 New, "win32 printing" backend (Thanks, Adrian and Vladimir!)
1017 ------------------------------------------------------------
1018 A new win32-printing surface has been added with an interface very
1019 similar to the original win32 surface, (both accept an HDC
1020 parameter). But this new surface should only be called with a printing
1021 DC, and will result in all drawing commands being stored into a
1022 meta-surface and emitted after each page is complete. This allows
1023 cairo to analyze the contents, (as it does with PDF, PostScript, and
1024 SVG backends), and to do minimal image-based fallbacks as
1025 necessary. The analysis keeps things as efficient as possible, while
1026 the presence of fallbacks, (when necessary), ensure the consistent,
1027 high-quality output expected from cairo.
1029 Robustness fixes (Thanks, Chris!)
1030 ---------------------------------
1031 There has been a tremendous number of improvements to cairo's
1032 robustness. Areas that have been improved include:
1034 * Proper reporting of errors
1036 * Responding correctly to invalid input
1038 * Avoiding integer overflows
1040 * Avoiding memory leaks on error-recovery paths
1042 * Making reference counting thread safe
1044 * Exhaustive testing of memory allocation points
1046 Other fixes (Thanks, everybody!)
1047 --------------------------------
1048 Cairo's internal fixed-point representation has been changed from
1049 16.16 to 24.8. This has a direct impact on applications as it allows
1050 much larger objects to be drawn before internal limits in cairo make
1051 the drawing not work.
1053 The CAIRO_EXTEND_PAD mode is now fully supported by surface
1054 patterns. This mode allows applications to use cairo_rectangle and
1055 cairo_fill to draw scaled images with high-quality bilinear filtering
1056 for the internal of the image, but without any objectionably blurry
1057 edges, (as would happen with the default EXTEND_NONE and cairo_paint).
1059 Rendering with CAIRO_ANTIALIAS_NONE has been fixed to be more
1060 predictable, (previously image rendering and geometry rendering would
1061 be slightly misaligned with respect to each other).
1063 The reference manual at http://cairographics.org/manual now documents
1064 100% of the functions and types in cairo's public API.
1068 Several small features have been added to cairo with new API functions:
1070 cairo_format_stride_for_width
1072 Must be called to compute a properly aligned stride value before
1073 calling cairo_image_surface_create_for_data.
1075 cairo_has_current_point
1077 Allows querying if there is a current point defined for the
1082 Allows querying for path extents, (independent of any fill or
1085 cairo_surface_copy_page
1086 cairo_surface_show_page
1088 Allow beginning a new document page without requiring a cairo_t
1091 cairo_ps_surface_restrict_to_level
1093 cairo_ps_level_to_string
1094 cairo_ps_surface_set_eps
1096 Allow controlling the Post PostScript level, (2 or 3), to
1097 target, as well as to generate Encapsulated PostScript (EPS).
1099 cairo_quartz_font_face_create_for_cgfont
1101 Create a quartz-specific cairo_font_face_t from a CGFontRef.
1103 cairo_win32_font_face_create_for_logfontw_hfont
1105 Create a win32-specific cairo_font_face from a LOGFONTW and an
1110 I've accounted for 32 distinct people with attributed code added to
1111 cairo between 1.4.14 and 1.6.0, (their names are below). That's an
1112 impressive number, but there are certainly dozens more that
1113 contributed with testing, suggestions, clarifying questions, and
1114 encouragement. I'm grateful for the friendships that have developed as
1115 we have worked on cairo together. Thanks to everyone for making this
1118 Adrian Johnson, Alp Toker, Antoine Azar, Behdad Esfahbod,
1119 Benjamin Otte, Bernardo Innocenti, Bertram Felgenhauer,
1120 Boying Lu, Brian Ewins, Carl Worth, Chris Heath, Chris Wilson,
1121 Claudio Ciccani, Emmanuel Pacaud, Jeff Muizelaar, Jeremy Huddleston,
1122 Jim Meyering, Jinghua Luo, Jody Goldberg, Jonathan Gramain,
1123 Keith Packard, Ken Herron, Kouhei Sutou, Kristian Høgsberg,
1124 Larry Ewing, Martin Ejdestig, Nis Martensen, Peter Weilbacher,
1125 Richard Hult, Shailendra Jain, Søren Sandmann Pedersen,
1128 Snapshot 1.5.20 (2008-04-04 Carl Worth <cworth@cworth.org>)
1129 ===========================================================
1130 This is the tenth snapshot in cairo's unstable 1.5 series. It comes
1131 just two days (and only one working day) after the 1.5.18
1132 snapshot. The quick snapshot is due to two embarrassing bugs (both
1133 affecting cairo-xlib) that had been introduced in the 1.5.18
1134 snapshot. The fixes for these are described below along with a few
1135 other fixes, (which hopefully aren't introducing new bugs this time).
1139 Revert fix from 1.5.18 to allow pattern expansion based on the filter
1140 mode. This fix seemed so boring, (the use case it addresses is almost
1141 never used in practice), that it didn't even get mentioned in the
1142 1.5.18 release notes. However, the "fix" happened to break rendering
1143 that is always used resulting in corrupt image rendering in mozilla,
1144 evolution, and probably everything else that uses cairo.
1146 Fix to avoid BadMatch errors in cairo_surface_create_similar. These
1147 were introduced, (inadvertently, of course), as part of the fix in
1148 1.5.18 for creating similar surfaces without the Render
1149 extension. Again, thanks to mozilla, (and Vladimir Vukicevic in
1150 particular), for noticing our mistake.
1154 Correctly handle an in-error surface in
1155 cairo_surface_write_to_png. Previously this function would cause an
1156 assertion failure if you gave it a finished surface. Now it cleanly
1157 returns a CAIRO_STATUS_SURFACE_FINISHED result instead.
1159 Avoid potentially infinite wandering through memory inside
1160 _cairo_hull_prev_valid. Thanks to Jonathan Watt for noticing this
1163 https://bugzilla.mozilla.org/show_bug.cgi?id=306649#c21
1167 Fix generation of "soft" masks made by drawing to a similar surface
1168 and then calling cairo_mask_surface() with it.
1172 Fix for code that uses cairo_mask() on an intermediate surface which
1173 is later passed to cairo_mask_surface().
1175 Snapshot 1.5.18 (2008-04-05 Carl Worth <cworth@cworth.org>)
1176 ===========================================================
1177 This is the ninth snapshot in cairo's unstable 1.5 series. It comes
1178 just 4 days after the 1.5.16 snapshot. We had hoped to not need
1179 another snapshot before the final 1.6.0 release, but several critical
1180 bugs were found and fixed in the last few days, so we thought it
1181 important to let people test the fixes with this snapshot. See below
1186 The README now lists necessary dependencies.
1188 Various graphics state defaults are now documented, (source pattern is
1189 opaque black, line width is 2.0, line join is miter, line cap is butt,
1190 miter limit is 10.0, etc.).
1194 Several cleanups have been made along many error-path returns,
1195 (carefully propagating up the original error status values, cleaning
1196 up memory leaks during error recovery, etc.). This is yet another in
1197 Chris "ickle" Wilson's long series of error-handling cleanups during
1200 Avoid undesired clipping when drawing scaled surface patterns with
1205 Fix emission of 1-bit alpha masks in PDF output.
1207 Fix a bug that would cause glyphs to be misplaced along the Y axis:
1209 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%23474136
1211 Originally, an issue about a crash, but later leading to the
1212 misplaced glyphs issue being discovered.
1216 Fix misplaced glyphs in cairo's PostScript output.
1218 This issue occurs when consecutive glyphs are placed far
1219 apart. This case is exercised by the new ft-show-glyphs-table test
1220 case, which was originally inspired by the Debian bug #23474136
1223 Fix more misplaced glyphs in cairo's PostScript output:
1225 The issue here showed up under very particular circumstance, (when
1226 converting a PDF file with a CFF font with CID Identity-H encoding
1227 and using glyph 0, (defined by the CFF specification as .notdef)
1228 as a space instead). More concretely, this problem appeared when
1229 converting the UbuntuDesktop.pdf file mentioned in this bug
1232 https://bugs.freedesktop.org/show_bug.cgi?id=15348#c3
1234 As usual with arcane font-encoding-specific bugs like this, many
1235 thanks to Adrian Johnson for his magical ability to dive into
1236 specifications and emerge almost instantaneously with fixes. And
1237 thanks to Sebastien Bacher for bringing the bug to our attention.
1241 Fix serious failure on X servers without the Render extension.
1243 Since the 1.5.14 snapshot (with support for PseudoColor visuals),
1244 any application attempting to create a "similar" xlib surface would
1245 fail on an X server without the Render extension. Thanks to
1246 Frederic Crozat for pointing out that cairo's test suite was
1247 entirely failing when run against Xvfb.
1249 Avoid crashing cairo-xlib applications for too-large glyphs
1251 Naively sending glyphs of any size to the X server will eventually
1252 violate the X limit on maximum request sizes. We now properly
1253 detect when a glyph would be too large and use existing fallbacks
1254 to render the glyph rather than trying to send it to the X server.
1256 Enable the buggy_repeat workaround for Xorg servers < 1.4
1258 We have determined that Xorg 1.3.0 (as packaged in Fedora 8 at
1259 least) has a bug that can result in an X server crash when cairo
1260 uses certain X Render repeat operations, (as exercised by cairo's
1261 extend-reflect test). We avoid this crash by using fallbacks
1262 whenever a repeating surface is needed for any Xorg server with a
1263 version less than 1.4. This is slower, but should prevent the
1266 (Meanwhile, there appears to be a separate bug where some X
1267 servers or specific X-server drivers will use random pixmap data
1268 when asked to draw a repeating surface. The buggy_repeat
1269 workaround would also avoid those problems, but we have not yet
1270 characterized whether the new "version < 1.4" is a good
1271 characterization of those problems or not.)
1275 Implement cairo_font_extents for this backend.
1277 The cairo-quartz-font implementation added in the 1.5.14 snapshot was
1278 entirely missing support for the cairo_font_extents function. Thanks to
1279 Richard Hult for pointing out this obvious shortcoming, (and obvious
1280 lack of coverage in our test suite):
1282 CGFont backend returns 0 font extents
1283 https://bugs.freedesktop.org/show_bug.cgi?id=15319
1285 Snapshot 1.5.16 (2008-04-01 Carl Worth <cworth@cworth.org>)
1286 ===========================================================
1287 This is the eighth snapshot in cairo's unstable 1.5 series. It comes
1288 less than two weeks after the 1.5.14 snapshot and it really is a
1289 legitimate snapshot, (in spite of sharing this date with that of many
1290 bogus announcements). The major change in this snapshot is that the
1291 cairo-quartz backend is now officially "supported", including new API
1292 to construct a font face from a CGFontRef . Also several bug fixes
1293 have been fixed in many backends. See below for details.
1297 Cairo now depends on pixman 0.10.0 which was recently released. The
1298 latest pixman release can always be found alongside cairo releases at:
1300 http://cairographics.org/releases
1302 Increase the precision of color stops for gradients. This fixes a
1303 regression in gradient rendering that had been present since the
1306 paginated (all of ps, pdf, svg, and win32-printing)
1307 ---------------------------------------------------
1308 Fix assertion failure when some drawing elements are outside the page
1309 boundaries, (this bug was noticed when using Inkscape to print a
1310 drawing with landscape orientation to a portrait-oriented piece of
1315 Fix of bug causing incorrect glyph positioning.
1317 Fix handling of CAIRO_OPERATOR_SOURCE.
1321 More reduction of unnecessary digits of precision in PDF output.
1323 Fix handling of CAIRO_OPERATOR_SOURCE.
1327 Fix bug in usage of libpng that was preventing cairo_mask from working
1328 with the svg backend.
1330 Fix transformation of source pattern for cairo_stroke().
1332 cairo-win32-printing
1333 --------------------
1334 Fix fallback resolution, (thanks again to inkscape users/developers
1335 for helping us find this one).
1339 Mark the cairo-quartz backend as "supported" rather than
1340 "experimental". This means the following:
1342 * The backend will now be built by default (if possible).
1344 * We are committing that the backend-specific API (as published in
1345 cairo-quartz.h) are stable and will be supported in all future
1348 * We are committing that the output quality of this backend
1349 compares favorably with other cairo backends, (and that quality
1350 is ensured by good results from the cairo test suite).
1352 * We recommend that distributions build and distribute this
1353 backend when possible.
1355 Note that the cairo_quartz_image API (in cairo-quartz-image.h) is
1356 still experimental, will not build by default, (pass
1357 --enable-quartz-image to configure to build it), and may see API
1358 changes before it is marked as "supported" in a future release.
1360 Put the CAIRO_FONT_TYPE_ATSUI name back into
1361 cairo-deprecated.h. Without this, the cairo 1.5.14 snapshot broke all
1362 builds for applications using the C++ cairomm bindings (and perhaps
1363 others) which have the CAIRO_FONT_TYPE_ATSUI name in their header
1364 files. This breakage happened even for applications not using
1365 cairo-quartz at all.
1367 Note: Even though the CAIRO_FONT_TYPE_ATSUI name is provided to
1368 avoid this build breakage, we still recommend that bindings and
1369 applications move to the new, and more accurate,
1370 CAIRO_FONT_TYPE_QUARTZ name.
1372 Replace the implementation of cairo-quartz-font to use CFFont instead
1373 of ATSUI. The CGFont API is a better fit than ATSUI, and this new
1374 implementation is also more correct than the old one as well.
1376 This also adds the following new API call:
1378 cairo_public cairo_font_face_t *
1379 cairo_quartz_font_face_create_for_cgfont (CGFontRef font);
1381 The previous cairo_quartz_font_face_create_for_atsu_font_id function
1382 continues to exist and is part of the supported API going
1383 forward. (However, the old name of that same function, which was
1384 cairo_atsui_font_face_create_for_atsu_font_id is officially
1385 deprecated. Any source code using the old name should be updated to
1388 Fix transformation of source pattern for cairo_stroke().
1392 Avoid crash in create_similar is cairo_win32_surface_create fails.
1394 Snapshot 1.5.14 (2008-03-20 Carl Worth <cworth@cworth.org>)
1395 ===========================================================
1396 This is the seventh snapshot in cairo's unstable 1.5 series. It comes
1397 3 weeks after the 1.5.12 snapshot. This snapshot includes support for
1398 arbitrary X server visuals, (including PseudoColor), which was the
1399 final remaining cairo-specific item on the cairo 1.6 roadmap. It also
1400 includes a huge number of improvements to the cairo-quartz backend. So
1401 this is effectively a cairo 1.6 release candidate. We expect very few
1402 changes from now until 1.6 and only for specific bug fixes.
1406 Rename ATSUI font backend to Quartz font backend. This affects the
1409 --enable-atsui -> --enable-quartz-font
1410 CAIRO_HAS_ATSUI_FONT -> CAIRO_HAS_QUARTZ_FONT
1411 CAIRO_FONT_TYPE_ATSUI -> CAIRO_FONT_TYPE_QUARTZ
1413 cairo_atsui_font_face_create_for_atsu_font_id ->
1414 cairo_quartz_font_font_create_for_atsu_font_id
1416 This API change is justified by the cairo-quartz backend still be
1417 marked as "experimental" rather than "supported", (though this is one
1418 step toward making the change to "supported" before 1.6). Cairo will
1419 still provide ABI compatibility with the old symbol name, however.
1421 paginated (all of ps, pdf, svg, and win32-printing)
1422 ---------------------------------------------------
1423 Optimize by not analyzing an image surface for transparency more than
1424 once, (previously all images were analyzed twice).
1426 cairo-ps and cairo-pdf
1427 ----------------------
1428 Avoiding emitting a matrix into the stroke output when unnecessary,
1429 (making output size more efficient).
1431 Reduce rounding error of path shapes by factoring large scale factors
1432 out of the path matrix, (ensuring that a fixed-number of printed
1433 digits for path coordinates contains as much information as possible).
1435 Reduce excess digits for text position coordinates. This makes the
1436 output file size much smaller without making the result any less
1441 Eliminate bug causing extraneous text repetition on Linux PostScript
1442 output in some cases.
1444 See: Mozilla Bug 419917 – Printed page contents are reflected
1445 inside bordered tables (Linux-only)
1447 https://bugzilla.mozilla.org/show_bug.cgi?id=419917
1449 Optimize output when EXTEND_PAD is used.
1453 Fix to not use fill-stroke operator with transparent fill, (else PDF
1454 output doesn't match the cairo-defined correct result). See:
1456 https://bugs.launchpad.net/inkscape/+bug/202096
1460 Fix stroke of path with a non-solid-color source pattern:
1462 http://bugs.freedesktop.org/show_bug.cgi?id=14556
1466 Fix text rendering with gradient or image source pattern.
1468 Handling antialiasing correctly for cairo_stroke(), cairo_clip(), and
1469 cairo_show_text()/cairo_show_glyphs().
1471 Correctly handle gradients with non-identity transformations:
1473 Fixes http://bugs.freedesktop.org/show_bug.cgi?id=14248
1475 Add native implementation of REPEAT and REFLECT extend modes for
1478 Fix implementation for the "unbounded" operators, (CAIRO_OPERATOR_OUT,
1479 _IN, _DEST_IN, and _DEST_ATOP).
1481 Correctly handle endiannees in multi-architecture compiles on Mac OS
1484 Avoid behavior which would cause Core Graphics to print warnings to
1485 the console in some cases.
1489 Fix handling of miter limit.
1491 cairo-win32-printing
1492 --------------------
1493 Fix to not use a 1bpp temporary surface in some cases while printing,
1494 (so grayscale data is preserved rather than just becoming black and
1499 Add support for rendering to arbitrary TrueColor X server
1500 visuals. This fixes at least the following bugs:
1502 cairo doesn't support 8-bit truecolor visuals
1503 https://bugs.freedesktop.org/show_bug.cgi?id=7735
1505 cairo doesn't support 655 xlib format
1506 https://bugs.freedesktop.org/show_bug.cgi?id=9719
1508 Add support for rendering to 8-bit PseudoColor X server visuals. This
1509 fixes the following bug:
1511 Cairo doesn't support 8-bit pseudocolor visuals
1512 https://bugs.freedesktop.org/show_bug.cgi?id=4945
1514 Snapshot 1.5.12 (2008-02-28 Carl Worth <cworth@cworth.org>)
1515 ===========================================================
1516 This is the sixth snapshot in cairo's unstable 1.5 series. It comes 1
1517 week after the 1.5.10 snapshot. This snapshot includes the
1518 long-awaited change from 16.16 to 24.8 fixed-point values, (see below
1519 for why you should care). It also includes several backend-specific
1522 24.8 fixed-point format
1523 -----------------------
1524 Cairo has always converted path coordinates to a fixed-point
1525 representation very early in its processing. Historically, this has
1526 been a 32-bit representation with 16 bits of integer for the
1527 device-pixel grid and 16 bits of sub-pixel positioning. The choice of
1528 16 bits for the integer coordinate space was based on the 16-bit limit
1529 for X Window drawables.
1531 This 16-bit limit has proven problematic for many applications. It's
1532 an especially vexing problem when targeting non-X backends that don't
1533 have any 16-bit restriction. But even when targeting cairo-xlib, it's
1534 often desirable to draw a large shape, (say a background rectangle),
1535 that extends beyond the surface bounds and expect it to fill the
1536 surface completely, (rather than overflowing and triggering random
1539 Meanwhile, nobody has ever really needed 16 bits of sub-pixel
1542 With this snapshot, the fixed-point system is still in place and is
1543 still using a 32-bit representation, (future versions of cairo might
1544 move entirely to floating-point when targeting PDF output for
1545 example). But the representation now provides 24 bits of pixel
1546 addressing and only 8 bits of sub-pixel positioning. This should give
1547 a much less stifling space to many applications.
1549 However, the underlying pixman library still has 16-bit limitations in
1550 many places, (it has its roots in the X server as well). Until those
1551 are also fixed, applications targeting cairo image surfaces, or
1552 hitting software fallbacks when targeting other surfaces will still
1553 encounter problems with device-space values needing more than 16
1558 Add a few tests to the test suite to increase coverage.
1560 Cleanup a few error-handling paths, (propagate error correctly).
1564 Fix handling of font sizes smaller than 1 device pixel.
1568 Fix to properly save/restore clip when analyzing meta-surface
1569 patterns, (fixing a couple of test-suite failures).
1571 Implement native support for CAIRO_OPERATOR_SOURCE when the source
1574 Emit rectangles as PDF rectangles ("re" operator) rather than as
1579 Fix to work properly with the 16.16->24.8 change.
1583 Fix CAIRO_EXTEND_REFLECT by using an image fallback, (there's no
1584 direct SVG support for reflected patterns).
1586 Fix the use of alpha-only masks, (such as CAIRO_FORMAT_A8).
1590 Add new API for efficiently using image data as a source:
1593 cairo_quartz_image_surface_create (cairo_surface_t *image_surface);
1596 cairo_quartz_image_surface_get_image (cairo_surface_t *surface);
1598 For full documentation, see:
1600 http://cairographics.org/manual/cairo-Quartz-Surfaces.html#cairo-quartz-image-surface-create
1602 Several fixes for cairo_mask().
1606 Change default from from Monaco to Helvetica to be more consistent
1607 with other font backends.
1609 Snapshot 1.5.10 (2008-02-20 Carl Worth <cworth@cworth.org>)
1610 ===========================================================
1611 This is the fifth snapshot in cairo's unstable 1.5 series. It comes 3
1612 weeks after the 1.5.8 snapshot. This snapshot adds one new API
1613 function, (cairo_has_current_point), and the usual mix of
1614 improvements, (more efficient PostScript/PDF output, optimized
1615 stroking), and fixes (more robust error-handling, etc.). See below for
1620 Add a new function to query if there is a current point:
1623 cairo_has_current_point (cairo_t *cr);
1625 There is no current point immediately after cairo_create(), nor after
1626 cairo_new_path() or cairo_new_sub_path(). There is a current point
1627 after any of the path-creation functions, (cairo_move_to,
1628 cairo_line_to, cairo_curve_to, etc.).
1630 With this new function, we also revert the change of the return type
1631 of cairo_get_current_point from cairo 1.5.8, (it's now a void function
1636 Optimize stroking code to avoid repeated calculation of redundant
1637 values, (particularly significant for very large, offscreen paths).
1641 Patch a few more potential buffer overruns, (due to integer
1644 Many fixes and improvements to cairo's error-handling, (ensure that
1645 correct error values are returned, clean up memory leaks on
1646 error-handling paths, etc.).
1648 Fix a potential infinite loop when stroking a spline with a pen that
1649 has been transformed to a line segment.
1651 Remove treating NULL as a synonym for a valid cairo_font_options_t*
1652 with default values, (a change that had been introduced as of cairo
1655 Remove the altered handling of tolerance and fallback-resolution that
1656 had been introduced as of cairo 1.5.4.
1660 Pass the original Drawable, (as opposed to the root window), to
1661 XCreatePixmap when creating a similar surface. This gives the X server
1662 more information so that it can be clever and efficient.
1666 Fix the rendering of repeating and reflecting patterns.
1668 Ensure miter limit is always >= 1, (smaller limits are not meaningful,
1669 but they can cause some PDF viewers to fail to display pages).
1671 Generate more efficient output when the same path is used for both
1676 Start sharing much of the cairo-pdf code rather than implementing very
1677 similar code in cairo-ps.
1679 Implement native support for repeating and reflecting linear
1682 Implement reflected surface patterns.
1684 Ensure miter limit is always >= 1, (smaller limits are not meaningful,
1685 but they can cause some PostScript viewers to crash).
1687 Generate PostScript that will perform more efficiently and use less
1688 memory on printers, (use currentfile instead of a giant string array
1689 for image data, and avoid using PostScript patterns for paint() and
1690 fill() when possible).
1694 Avoid unnecessary rasterization when copying a "similar" surface to
1695 another svg surface, (allow the SOURCE operator to be implemented with
1696 all-vector operations if there are no underlying objects).
1700 Eliminate infinite loop when attempting to render an empty string.
1702 Snapshot 1.5.8 (2008-01-30 Carl Worth <cworth@cworth.org>)
1703 ==========================================================
1704 This is the fourth snapshot in cairo's unstable 1.5 series. It comes 2
1705 weeks after the 1.5.6 snapshot. It adds a few new API functions. Most
1706 notably all callers of cairo_image_surface_create_for_data should now
1707 be calling cairo_format_stride_for_width to compute a legal stride
1708 value. See below for more details.
1710 New API in cairo 1.5.8
1711 ----------------------
1712 We've added a new function that should be called to compute a legal
1713 stride value before allocating data to be used with
1714 cairo_image_surface_create_for_data:
1717 cairo_format_stride_for_width (cairo_format_t format,
1720 We've also added a new cairo_path_extents function that can be used to
1721 compute a bounding box for geometry such as a single line segment,
1722 (contrast with cairo_path_extents and cairo_stroke_extents):
1725 cairo_path_extents (cairo_t *cr,
1726 double *x1, double *y1,
1727 double *x2, double *y2);
1729 And finally, we've added a function to allow for querying the
1730 XRenderPictFormat of a cairo-xlib surface:
1733 cairo_xlib_surface_get_xrender_format (cairo_surface_t *surface);
1737 Fix return types of cairo_surface_show_page and
1738 cairo_surface_copy_page. This is an API change to functions that are
1739 new in the 1.5 series, so not an API break compared to any stable
1740 cairo release, (1.0.x, 1.2.x, 1.4.x).
1742 Change the return type of cairo_get_current_point() from void to
1743 cairo_status_t. This allows the caller to receive a
1744 CAIRO_STATUS_NO_CURRENT_POINT value to distinguish the a current point
1745 at the origin from no current point existing.
1747 Performance improvement
1748 -----------------------
1749 Improve performance of clipping by using an optimized code path
1750 internally, (with the ADD operator instead of IN).
1754 Fix various cairo_*_extents functions to initialize the return-value
1755 variables even in the case of a cairo_t in error.
1757 Treat NULL as a legitimate value for cairo_font_options_t*. [NOTE:
1758 On discussion afterwards, we decided against this change so it has
1759 been removed as of cairo 1.5.10.]
1761 Fix rendering with CAIRO_ANTIALIAS_NONE to be more predictable, (that
1762 is, to avoid seams appearing when geometry and imagery share an
1763 identical edge). Portions of this fix are in the pixman library and
1764 will appear in a future release of that library.
1766 Avoid triggering an error for a font size of 0.
1768 Miscellaneous changes
1769 ---------------------
1770 Require pixman >= 0.9.6.
1772 There has been a tremendous amount improvement to cairo's
1773 documentation. We're delighted that 100% of the public API has at
1774 least some documentation in the API reference manual. Many thanks to
1775 Behdad Esfahbod and Nis Martensen for leading this effort.
1777 cairo-pdf and cairo-ps
1778 ----------------------
1779 Eliminate failure when a Type 1 font is embedded with an explicit
1784 Implement a more correct and more efficient approach for patterns with
1785 an extend mode of CAIRO_EXTEND_REFLECT.
1789 Fix image masks to properly pack and pad mask bits.
1793 Take care to only use DrawTiledImage for integer-aligned images, (and
1794 use slower paths to get the correct result in other cases).
1798 Fix for older versions of mingw.
1800 Improve the handling of the clipping with the win32 and win32-printing
1803 Fix rendering of non black/white text.
1805 Snapshot 1.5.6 (2008-01-15 Carl Worth <cworth@cworth.org>)
1806 ==========================================================
1807 This is the third snapshot in cairo's unstable 1.5 series. It comes
1808 about 6 weeks after the 1.5.4 snapshot. The only API addition compared
1809 to 1.5.4 is very minor, (a new value CAIRO_STATUS_TEMP_FILE_ERROR).
1810 The remainder of the changes are the usual accumulation of bug fixes
1811 and improvements. See below for details.
1815 Fix handling of fonts that contain a mixture of outline and bitmapped
1816 glyphs. There was a change in this handling in 1.5.4 that improved
1817 some cases and also regressed other cases. Now, all cases should be
1820 Fix alignment issues that were causing SIGBUS failures on SPARC.
1822 Fix a regression (which first appeared in 1.5.2) where stroking under
1823 a large scale would sometimes incorrectly replace a miter join with a
1824 bevel join. (Thanks to Keith Packard.)
1826 Fix reporting of zero-sized extents to be {0,0} rather than
1827 {INT_MAX,INT_MIN}. This avoids several integer overflow and
1828 allocations of massive regions in some cases.
1830 Fix failures of gradients with no stops, (quartz, ps, and pdf).
1832 Fix handling of Type 1 fonts on Windows platforms.
1834 Fix handling of Type 1 fonts with no specific family name in the font
1835 itself, (generate a CairoFont-x-y name).
1837 Handle NULL string values in cairo_show_text, cairo_show_glyphs, and
1840 Many robustness improvements along error-handling paths, (thanks as
1841 always, to Chris "ickle" Wilson).
1843 Various other minor fixes.
1845 Paginated backends (PDF/PostScript/win32-printing)
1846 --------------------------------------------------
1847 Avoid unnecessary rasterization when using a paginated surface as a
1848 source, (such as drawing from one pdf surface to another).
1850 Fix replaying of paginated surface with more than one level of push/pop
1855 Fix xlib backend to not consider recent X server release as having a
1856 buggy repeat implementation in the Render extension.
1860 Fix PDF output to avoid triggering very slow rendering in PDF viewers,
1861 (avoid starting and stopping the content stream for each pattern
1864 Support CAIRO_OPERATOR_SOURCE in cases where there is nothing below
1865 the object being drawn.
1867 Fix to avoid seams appearing between multiple fallback regions.
1869 cairo-ps (PostScript)
1870 ---------------------
1871 Use correct bounding box in Type 3 fonts.
1873 Fix several bugs in cairo's PostScript output. These include making
1874 the PostScript output more compatible with recent versions of
1875 ghostscript that are more strict about Type 3 fonts, for
1878 Fix for win32 to not attempt to create temporary files in the root
1879 directory, (where the user may not have write permission).
1881 Avoid generating Level 3 PostScript if Level 2 is sufficient. Also,
1882 add code in output documents to alert the user if Level 3 PostScript
1883 is handed to a device that cannot handle PostScript beyond Level
1888 Various performance optimizations.
1890 Fixed support for small surfaces (less than 8x8).
1892 Provide support for environment variables CAIRO_DIRECTFB_NO_ACCEL to
1893 disable acceleration and CAIRO_DIRECTFB_ARGB_FONT to enable ARGB fonts
1898 Allow OS/2 APIs instead of C library allocation functions.
1900 Snapshot 1.5.4 (2007-12-05 Carl Worth <cworth@cworth.org>)
1901 ==========================================================
1902 This is the second snapshot in cairo's unstable 1.5 series. It comes
1903 just over 1 month after the 1.5.2 snapshot. There are no API changes
1904 or additions in 1.5.4 compared to 1.5.2, but there are several bug
1905 fixes, and some optimizations. Most of these apply to particular
1906 backends. See below for details.
1908 General improvements
1909 --------------------
1910 Use less memory for spline approximation calculations.
1912 Change how the tolerance value is interpreted with regard to
1913 fallback-resolution. [Note: On further discussion, we decided against
1914 this change for now. It is removed as of cairo 1.5.10.]
1916 Fix precision of floating-point values in vector-output backends to
1917 avoid rounding errors with very small numbers.
1921 Fix bug in glyph rendering with xlib, (due to everything being clipped
1922 out). This was a regression in the 1.5.2 snapshot that was visible in
1923 the GIMP, for example. See:
1925 cairo 1.5.2 causes font problems in GIMP 2.4 status bar and evolution 2.12.1
1926 https://bugs.freedesktop.org/show_bug.cgi?id=13084
1928 PostScript improvements
1929 -----------------------
1930 Fix bug leading to invalid PostScript files when rendering
1931 text, (need "0 0 xyshow" instead of "0 xyshow").
1933 Fix many issues with Type 3 fonts, including making the resulting text
1938 Fix font metrics height value for ATSUI, (helps webkit on GTK+ OS X
1943 Fix EXTEND_NONE mode for patterns.
1945 Fix cairo_quartz_surface_create to properly clear the new surface
1946 in cairo_quartz_surface_create.
1948 Fix to correctly handle 0x0 sized surfaces.
1950 Optimize drawing of EXTEND_REPEAT patterns for OS X 10.5.
1952 Snapshot 1.5.2 (2007-10-30 Carl Worth <cworth@cworth.org>)
1953 ==========================================================
1954 This is the first snapshot in cairo's unstable 1.5 series. It comes 4
1955 months after the 1.4.10 release. This snapshot includes significant
1956 improvements to PDF and PostScript output, which is one of the things
1957 in which we're most interested in getting feedback. There are a couple
1958 of minor API additions, and several optimizations, (primarily in the
1959 "print/vector" backends). And there are dozens of bug fixes and
1960 robustness improvements.
1962 New dependency on external pixman library
1963 -----------------------------------------
1964 A significant change in this snapshot compared to all previous cairo
1965 releases is that cairo now depends on an external "pixman" library for
1966 its software rendering. Previously this same code was compiled
1967 internally as part of cairo, but now the code is separate so that both
1968 cairo and the X server can now share common code, (thanks very much to
1969 Søren Sandmann for his work on separating pixman and maintaining it).
1971 So users will need to acquire and build pixman before being able to
1972 build cairo. The current release is 0.9.6 and can be obtained from
1975 http://cairographics.org/releases/pixman-0.9.6.tar.gz
1977 which can be verified with:
1979 http://cairographics.org/releases/pixman-0.9.6.tar.gz.sha1
1980 66f01a682c64403a3d7a855ba5aa609ed93bcb9e pixman-0.9.6.tar.gz
1982 http://cairographics.org/releases/pixman-0.9.6.tar.gz.sha1.asc
1983 (signed by Carl Worth)
1985 Major PDF/PostScript improvements
1986 ---------------------------------
1987 Adrian Johnson has done some long-awaited work to make cairo's PDF and
1988 PostScript output more interesting than ever before. First, many
1989 operations that previously triggered image fallbacks will now be
1990 rendered as native vectors. These operations include:
1992 PDF: cairo_push_group, cairo_surface_create_similar,
1993 cairo_mask, A8/A1 surface sources, repeating/reflecting linear
1996 PostScript: cairo_push_group, cairo_surface_create_similar,
1997 gradients, bilevel alpha masks, (for example, all values either 0 or
1998 255 for an A8 mask).
2000 Not only that, but when an image fallback is required, it will now be
2001 limited to only the necessary region. For example, a tiny translucent
2002 image overlaying a small portion of text would previously caused an
2003 entire PostScript page to be rendered as a giant image. Now, the
2004 majority of that page will be nice text, and there will only be a tiny
2005 image in the output.
2007 Additionally, the PostScript output now carefully encodes text so that
2008 if it is subsequently converted to PDF, the text will be
2011 This is very exciting progress, and we're hoping to hear from users
2012 during the 1.5 series about how things have improved, (for example,
2013 inkscape users doing cairo-based PDF export: please let us know how
2014 things look). And feel free to pass your thanks along to Adrian for his excellent work.
2016 NOTE: This much improved PDF output makes more sophisticated use of
2017 functionality in the PDF specification. This means that cairo's output
2018 will sometimes expose bugs in some free software PDF viewers, (evince,
2019 poppler, and xpdf, for example), that are not yet ready for such PDF
2020 files. We're working with the poppler maintainers to get these bugs
2021 fixed as quickly as possible. In the meantime, please double-check
2022 with other PDF viewers if cairo-generated PDF files are not being
2023 rendered correctly. It may be due to a bug in the viewer rather than
2024 in the PDF file that cairo has created.
2026 Robustness improvements
2027 -----------------------
2028 Chris Wilson has made the largest contribution by far to cairo 1.5.2,
2029 (in number of commits). His more than 150 commits include a huge
2030 number of fixes to increase cairo's robustness. These fixes make cairo
2031 more robust against invalid and degenerate input, (NaN, empty path,
2032 etc.), against size-0 malloc calls, against memory leaks on
2033 error-recovery paths, and against other failures during error
2034 handling. He also implemented atomic operations to cairo, and used
2035 them to fix cairo's previously non-thread-safe reference counting,
2036 again improving robustness.
2038 Chris has put a tremendous amount of time and effort into writing
2039 analysis tools for this work, and in running those tools and fixing
2040 the problems they report. We're very grateful for this work, and hope
2041 that all cairo users appreciate the more robust implementation that
2044 This work is largely thankless, so it might make sense to notice
2045 sometime that cairo has been running quite smoothly for you, and when
2046 you do, send a quick "thank you" off to Chris Wilson, since it
2047 is all definitely running smoother thanks to his work.
2051 There are no major additions to cairo's core API. The only new,
2052 generic functions are:
2055 cairo_surface_copy_page (cairo_surface_t *surface);
2058 cairo_surface_show_page (cairo_surface_t *surface);
2060 which can now be used much more conveniently than the existing
2061 cairo_copy_page and cairo_show_page functions in some
2062 situations. These functions act identically, but require only a
2063 cairo_surface_t* and not a cairo_t*.
2065 All other API additions are specific to particular backends.
2067 New cairo-win32 API (new font face function and "win32 printing" surface)
2068 -------------------------------------------------------------------------
2069 There is a new function for creating a win32 font face for both a
2070 logfontw and an hfont together. This complements the existing
2071 functions for creating a font face from one or the other:
2074 cairo_win32_font_face_create_for_logfontw_hfont (LOGFONTW *logfont,
2077 There is also a new "win32 printing" surface:
2080 cairo_win32_printing_surface_create (HDC hdc);
2082 This interface looks identical to the original
2083 cairo_win32_surface_create, (both accept and HDC), but the behavior of
2084 this new surface is very different. It should only be called with a
2085 printing DC, and will result in all drawing commands being stored into
2086 a meta-surface and emitted after each page is complete, with analysis
2087 to do as minimal image-based fallbacks as necessary. The behavior and
2088 implementation shares much with the PDF and PostScript backends.
2090 New cairo-ps API (EPS and PostScript level control)
2091 ---------------------------------------------------
2092 An often requested feature has been the ability to generate
2093 Encapsulated PostScript (EPS) with cairo. We have that now with the
2094 following very simple API. Just do cairo_ps_surface_create as usual
2095 then call this function with a true value:
2098 cairo_ps_surface_set_eps (cairo_surface_t *surface,
2101 [NOTE: As always with snapshots, it's possible---though not very
2102 likely---that the API could still be modified before a final
2103 release. For example, this is the first public cairo function that
2104 accepts a Boolean parameter. I'm generally opposed to Boolean
2105 parameters, but this is probably the one case where I'm willing to
2106 accept one, (namely a "set" function that accepts a single Boolean).]
2108 Also, it is now possible to control what PostScript level to target,
2109 (either level 2 or level 3), with the following new API:
2111 typedef enum _cairo_ps_level {
2117 cairo_ps_surface_restrict_to_level (cairo_surface_t *surface,
2118 cairo_ps_level_t level);
2121 cairo_ps_get_levels (cairo_ps_level_t const **levels,
2125 cairo_ps_level_to_string (cairo_ps_level_t level);
2127 Improvement for cairo-quartz
2128 ----------------------------
2129 Brian Ewins had contributed several improvements to cairo-quartz. These
2130 include an implementation of EXTEND_NONE for linear and radial
2131 gradients, (so this extend mode will no longer trigger image fallbacks
2132 for these gradients), as well as native surface-mask clipping, (only
2133 on OS X 10.4+ where the CGContextClipToMask function is available).
2135 He also fixed a semantic mismatch between cairo and quartz for dashing
2136 with an odd number of entries in the dash array.
2138 We're grateful for Brian since not many quartz-specific improvements
2139 to cairo would be happening without him.
2143 Optimize SVG output for when the same path is both filled and stroked,
2144 and avoid unnecessary identity matrix in SVG output. (Emmanuel Pacaud).
2146 Optimize PS output to take less space (Ken Herron).
2148 Make PS output more compliant with DSC recommendations (avoid initclip
2149 and copy_page) (Adrian Johnson).
2151 Make PDF output more compact (Adrian Johnson).
2153 Release glyph surfaces after uploading them to the X server, (should
2154 save some memory for many xlib-using cairo application). (Behdad
2157 Optimize cairo-win32 to use fewer GDI objects (Vladimir Vukicevic).
2159 win32-printing: Avoid falling back to images when alpha == 255
2160 everywhere. (Adrian Johnson).
2162 win32-printing: Avoid falling back for cairo_push_group and
2163 cairo_surface_create_similar. (Adrian Johnson)
2167 Avoid potential integer overflows when allocating large buffers
2168 (Vladimir Vukicevic).
2170 Preparations to allow the 16.16 fixed-point format to change to
2171 24.8 (Vladimir Vukicevic).
2173 Fix bugs for unsupported X server visuals (rgb565, rgb555, bgr888, and
2174 abgr8888). (Carl Worth and Vladimir Vukicevic)
2176 Fix bugs in PDF gradients (Adrian Johnson).
2178 Fix cairo-xlib to build without requiring Xrender header
2179 files (Behdad Esfahbod).
2181 Make cairo more resilient in the case of glyphs not being available in
2182 the current font. (Behdad Esfahbod)
2184 Prevent crashes when both atsui and ft font backends are compiled in
2187 Make font subsetting code more robust against fonts that don't include
2188 optional tables (Adrian Johnson).
2190 Fix CFF subsetting bug, (which manifested by generating PDF files that
2191 Apple's Preview viewer could not read) (Adrian Johnson).
2193 Fixed error handling for quartz and ATSUI backends (Brian Ewins).
2195 Avoid rounding problems by pre-transforming to avoid integer-only
2196 restrictions on transformation in GDI (Adrian Johnson).
2198 Fixed an obscure bug (#7245) computing extents for some stroked
2201 Fix crashes due to extreme transformation of the pen, (seems to show
2202 up in many .swf files for some reason) (Carl Worth).
2204 Release 1.4.10 (2007-06-27 Carl Worth <cworth@cworth.org>)
2205 ==========================================================
2206 This is the fifth update in cairo's stable 1.4 series. It comes
2207 roughly three weeks after the 1.4.8 release. The most significant
2208 change in this release is a fix to avoid an X error in certain cases,
2209 (that were causing OpenOffice.org to crash in Fedora). There is also a
2210 semantic change to include child window contents when using an xlib
2211 surface as a source, an optimization when drawing many rectangles, and
2212 several minor fixes.
2214 Eliminate X errors that were killing OO.o (Chris Wilson)
2215 --------------------------------------------------------
2216 Cairo is fixed to avoid the X errors propagated when cleaning up
2217 Render Pictures after the application had already destroyed the
2218 Drawable they reference. (It would be nice if the X server wouldn't
2219 complain that some cleanup work is already done, but there you have
2220 it.) This fixes the bug causing OpenOffice.org to crash as described
2223 XError on right click menus in OOo.
2224 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=243811
2226 Use IncludeInferiors when using xlib surface as a source (Ryan Lortie)
2227 ----------------------------------------------------------------------
2228 When an xlib surface is used as the source of a draw operation the
2229 contents of child windows are now included in the source data. The
2230 semantics of drawing to xlib surfaces are unchanged (ie: draws are
2231 still clipped by child windows overlapping the destination window).
2233 Optimize drawing of many rectangles (Vladimir Vukicevic)
2234 --------------------------------------------------------
2235 Avoid O(N*N) loop when filling many axis-aligned rectangles, (either
2236 many rectangles as separate sub-paths or due to dashing).
2240 Fix cairo-perf on Solaris by linking to librt. (Behdad Esfahbod)
2242 Fix make check for systems that require executable files to have a
2243 particular extension. (Behdad Esfahbod)
2245 Eliminate some warnings in cairo-quartz. (Brian Ewins)
2247 Fix build-breaking typo for cairo-directfb. (Chris Wilson)
2249 Release 1.4.8 (2007-06-07 Carl Worth <cworth@cworth.org>)
2250 =========================================================
2251 This is the fourth update in cairo's stable 1.4 series. It comes just
2252 over five weeks after the 1.4.6 release. This release includes a
2253 thread-safe surface-cache for solid patterns which significantly
2254 improves text rendering with the xlib backend. Also, dozens of error
2255 paths in cairo have been fixed thanks to extensive fault-injection
2256 testing by Chris Wilson.
2258 Surface cache for solid patterns
2259 --------------------------------
2260 Originally written by Jorn Baayen, the introduction of a small cache
2261 for surfaces created for solid patterns improves performance
2262 dramatically. For example, this reduces the volume of X requests
2263 during text rendering to the same level as Xft.
2265 This cache first made its appearance in a 1.3.x snapshot, but was
2266 removed before appearing in any previous major release due to
2267 complications with multi-threaded programs. For example, programs like
2268 evince that would carefully restrict usage of cairo-xlib to a single
2269 thread were unpleasantly surprised to find that using cairo-image in a
2270 separate thread could trigger X requests.
2272 Behdad Esfahbod designed a fix which was implemented by Chris
2273 Wilson. Now, the necessary X requests are queued up until the next
2274 time the application directly operates on an xlib surface.
2276 Improved error handling paths
2277 ------------------------------
2278 Chris Wilson continued the excellent work he started in cairo 1.4.4 to
2279 make cairo much more robust against out-of-memory and other errors. He
2280 applied his memory allocation fault injection cairo's main test suite,
2281 (previously he had applied it to cairo's performance suite).
2283 Chris's testing found dozens of bugs which he fixed. Many of these
2284 bugs had perhaps never been hit by any users. But at least one was
2285 hit by the gnome-about program which resulted in dozens of duplicated
2286 bug reports against that program:
2288 http://bugzilla.gnome.org/show_bug.cgi?id=431990
2290 We were very pleasantly surprised to see this bug get fixed as a
2291 side-effect of Chris's work. Well done, Chris!
2295 Cleanup of mutex declarations (Behdad Esfahbod)
2297 Remove unnecessary clip region from SVG output (Emmanuel Pacaud)
2299 Remove Xsun from the buggy_repeat blacklist (Elaine Xiong)
2301 ATSUI: Fix glyph measurement: faster and more correct (Brian Ewins)
2303 Quartz: fixed 'extend' behaviour for patterns, improved pattern performance,
2304 and a few smaller correctness fixes. (Brian Ewins, Vladimir Vukicevic)
2306 Release 1.4.6 (2007-05-01 Carl Worth <cworth@cworth.org>)
2307 =========================================================
2308 This is the third update in cairo's stable 1.4 series. It comes a
2309 little less than three weeks since the 1.4.4 release. This release
2310 fixes the broken mutex initialization that made cairo 1.4.4 unusable
2311 on win32, OS/2, and BeOS systems. This release also adds significant
2312 improvements to cairo's PDF backend, (native gradients!), and a couple
2313 of performance optimizations, (one of which is very significant for
2314 users of the xlib backend). See below for more details.
2316 Repaired mutex initialization
2317 -----------------------------
2318 We apologize that cairo 1.4.4 did little more than crash on many
2319 platforms which are less-frequently used by the most regular cairo
2320 maintainers, (win32, OS/2, and BeOS). The mutex initialization
2321 problems that caused those crashes should be fixed now. And to avoid
2322 similar problems in the future, we've now started posting pre-release
2323 snapshots to get better testing, (subscribe to cairo@cairographics.org
2324 if you're interested in getting notified of those and testing them).
2328 Thanks to Adrian Johnson, (cairo PDF hacker extraordinaire), we have
2329 several improvements to cairo's PDF backend to announce:
2333 As of cairo 1.4.6, cairo will now generate native PDF gradients in
2334 many cases, (previously, the presence of a gradient on any page
2335 would force rasterized output for that page). Currently, only
2336 gradients with extend types of PAD (the default) or NONE will
2337 generate native PDF gradients---others will still trigger
2338 rasterization, (but look for support for other extend modes in a
2339 future release). Many thanks to Miklós Erdélyi as well, who did the
2340 initial work for this support.
2342 Better compatibility with PDF viewers:
2344 The PDF output from cairo should now be displayed correctly by a
2345 wider range of PDF viewers. Adrian tested cairo's PDF output against
2346 many PDF viewers, identified a common bug in many of those viewers
2347 (ignoring the CTM matrix in some cases), and modified cairo's output
2348 to avoid triggering that bugs (pre-transforming coordinates and
2349 using an identity matrix).
2351 Better OpenType/CFF subsetting:
2353 Cairo will now embed CFF and TrueType fonts as CID fonts.
2355 Performance optimizations
2356 -------------------------
2357 Faster cairo_paint_with_alpha:
2359 The cairo_paint_with_alpha call is used to apply a uniform alpha
2360 mask to a pattern. For example, it can be used to gradually fade an
2361 image out or in. Jeff Muizelaar fixed some missing/broken
2362 optimizations within the implementation of this function resulting
2363 in cairo_paint_with_alpha being up to 4 times faster when using
2364 cairo's image backend.
2366 Optimize rendering of "off-screen" geometry:
2368 Something that applications often do is to ask cairo to render
2369 things that are either partially or wholly outside the current clip
2370 region. Since 1.4.0 the image backend has been fixed to not waste
2371 too much time in this case. But other backends have still been
2374 In particular, the xlib backend has often performed quite badly in
2375 this situation. This is due to a bug in the implementation of
2376 trapezoid rasterization in many X servers.
2378 Now, in cairo 1.4.6 there is a higher-level fix for this
2379 situation. Cairo now eliminates or clips trapezoids that are wholly
2380 or partially outside the clip region before handing the trapezoids
2381 to the backend. This means that the X server's performance bug is
2382 avoided in almost all cases.
2384 The net result is that doing an extreme zoom-in of vector-based
2385 objects drawn with cairo might have previously brought the X server
2386 to its knees as it allocated buffers large enough to fit all of the
2387 geometry, (whether visible or not). But now the memory usage should
2388 be bounded and performance should be dramatically better.
2392 Behdad contributed an impressively long series of changes that
2393 organizes cairo's internals in several ways that will be very
2394 beneficial to cairo developers. Thanks, Behdad!
2396 Behdad has also provided a utility for generating malloc statistics,
2397 (which was used during the great malloc purges of 1.4.2 and
2398 1.4.4). This utility isn't specific to cairo so may be of benefit to
2399 others. It is found in cairo/util/malloc-stats.c and here are Behdad's
2404 make malloc-stats.so
2406 inside util/, and to use, run:
2408 LD_PRELOAD=malloc-stats.so some-program
2410 For binaries managed by libtool, eg, cairo-perf, do:
2412 ../libtool --mode=execute /bin/true ./cairo-perf
2413 LD_PRELOAD="../util/malloc-stats.so" .libs/lt-cairo-perf
2415 Finally, the cairo-perf-diff-files utility was enhanced to allow for
2416 generating performance reports from several runs of the same backend
2417 while some system variables were changed. For example, this is now
2418 being used to allow cairo-perf to measure the performance of various
2419 different acceleration architectures and configuration options of the
2422 Release 1.4.4 (2007-04-13 Carl Worth <cworth@cworth.org>)
2423 =========================================================
2424 This is the second update release in cairo's stable 1.4 series. It
2425 comes just less than a month after 1.4.2. The changes since 1.4.2
2426 consist primarily of bug fixes, but also include at least one
2427 optimization. See below for details.
2429 Of all the work that went into the 1.4.4 release
2431 There have been lots of individuals doing lots of great work on cairo,
2432 but two efforts during the 1.4.4 series deserve particular mention:
2434 Internal cleanup of error handling, (Chris Wilson)
2435 --------------------------------------------------
2436 Chris contributed a tremendous series of patches (74 patches!) to
2437 improve cairo's handling of out-of-memory and other errors. He began
2438 by adding gcc's warn_unused_attribute to as many functions as
2439 possible, and then launched into the ambitious efforts of adding
2440 correct code to quiet the dozens of resulting warnings.
2442 Chris also wrote a custom valgrind skin to systematically inject
2443 malloc failures into cairo, and did all the work necessary to verify
2444 that cairo's performance test suite runs to completion without
2447 The end result is a much more robust implementation. Previously, many
2448 error conditions would have gone unnoticed and would have led to
2449 assertion failures, segmentation faults, or other harder-to-diagnose
2450 problems. Now, more than ever, cairo should cleanly let the user know
2451 of problems through cairo_status and other similar status
2452 functions. Well done, Chris!
2454 More malloc reduction, (Mathias Hasselmann)
2455 -------------------------------------------
2456 After 1.4.0, Behdad launched an effort to chase down excessive calls
2457 to malloc within the implementation of cairo. He fixed a lot of
2458 malloc-happy objects for 1.4.2, but one of the worst offenders,
2459 (pixman regions), was left around. Mathias contributed an excellent
2460 series of 15 patches to finish off this effort.
2462 The end result is a cairo that calls malloc much less often than it
2463 did before. Compared to 1.4.2, 55% of the calls to malloc have been
2464 eliminate, (and 60% have been eliminated compared to 1.4.0). Well
2467 Other improvements since 1.4.2
2468 ------------------------------
2469 • Centralize mutex declarations (will reduce future build breaks),
2470 (Mathias Hasselmann)
2472 • Reduce malloc by caching recently freed pattern objects (Chris
2475 • Fix some broken composite operations (David Reveman)
2476 https://bugs.freedesktop.org/show_bug.cgi?id=5777
2478 Backend-specific fixes
2479 ----------------------
2481 • Use TJ operator for more compact representation of glyphs (Adrian
2484 • Fix glyph positioning bug when glyphs are not horizontal
2485 http://lists.freedesktop.org/archives/cairo/2007-April/010337.html
2488 • Fix crash when rendering with bitmap fonts (Carl Worth)
2489 https://bugzilla.mozilla.org/show_bug.cgi?id=376498
2492 • Turn metrics-hinting on by default (Behdad Esfahbod)
2494 • Fix edge-effect problem with transformed images drawn to xlib
2496 https://bugs.freedesktop.org/show_bug.cgi?id=10508
2498 • Avoid dereferencing a NULL screen. (Chris Wilson)
2499 https://bugs.freedesktop.org/show_bug.cgi?id=10517
2502 • Fix scaling of glyph surfaces
2504 https://bugs.freedesktop.org/show_bug.cgi?id=9568
2506 • Fix compilation failure when both xlib and quartz enabled
2509 • Fix rounding bug leading to incorrectly positioned glyphs
2511 https://bugs.freedesktop.org/show_bug.cgi?id=10531
2513 Release 1.4.2 (2007-03-19 Carl Worth <cworth@cworth.org>)
2514 =========================================================
2515 This is the first update release in cairo's stable 1.4 series. It
2516 comes just less than 2 weeks after 1.4.0. We hadn't anticipated an
2517 update this early, but we've managed to collect some important fixes
2518 that we wanted to get out to cairo users as soon as possible, (6 fixes
2519 for crashes, 1 case where graphical elements would not be drawn at
2520 all, a handful of backend-specific bugs, and several important build
2523 There's almost nothing but bug fixes in this release, (see below one
2524 optimization that Behdad did sneak in), so we recommend that everyone
2525 upgrade to this release when possible.
2527 Thanks to the many people that worked to fix these bugs, and those
2528 that did the work to report them and to test the fixes, (wherever
2529 possible both names are credited below).
2533 • Fix a crash due to a LOCK vs. UNLOCK typo (M. Drochner fixing Carl
2534 Worth's embarrassing typo).
2536 http://bugs.freedesktop.org/show_bug.cgi?id=10235
2538 • Fix potential buffer overflow, which on some systems with a checking
2539 variant of snprintf would lead to a crash (Adrian Johnson, Stanislav
2542 https://bugs.freedesktop.org/show_bug.cgi?id=10267
2543 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=232576
2545 • Fix a crash in cairo_stroke_extents or cairo_in_stroke when line
2546 width is 0.0. (Carl Worth and Sebastien Bacher)
2548 https://bugs.freedesktop.org/show_bug.cgi?id=10231
2550 • Fix a crash on certain combinations of X server/video drivers (Carl
2551 Worth and Tomas Carnecky).
2553 https://bugs.freedesktop.org/show_bug.cgi?id=10250
2555 • Fix a crash due to mishandling of invalid user input (Carl Worth and
2556 Alexander Darovsky).
2558 https://bugs.freedesktop.org/show_bug.cgi?id=9844
2560 • xlib: Cleanup server-side glyph caches on XCloseDisplay. This
2561 eliminated a crash detected by the perf suite, (and that
2562 applications could have run into as well). (Chris Wilson)
2566 • Fix for some geometry which simply disappeared under some
2567 transformations---a stroked line with an extreme skew in X, for
2568 example (Carl Worth and Jonathan Watt).
2570 https://bugzilla.mozilla.org/show_bug.cgi?id=373632
2572 • SVG: Fix radial gradients for CAIRO_EXTEND_REFLECT and when r0 > r1
2575 • PDF: Set page group color space to DeviceRGB.
2577 This fixes incorrect (muddy) transparent colors when rendering cairo
2578 PDF output in some viewers. (Adrian Johnson, Adam Goode, and
2581 http://lists.freedesktop.org/archives/cairo/2006-November/008551.html
2583 • win32: Return correct metrics when hinting is off, and fix font
2584 descent computation (Behdad Esfahbod).
2586 • quartz: Fix glyph interfaces to correctly return user-space rather
2587 than device-space coordinates (Brian Ewins).
2589 https://bugs.freedesktop.org/show_bug.cgi?id=9568
2591 • xcb: Fix parameter-order confusion with xcb_create_pixmap, which now
2592 makes all tests that pass with xlib now pass with xcb (Carl Worth,
2595 • Fix some memory leaks in the perf suite (Chris Wilson).
2597 • Fix perf suite to consider changes in pixman/src (Mathias
2602 • Don't include pre-generated cairo-features.h file. This was causing
2603 build failures when building with the directfb backend enabled
2606 https://bugs.freedesktop.org/show_bug.cgi?id=10189
2608 • Eliminate use of maintainer mode from cairo's automake/configure
2609 script. This means that updates to files such as Makefile.am will
2610 take effect, (by rerunning automake and friends as necessary) when
2611 invoking make rather than being silently ignored. (Behdad Esfahbod)
2613 • Don't compile cairo-deflate-stream.c, which depends on zlib, unless
2614 building the pdf backend which requires it. (Carl Worth, Tor
2617 https://bugs.freedesktop.org/show_bug.cgi?id=10202
2619 • Don't make the ps backend link against zlib anymore, since it
2620 doesn't require it (Carl Worth).
2622 • Use "find !" rather than "find -not" for better portability (Thomas
2625 https://bugs.freedesktop.org/show_bug.cgi?id=10226
2627 • Don't use unsupported visibility attribute "hidden" on Solaris
2628 (Gilles Dauphin, Thomas Klausner).
2630 https://bugs.freedesktop.org/show_bug.cgi?id=10227
2634 • It was Behdad that suggested we focus strictly on bug fixes now that
2635 we shipped so many performance improvements in 1.4.0, but it was
2636 also Behdad that got distracted by the chance to remove a lot of
2637 mallocs from cairo. Paths, gstates, trapezoids, splines, polygons,
2638 and gradient color stops will now use small, stack-allocated buffers
2639 in the most common cases rather than calling malloc as
2640 often. (Behdad Esfahbod). And look for more from Mathias Hasselmann
2643 Release 1.4.0 (2007-03-06 Carl Worth <cworth@cworth.org>)
2644 =========================================================
2645 The many people[*] who have been working hard on cairo are very
2646 pleased to announce the long-awaited release of cairo 1.4. This
2647 release comes 4 months after the last stable update release (1.2.6)
2648 and 9 months since the initial release of 1.2.0.
2650 The release notes below are intended to capture the highlights of the
2651 changes that have occurred from the 1.2 series to the new 1.4.0
2654 Performance improvements
2655 ------------------------
2656 Within the cairo project, the last 6 months or so has seen an intense
2657 effort focusing on the performance of cairo itself. That effort has
2658 paid off considerably, as can be seen in the following highlights of
2659 some of the performance differences from cairo 1.2.6 to cairo 1.4.0.
2661 (Note: The performance results reported here were measured on an x86
2662 laptop. Many of the improvements in 1.4---particular those involving
2663 text rendering---are even more dramatic on embedded platforms without
2664 hardware floating-point units. Such devices played an important part
2665 of many of the optimizations that found their way into cairo over the
2668 • Dramatic improvement when drawing objects that are mostly off-screen
2669 with the image backend (with the xlib backend this case is still
2670 slow due to an X server bug):
2672 image-rgba long-lines-uncropped-100 479.64 -> 4.98: 96.24x speedup
2673 ███████████████████████████████████████████████▋
2675 • Dramatic improvement when copying a small fraction of an image
2676 surface to an xlib surface:
2678 xlib-rgba subimage_copy-512 3.93 -> 0.07: 54.52x speedup
2679 ██████████████████████████▊
2681 • Dramatic improvement to tessellation speed for complex objects:
2683 image-rgb tessellate-256-100 874.16 -> 34.79: 25.13x speedup
2685 xlib-rgba zrusin_another_fill-415 148.40 -> 13.85: 10.72x speedup
2687 xlib-rgb world_map-800 680.20 -> 345.54: 1.97x speedup
2690 • Dramatic improvement to the speed of stroking rectilinear shapes,
2691 (such as the outline of a rectangle or "box"):
2693 image-rgb box-outline-stroke-100 0.18 -> 0.01: 24.22x speedup
2695 xlib-rgb box-outline-stroke-100 0.46 -> 0.06: 8.05x speedup
2699 • Dramatic improvements to text rendering speeds:
2701 xlib-rgba text_image_rgba_over-256 63.12 -> 9.61: 6.57x speedup
2704 • 3x improvements to floating-point to fixed-point conversion speeds:
2706 image-rgba pattern_create_radial-16 9.29 -> 3.44: 2.70x speedup
2709 • 2x improvements to linear gradient computation:
2711 image-rgb paint_linear_rgb_source-512 26.22 -> 11.61: 2.26x speedup
2714 • 2x improvement to a case common in PDF rendering:
2716 image-rgb unaligned_clip-100 0.10 -> 0.06: 1.81x speedup
2719 • 1.3x improvement to rectangle filling speed (note: this improvement
2720 is new since 1.3.16---previously this test case was a 1.3x slowdown
2723 image-rgba rectangles-512 6.19 -> 4.37: 1.42x speedup
2725 xlib-rgba rectangles-512 7.48 -> 5.58: 1.34x speedup
2728 NOTE: In spite of our best efforts, there are some measurable
2729 performance regressions in 1.4 compared to 1.2. It appears that the
2730 primary problem is the increased overhead of the new tessellator when
2731 drawing many, very simple shapes. The following test cases capture
2732 some of that slowdown:
2734 image-rgba mosaic_tessellate_lines-800 11.03 -> 14.29: 1.30x slowdown
2736 image-rgba box-outline-fill-100 0.01 -> 0.01: 1.26x slowdown
2738 image-rgba fill_solid_rgb_over-64 0.20 -> 0.22: 1.12x slowdown
2740 image-rgba fill_image_rgba_over-64 0.23 -> 0.25: 1.10x slowdown
2742 xlib-rgb paint_image_rgba_source-256 3.24 -> 3.47: 1.07x slowdown
2744 We did put some special effort into eliminating this slowdown for the
2745 very common case of drawing axis-aligned rectangles with an identity
2746 matrix (see the box-outline-stroke and rectangles speedup numbers
2747 above). Eliminating the rest of this slowdown will be a worthwhile
2748 project going forward.
2750 Also note that the "box-outline-fill" case is a slowdown while
2751 "box-outline-stroke" is a (huge) speedup. These two test cases
2752 resulted from the fact that some GTK+ theme authors were filling
2753 between two rectangles to avoid slow performance from the more natural
2754 means of achieving the same shape by stroking a single rectangle. With
2755 1.4 that workaround should definitely be eliminated as it will now
2756 cause things to perform more slowly.
2758 Greatly improved PDF output
2759 ---------------------------
2760 We are very happy to be able to announce that cairo-generated PDF
2761 output will now have text that can be selected, cut-and-pasted, and
2762 searched with most capable PDF viewer applications. This is something
2763 that was not ever possible with cairo 1.2.
2765 Also, the PDF output now has much more compact encoding of text than
2766 before. Cairo is now much more careful to not embed multiple copies of
2767 the same font at different sizes. It also compresses text and font
2768 streams within the PDF output.
2772 There are several new functions available in 1.4 that were not
2773 available in 1.2. Curiously, almost all of the new functions simply
2774 allow the user to query state that has been set in cairo (many new
2775 "get" functions) rather than providing any fundamentally new
2776 operations. The new functionality is:
2778 • Getting information about the current clip region
2781 cairo_copy_clip_rectangle_list
2782 cairo_rectangle_list_destroy
2784 • Getting information about the current dash setting
2786 cairo_get_dash_count
2789 • Getting information from a pattern
2791 cairo_pattern_get_rgba
2792 cairo_pattern_get_surface
2793 cairo_pattern_get_color_stop_rgba
2794 cairo_pattern_get_color_stop_count
2795 cairo_pattern_get_linear_points
2796 cairo_pattern_get_radial_circles
2798 • Getting the current scaled font
2800 cairo_get_scaled_font
2802 • Getting reference counts
2804 cairo_get_reference_count
2805 cairo_surface_get_reference_count
2806 cairo_pattern_get_reference_count
2807 cairo_font_face_get_reference_count
2808 cairo_scaled_font_get_reference_count
2810 • Setting/getting user data on objects
2814 cairo_pattern_set_user_data
2815 cairo_pattern_get_user_data
2816 cairo_scaled_font_set_user_data
2817 cairo_scaled_font_get_user_data
2819 • New cairo-win32 functions:
2821 cairo_win32_surface_create_with_ddb
2822 cairo_win32_surface_get_image
2823 cairo_win32_scaled_font_get_logical_to_device
2824 cairo_win32_scaled_font_get_device_to_logical
2828 The CAIRO_FORMAT_RGB16_565 enum value has been deprecated. It never
2829 worked as a format value for cairo_image_surface_create, and it wasn't
2830 necessary for supporting 16-bit 565 X server visuals.
2832 A sampling of bug fixes in cairo 1.4
2833 ------------------------------------
2834 • Fixed radial gradients
2835 • Fixed dashing (degenerate and "leaky" cases)
2836 • Fixed transformed images in PDF/PS output (eliminate bogus repeating)
2837 • Eliminate errors from CAIRO_EXTEND_REFLECT and CAIRO_EXTEND_PAD
2838 • cairo_show_page no longer needed for single-page output
2839 • SVG: Fix bug preventing text from appearing in many viewers
2840 • cairo-ft: Return correct metrics when hinting is off
2841 • Eliminate crash in cairo_create_similar if nil surface is returned
2842 • Eliminate crash after INVALID_RESTORE error
2843 • Fix many bugs related to multi-threaded use and locking
2844 • Fix for glyph spacing 32 times larger than desired (cairo-win32)
2845 • Fixed several problems in cairo-atsui (assertion failures)
2846 • Fix PDF output to avoid problems when printing from Acrobat Reader
2847 • Fix segfault on Mac OS X (measuring a zero-length string)
2848 • Fix text extents to not include the size of non-inked characters
2849 • Fix for glyph cache race condition in glitz backend (Jinghua Luo)
2850 • Fix make check to work on OPD platforms (IA64 or PPC64)
2851 • Fix compilation problems of cairo "wideint" code on some platforms
2852 • Many, many others...
2854 Experimental backends (quartz, XCB, OS/2, BeOS, directfb)
2855 ---------------------------------------------------------
2856 None of cairo's experimental backends are graduating to "supported"
2857 status with 1.4.0, but two of them in particular (quartz and xcb), are
2860 The quartz baceknd has been entirely rewritten and is now much more
2861 efficient. The XCB backend has been updated to track the latest XCB
2862 API (which recently had a 1.0 release).
2864 We hope to see these backends become supported in a future release,
2865 (once they are passing all the tests in cairo's test suite).
2867 The experimental OS/2 backend is new in cairo 1.4 compared to cairo
2870 Documentation improvements
2871 --------------------------
2872 We have added documentation for several functions and types that
2873 were previously undocumented, and improved documentation on other
2874 ones. As of this release, there remain only two undocumented
2875 symbols: cairo_filter_t and cairo_operator_t.
2877 [*]Thanks to everyone
2878 ---------------------
2879 I've accounted for 41 distinct people with attributed code added to
2880 cairo between 1.2.6 and 1.4.0, (their names are below). That's an
2881 impressive number, but there are certainly dozens more that
2882 contributed with testing, suggestions, clarifying questions, and
2883 encouragement. I'm grateful for the friendships that have developed as
2884 we have worked on cairo together. Thanks to everyone for making this
2887 Adrian Johnson, Alfred Peng, Alp Toker, Behdad Esfahbod,
2888 Benjamin Otte, Brian Ewins, Carl Worth, Christian Biesinger,
2889 Christopher (Monty) Montgomery, Daniel Amelang, Dan Williams,
2890 Dave Yeo, David Turner, Emmanuel Pacaud, Eugeniy Meshcheryakov,
2891 Frederic Crozat, Hans Breuer, Ian Osgood, Jamey Sharp, Jeff Muizelaar,
2892 Jeff Smith, Jinghua Luo, Jonathan Watt, Joonas Pihlaja, Jorn Baayen,
2893 Kalle Vahlman, Kjartan Maraas, Kristian Høgsberg, M Joonas Pihlaja,
2894 Mathias Hasselmann, Mathieu Lacage, Michael Emmel, Nicholas Miell,
2895 Pavel Roskin, Peter Weilbacher, Robert O'Callahan,
2896 Soren Sandmann Pedersen, Stuart Parmenter, T Rowley,
2899 Snapshot 1.3.16 (2007-03-02 Carl Worth <cworth@cworth.org>)
2900 ===========================================================
2903 A few new public functions have been added to the cairo API since the
2904 1.3.14 snapshot. These include a function to query the current scaled
2907 cairo_get_scaled_font
2909 New functions to query the reference count of all cairo objects:
2911 cairo_get_reference_count
2913 cairo_surface_get_reference_count
2914 cairo_pattern_get_reference_count
2916 cairo_font_face_get_reference_count
2917 cairo_scaled_font_get_reference_count
2919 And new functions to allow the use of user_data with any cairo object,
2920 (previously these were only available on cairo_surface_t and
2921 cairo_font_face_t objects):
2926 cairo_pattern_set_user_data
2927 cairo_pattern_get_user_data
2929 cairo_scaled_font_set_user_data
2930 cairo_scaled_font_get_user_data
2932 Usability improvement for PDF/PS/SVG generation
2933 -----------------------------------------------
2934 In previous versions of cairo, generating single-page output with the
2935 cairo-pdf, cairo-ps, or cairo-svg backends required a final call to
2936 cairo_show_page. This was often quite confusing as people would port
2937 functional code from a non-paginated backend and be totally mystified
2938 as to why the output was blank until they learned to add this call.
2940 Now that call to cairo_show_page is optional, (it will be generated
2941 implicitly if the user does not call it). So cairo_show_page is only
2942 needed to explicitly separate multiple pages.
2944 Greatly improved PDF output
2945 ---------------------------
2946 We are very happy to be able to announce that cairo-generated PDF
2947 output will now have text that can be selected, cut-and-paste, and
2948 searched with most capable PDF viewer applications. This is something
2949 that was not ever possible with cairo 1.2.
2951 Also, the PDF output now has much more compact encoding of text than
2952 before. Cairo is now much more careful to not embed multiple copies of
2953 the same font at different sizes. It also compresses text and font
2954 streams within the PDF output.
2958 • Fixed radial gradients
2960 The rendering of radial gradients has been greatly improved. In
2961 the cairo 1.2 series, there was a serious regression affecting
2962 radial gradients---results would be very incorrect unless one of
2963 the gradient circles had a radius of 0.0 and a center point within
2964 the other circle. These bugs have now been fixed.
2968 Several fixes have been made to the implementation of dashed
2969 stroking. Previously, some dashed, stroked rectangles would
2970 mis-render and fill half of the rectangle with a large triangular
2971 shape. This bug has now been fixed.
2973 • Fixed transformed images in PDF/PS output
2975 In previous versions of cairo, painting with an image-based source
2976 surface pattern to the PDF or PS backends would cause many kinds
2977 of incorrect results. One of the most common problems was that an
2978 image would be repeated many times even when the user had
2979 explicitly requested no repetition with CAIRO_EXTEND_NONE. These
2980 bugs have now been fixed.
2982 • Eliminate errors from CAIRO_EXTEND_REFLECT and CAIRO_EXTEND_PAD
2984 In the 1.2 version of cairo any use of CAIRO_EXTEND_REFLECT or
2985 CAIRO_EXTEND_PAD with a surface-based pattern resulted in an
2986 error, (cairo would stop rendering). This bug has now been
2989 Now, CAIRO_EXTEND_REFLECT should work properly with surface
2992 CAIRO_EXTEND_PAD is still not working correctly, but it will now
2993 simply behave as CAIRO_EXTEND_NONE rather than triggering the
2996 New rewrite of quartz backend (still experimental)
2997 --------------------------------------------------
2998 Cairo's quartz backend has been entirely rewritten and is now much
2999 more efficient. This backend is still marked as experimental, not
3000 supported, but it is now much closer to becoming an officially
3001 supported backend. (For people that used the experimental nquartz
3002 backend in previous snapshots, that implementation has now been
3003 renamed from "nquartz" to "quartz" and has replaced the old quartz
3006 Documentation improvements
3007 --------------------------
3008 We have added documentation for several functions and types that
3009 were previously undocumented, and improved documentation on other
3010 ones. As of this release, there remain only two undocumented
3011 symbols: cairo_filter_t and cairo_operator_t.
3015 • cairo-svg: Fix bug that was preventing text from appearing in many
3018 • cairo-ft: Return correct metrics when hinting is off
3020 • Cairo 1.3.14 deadlocks in cairo_scaled_font_glyph_extents or
3021 _cairo_ft_unscaled_font_lock_face
3023 https://bugs.freedesktop.org/show_bug.cgi?id=10035
3025 • cairo crashes in cairo_create_similar if nil surface returned by
3026 other->backend->create_similar
3028 https://bugs.freedesktop.org/show_bug.cgi?id=9844
3030 • evolution crash in _cairo_gstate_backend_to_user()
3031 https://bugs.freedesktop.org/show_bug.cgi?id=9906
3033 • Fix memory leak in rectilinear stroking code
3035 Things not in this release
3036 --------------------------
3037 • Solid-surface-pattern cache: This patch had been applied during
3038 the 1.3.x series, but it was reverted due to some inter-thread
3039 problems it caused. The patch is interesting since it made a big
3040 benefit for text rendering performance---so we'll work to bring a
3041 corrected version of this patch back as soon as possible.
3043 Snapshot 1.3.14 (2006-02-13 Carl Worth <cworth@cworth.org>)
3044 ===========================================================
3045 This is the seventh development snapshot in the 1.3 series, (and there
3046 likely won't be many more before the 1.4.0 release). It comes just
3047 over 3 weeks after the 1.3.12 snapshot.
3049 Since we're so close to the 1.4.0 release, there are not a lot of new
3050 features nor even a lot of new performance improvements in this
3051 snapshot. Instead, there are a great number of bug fixes. Some are
3052 long-standing bugs that we're glad to say goodbye to, and several are
3053 fixes for regressions that were introduced as part of the optimization
3054 efforts during the 1.3.x series.
3056 PDF text selection fixed
3057 ------------------------
3058 The inability to correctly select text in cairo-generated PDF has been
3059 a defect ever since the initial support for the PDF backend in the
3060 cairo 1.2.0 release. With the 1.3.14 snapshot, in most situations, and
3061 with most PDF viewer applications, the PDF generated by cairo will
3062 allow text to be correctly selected for copy-and-paste, (as well as
3065 We're very excited about this new functionality, (and very grateful to
3066 Adrian Johnson, Behdad Esfahbod, and others that have put a lot of
3067 work into this lately). Please test this new ability and give feedback
3068 on the cairo@cairographics.org list.
3070 Many thread-safety issues fixed
3071 -------------------------------
3072 We've discovered that no release of cairo has ever provided safe text
3073 rendering from a multi-threaded application. With the 1.3.14 snapshot
3074 a huge number of the bugs in this area have been fixed, and multiple
3075 application dvelopers have now reported success at writing
3076 multi-threaded applications with cairo.
3080 Fixed a bug that was causing glyph spacing to be 32 times larger than
3081 desired when using cairo-win32.
3083 Fixed a regression in the rendering of linear gradients that had been
3084 present since the 1.3.8 snapshot.
3086 Fixed several problems in cairo-atsui that were leading to assertion
3087 failures when rendering text.
3089 Fix corrupted results when rendering a transformed source image
3090 surface to an xlib surface. This was a regression that had been
3091 present since the 1.3.2 snapshot.
3093 Fixed PDF output to prevent problems printing from some versions of
3094 Acrobat Reader, (a single glyph was being substituted for every
3097 And many other fixes as well, (see the logs for details).
3099 Snapshot 1.3.12 (2007-01-20 Carl Worth <cworth@cworth.org>)
3100 ===========================================================
3101 The relentless march toward the cairo 1.4 release continues, (even if
3102 slightly late out of the starting blocks in 2007). This is the sixth
3103 development snapshot in the 1.3 series. It comes 4 weeks after the
3108 As usual, this snapshot has some fun performance improvements to show
3111 image-rgba long-lines-uncropped-100 470.08 -> 4.95: 94.91x speedup
3112 ███████████████████████████████████████████████
3113 image-rgb long-lines-uncropped-100 461.60 -> 4.96: 93.02x speedup
3114 ██████████████████████████████████████████████
3116 This 100x improvement, (and yes, that's 100x, not 100%), in the image
3117 backend occurs when drawing large shapes where only a fraction of the
3118 shape actually appears in the final result, (the rest being outside
3119 the bounds of the destination surface). Many applications should see
3120 speedups here, and the actual amount of speedup depends on the ratio
3121 of non-visible to visible portions of geometry.
3123 [Note: There remains a similar performance bug when drawing mostly
3124 non-visible objects with the xlib backend. This is due to a similar
3125 bug in the X server itself, but we hope a future cairo snapshot will
3126 workaround that bug to get a similar speedup with the xlib backend.]
3128 image-rgba unaligned_clip-100 0.09 -> 0.06: 1.67x speedup
3130 image-rgb unaligned_clip-100 0.09 -> 0.06: 1.66x speedup
3133 This speedup is due to further MMX optimization by Soeren Sandmann for
3134 a case commonly hit when rendering PDF files, (and thanks to Jeff
3135 Muizelaar for writing code to extract the test case for us).
3137 There's another MMX optimization in this snapshot (without a fancy
3138 speedup chart) by Dan Williams which improves compositing performance
3139 specifically for the OLPC machine.
3141 Thanks to Adrian Johnson, cairo's PDF output is now much more
3142 efficient in the way it encodes text output. By reducing redundant
3143 information and adding compression to text output streams, Adrian
3144 achieved a ~25x improvement in the efficiency of encoding text in PDF
3145 files, (was ~45 bytes per glyph and is now ~1.6 bytes per glyph).
3149 In addition to those performance improvements, this snapshot includes
3152 * A huge number of bug fixes for cairo-atsui text rendering, (for mac
3153 OS X). These bugs affect font selection, glyph positioning, glyph
3154 rendering, etc. One noteworthy bug fixes is that
3155 cairo_select_font_face will no longer arbitrarily select bold nor
3156 italic when not requested, (at least not when using a standard CSS2
3157 font family name such as "serif", "sans-serif", "monospace", etc.).
3158 All these fixes are thanks to Brian Ewins who continues to do a
3159 great job as the new cairo-atsui maintainer.
3161 * Fix PDF output so that images that are scaled down no longer
3162 mysteriously repeat (Carl Worth).
3164 * Fix segfault on Mac OS X dues to attempt to measure extents of a
3165 zero-length string (Behdad Esfahbod).
3167 * Fix text extents to not include the size of initial/trailing
3168 non-inked characters (Behdad Esfahbod).
3172 Three functions have had API changes to improve consistency. Note that
3173 the API functions being changed here are all functions that were
3174 introduced as new functions during these 1.3.x snapshots. As always,
3175 there will not be any API changes to functions included in a major
3176 release (1.2.x, 1.4.x, etc.) of cairo.
3178 The changes are as follows:
3180 * Rename of cairo_copy_clip_rectangles to cairo_copy_clip_rectangle_list.
3182 * Change cairo_get_dash_count to return an int rather than accepting a
3183 pointer to an int for the return value.
3185 * Change cairo_get_dash to have a void return type rather than
3186 returning cairo_status_t.
3188 It's possible there will be one more round of changes to these
3189 functions, (and perhaps cairo_get_color_stop as well), as we seek to
3190 establish a unifying convention for returning lists of values.
3192 Snapshot 1.3.10 (2006-12-23 Carl Worth <cworth@cworth.org>)
3193 ===========================================================
3194 Santa Claus is coming just a little bit early this year, and he's
3195 bringing a shiny new cairo snapshot for all the good little boys and
3198 This is the fifth development snapshot in the 1.3 series. It comes 9
3199 days after the 1.3.8 snapshot, and still well within our goal of
3200 having a new snapshot every week, (though don't expect one next
3201 week---we'll all be too stuffed with sugar plums).
3203 Speaking of sugar plums, there's a sweet treat waiting in this cairo
3204 snapshot---greatly improved performance for stroking rectilinear
3205 shapes, like the ever common rectangle:
3207 image-rgb box-outline-stroke-100 0.18 -> 0.01: 25.58x speedup
3208 ████████████████████████▋
3209 image-rgba box-outline-stroke-100 0.18 -> 0.01: 25.57x speedup
3210 ████████████████████████▋
3211 xlib-rgb box-outline-stroke-100 0.49 -> 0.06: 8.67x speedup
3213 xlib-rgba box-outline-stroke-100 0.22 -> 0.04: 5.39x speedup
3216 In past releases of cairo, some people had noticed that using
3217 cairo_stroke to draw rectilinear shapes could be awfully slow. Many
3218 people had worked around this by using cairo_fill with a more complex
3219 path and gotten a 5-15x performance benefit from that.
3221 If you're one of those people, please rip that workaround out, as now
3222 the more natural use of cairo_stroke should be 1.2-2x faster than the
3223 unnatural use of cairo_fill.
3225 And if you hadn't ever implemented that workaround, then you just
3226 might get to see your stroked rectangles now get drawn 5-25x faster.
3228 Beyond that performance fix, there are a handful of bug fixes in this
3231 * Fix for glyph cache race condition in glitz backend (Jinghua Luo)
3233 * Many fixes for ATSUI text rendering (Brian Ewins)
3235 * Un-break recent optimization-triggered regression in rendering text
3236 with a translation in the font matrix (Behdad Esfahbod)
3238 * Fix make check to work on OPD platforms (IA64 or PPC64)
3241 * Fix a couple of character spacing issues on Windows
3244 Have fun with that, everybody, and we'll be back for more in the new
3245 year, (with a plan to add the last of our performance improvements in
3246 this round, fix a few bad, lingering bugs, and then finish off a nice,
3247 stable 1.4 release before the end of January).
3251 Snapshot 1.3.8 (2006-12-14 Carl Worth <cworth@cworth.org>)
3252 ==========================================================
3253 This is the fourth development snapshot in the 1.3 series. It comes
3254 just slightly more than one week after the 1.3.6 snapshot.
3256 After the bug fixes in 1.3.6, we're back to our original program of
3257 weekly snapshots, each one faster than the one from the week
3258 before. Cairo 1.3.8 brings a 2x improvement in the speed of rendering
3259 linear gradients (thanks to David Turner), and a significant reduction
3260 in X traffic when rendering text (thanks to Xan Lopez and Behdad
3261 Esfahbod), making cairo behave very much like Xft does.
3263 A few other things in the 1.3.8 snapshot worth noting include a more
3264 forgiving image comparator in the test suite, (using the "perceptual
3265 diff" metric and GPL implementation by Hector Yee[*]), a bug fix for
3266 broken linking on x86_64 (thanks to M Joonas Pihlaja) and an even
3267 better implementation of _cairo_lround, (not faster, but supporting a
3268 more complete input range), from Daniel Amelang.
3270 [*] http://pdiff.sourceforge.net/
3272 Snapshot 1.3.6 (2006-12-06 Carl Worth <cworth@cworth.org>)
3273 ==========================================================
3274 This is the third development snapshot in the 1.3 series. It comes two
3275 weeks after the 1.3.4 snapshot.
3277 We don't have fancy performance charts this week as the primary
3278 changes in this snapshot are bug fixes. The performance work continues
3279 and the next snapshot (planned for one week from today) should include
3280 several improvements. The bug fixes in this snapshot include:
3282 * Fix undesirable rounding in glyph positioning (Dan Amelang)
3284 This bug was noticed by several users, most commonly by seeing
3285 improper text spacing or scrambled glyphs as drawn by nautilus. For
3288 Update to cairo-1.3.4 worsen font rendering
3289 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=217819
3291 * Fix reduced range of valid input coordinates to tessellator
3294 This bug was causing lots of assertion failures in mozilla as
3297 CAIRO_BO_GUARD_BITS and coordinate space?
3298 http://lists.freedesktop.org/archives/cairo/2006-December/008743.html
3300 * Fix several regressions in new tessellator (M Joonas Pihlaja)
3302 Joonas just had a good eye for detail here. I don't think any
3303 external cairo users had noticed any of these bugs yet.
3305 * Fix compilation problems of cairo "wideint" code on some platforms
3308 * Fix failed configure due to broken grep (Dan Amelang)
3310 This bug was reported here:
3312 AX_C_FLOAT_WORDS_BIGENDIAN doesn't work because grep doesn't
3313 work with binary file
3314 https://bugs.freedesktop.org/show_bug.cgi?id=9124
3316 * Remove the pkg-config minimum version requirement (Behdad Esfahbod)
3318 Some systems ship with pkg-config 0.15 and there was really no good
3319 reason for cairo to insist on having version 0.19 before it would
3322 There is also one new (but inert) feature in this snapshot. There's a
3323 new option that can be passed to cairo's configure script:
3325 --disable-some-floating-point
3327 Disable certain code paths that rely heavily on double precision
3328 floating-point calculation. This option can improve
3329 performance on systems without a double precision floating-point
3330 unit, but might degrade performance on those that do.
3332 As of this snapshot, this option does not make any change to cairo,
3333 but it is possible that future versions of cairo will respect this
3334 option and change the implementation of various functions as
3337 Snapshot 1.3.4 (2006-11-22 Carl Worth <cworth@cworth.org>)
3338 ==========================================================
3339 This is the second development snapshot in the 1.3 series. It comes
3340 one week after the 1.3.2 snapshot.
3342 This snapshot has a couple of significant performance improvements,
3343 and also adds new support for producing multi-page SVG output, (when
3344 targeting SVG 1.2)---thanks to Emmanuel Pacaud. The details of the
3345 performance improvements are as follows:
3347 1. The long-awaited "new tessellator".
3349 The credit for this being an improvement goes to Joonas Pihlaja. He
3350 took my really slow code and really put it through its paces to get
3351 the dramatic performance improvement seen below (up to 38x faster
3352 on realistic cases, and more than 10x faster for the zrusin_another
3355 His own writeup of the work he did is quite thorough, but more than
3356 can be quoted here. Please see his post for the interesting details:
3358 http://lists.freedesktop.org/archives/cairo/2006-November/008483.html
3360 (Though note that this snapshot also includes some additional,
3361 significant improvements that were only sketched out in that
3362 email---see "Generating fewer trapezoids").
3364 2. More floating-point improvements
3366 Daniel Amelang continues to work the magic he began in the 1.3.2
3367 snapshot. This time he short-circuits floating-point
3368 transformations by identity matrices and applies the earlier
3369 floating-to-fixed-point technique to the problem of rounding.
3371 The improvements here will primarily benefit text performance, and
3372 will benefit platforms without hardware floating-point more than
3373 those that have it, (some text tests show 20% improvement on an x86
3374 machine and closer to 80% improvement on arm).
3376 The performance chart comparing 1.3.2 to 1.3.4 really speaks for
3377 itself, (this is on an x86 laptop). This is quite a lot of progress
3380 xlib-rgb stroke_similar_rgba_over-256 74.99 1.45% -> 2.03 68.38%: 36.86x speedup
3381 ███████████████████████████████████▉
3382 xlib-rgb stroke_similar_rgba_source-256 78.23 1.43% -> 3.30 67.05%: 23.71x speedup
3383 ██████████████████████▊
3384 xlib-rgba tessellate-256-100 820.42 0.15% -> 35.06 2.84%: 23.40x speedup
3385 ██████████████████████▍
3386 image-rgba tessellate-256-100 819.55 0.32% -> 35.04 3.56%: 23.39x speedup
3387 ██████████████████████▍
3388 xlib-rgb stroke_image_rgba_over-256 78.10 1.43% -> 4.33 65.56%: 18.04x speedup
3390 xlib-rgb stroke_image_rgba_source-256 80.11 1.63% -> 5.75 63.99%: 13.94x speedup
3392 xlib-rgba zrusin_another_tessellate-415 89.22 0.35% -> 8.38 5.23%: 10.65x speedup
3394 image-rgba zrusin_another_tessellate-415 87.38 0.89% -> 8.37 5.22%: 10.44x speedup
3396 image-rgba zrusin_another_fill-415 117.67 1.34% -> 12.88 2.77%: 9.14x speedup
3398 xlib-rgba zrusin_another_fill-415 140.52 1.57% -> 15.79 2.88%: 8.90x speedup
3400 image-rgba tessellate-64-100 9.68 3.42% -> 1.42 0.60%: 6.82x speedup
3402 xlib-rgba tessellate-64-100 9.78 4.35% -> 1.45 0.83%: 6.72x speedup
3404 xlib-rgb stroke_linear_rgba_over-256 46.01 2.44% -> 7.74 54.51%: 5.94x speedup
3406 xlib-rgb stroke_linear_rgba_source-256 48.09 2.15% -> 9.14 53.00%: 5.26x speedup
3408 xlib-rgb stroke_radial_rgba_over-256 50.96 2.34% -> 12.46 47.99%: 4.09x speedup
3410 xlib-rgb stroke_radial_rgba_source-256 53.06 1.57% -> 13.96 46.57%: 3.80x speedup
3412 image-rgba paint_similar_rgba_source-256 0.12 1.57% -> 0.08 9.92%: 1.42x speedup
3414 image-rgba paint_image_rgba_source-256 0.12 2.49% -> 0.08 10.70%: 1.41x speedup
3416 image-rgba world_map-800 356.28 0.46% -> 275.72 1.15%: 1.29x speedup
3418 xlib-rgba world_map-800 456.81 0.39% -> 357.95 1.39%: 1.28x speedup
3420 image-rgb tessellate-16-100 0.09 0.57% -> 0.07 3.43%: 1.23x speedup
3422 image-rgba tessellate-16-100 0.09 0.06% -> 0.07 2.46%: 1.23x speedup
3424 image-rgba text_solid_rgb_over-256 5.39 4.01% -> 4.47 0.70%: 1.21x speedup
3426 image-rgba text_solid_rgba_over-256 5.37 0.82% -> 4.45 0.75%: 1.21x speedup
3428 image-rgba text_image_rgb_over-64 0.78 0.10% -> 0.65 0.74%: 1.20x speedup
3430 image-rgba text_image_rgba_over-64 0.78 0.29% -> 0.65 0.68%: 1.19x speedup
3432 image-rgb text_solid_rgb_over-64 0.76 2.45% -> 0.63 0.81%: 1.19x speedup
3434 image-rgba text_solid_rgba_over-64 0.76 0.33% -> 0.64 0.66%: 1.19x speedup
3436 image-rgba text_similar_rgba_over-256 5.99 4.72% -> 5.04 1.09%: 1.19x speedup
3439 We should point out that there is some potential for slowdown in this
3440 snapshot. The following are the worst slowdowns reported by the cairo
3441 performance suite when comparing 1.3.2 to 1.3.4:
3443 image-rgba subimage_copy-256 0.01 0.87% -> 0.01 3.61%: 1.45x slowdown
3445 xlib-rgb paint_solid_rgb_over-256 0.31 10.23% -> 0.38 0.33%: 1.26x slowdown
3447 image-rgba box-outline-fill-100 0.01 0.30% -> 0.01 2.52%: 1.21x slowdown
3449 image-rgba fill_solid_rgb_over-64 0.20 1.22% -> 0.22 1.59%: 1.12x slowdown
3451 image-rgb fill_similar_rgb_over-64 0.21 1.04% -> 0.24 1.06%: 1.11x slowdown
3453 image-rgba fill_image_rgb_over-64 0.21 1.19% -> 0.24 0.72%: 1.11x slowdown
3455 image-rgba fill_similar_rgb_over-64 0.21 0.18% -> 0.24 0.30%: 1.11x slowdown
3457 image-rgb fill_solid_rgba_over-64 0.22 1.66% -> 0.24 1.15%: 1.11x slowdown
3459 image-rgb fill_image_rgb_over-64 0.21 0.14% -> 0.24 0.80%: 1.11x slowdown
3461 image-rgba fill_image_rgba_over-64 0.22 1.34% -> 0.25 0.20%: 1.11x slowdown
3463 image-rgba fill_solid_rgba_over-64 0.22 1.48% -> 0.24 0.95%: 1.11x slowdown
3465 image-rgb fill_similar_rgba_over-64 0.22 1.13% -> 0.25 1.25%: 1.10x slowdown
3468 The 45% slowdown for subimage_copy is an extreme case. It's unlikely
3469 to hit many applications unless they often use cairo_rectangle;
3470 cairo_fill to copy a single pixel at a time. In any case, it shows a
3471 worst-case impact of the overhead of the new tessellator. The other
3472 slowdowns (~ 10%) are probably more realistic, and still very
3475 We will work to ensure that performance regressions like these are not
3476 present from one major release of cairo to the next, (for example,
3479 But we're putting this 1.3.4 snapshot out there now, even with this
3480 potential slowdown so that people can experiment with it. If you've
3481 got complex geometry, we hope you will see some benefit from the new
3482 tessellator. If you've got primarily simple geometry, we hope things
3483 won't slowdown too much, but please let us know what slowdown you see,
3484 if any, so we can calibrate our performance suite against real-world
3487 Thanks, and have fun with cairo!
3489 Snapshot 1.3.2 (2006-11-14 Carl Worth <cworth@cworth.org>)
3490 ==========================================================
3491 This is the first development snapshot since the 1.2 stable series
3492 branched off shortly after the 1.2.4 release in August 2006.
3494 This snapshot includes all the bug fixes from the 1.2.6 release,
3495 (since they originated here on the 1.3 branch first and were
3496 cherry-picked over to 1.2). But more importantly, it contains some new
3497 API in preparation for a future 1.4 release, and most importantly, it
3498 contains several performance improvements.
3500 The bug fixes will not be reviewed here, as most of them are already
3501 described in the 1.2.6 release notes. But details for the new API and
3502 some performance improvements are included here.
3504 As with all snapshots, this is experimental code, and the new API
3505 added here is still experimental and is not guaranteed to appear
3506 unchanged in any future release of cairo.
3510 Several new API additions are available in this release. There is a
3511 common theme among all the additions in that they allow cairo to
3512 advertise information about its state that it was refusing to
3513 volunteer earlier. So this isn't groundbreaking new functionality, but
3514 it is essential for easily achieving several tasks.
3516 The new functions can be divided into three categories:
3518 Getting information about the current clip region
3519 -------------------------------------------------
3521 cairo_copy_clip_rectangles
3522 cairo_rectangle_list_destroy
3524 Getting information about the current dash setting
3525 --------------------------------------------------
3526 cairo_get_dash_count
3529 Getting information from a pattern
3530 ----------------------------------
3531 cairo_pattern_get_rgba
3532 cairo_pattern_get_surface
3533 cairo_pattern_get_color_stop_rgba
3534 cairo_pattern_get_color_stop_count
3535 cairo_pattern_get_linear_points
3536 cairo_pattern_get_radial_circles
3538 In each of these areas, we have new API for providing a list of
3539 uniform values from cairo. The closest thing we had to this before was
3540 cairo_copy_path, (which is rather unique in providing a list of
3543 The copy_clip_rectangles/rectangle_list_destroy functions follow a
3544 style similar to that of cairo_copy_path. Meanwhile, the dash and
3545 pattern color stop functions introduce a new style in which there is a
3546 single call to return the number of elements available (get_dash_count
3547 and get_color_stop_count) and then a function to be called once to get
3548 each element (get_dash and get_color_stop_rgba).
3550 I'm interested in hearing feedback from users of these new API
3551 functions, particularly from people writing language bindings. One
3552 open question is whether the clip "getter" functionality should adopt
3553 a style similar to that of the new dash and color_stop interfaces.
3557 The CAIRO_FORMAT_RGB16_565 enum value has been deprecated. It never
3558 worked as a format value for cairo_image_surface_create, and it wasn't
3559 necessary for supporting 16-bit 565 X server visuals.
3563 The XCB backend has been updated to track the latest XCB API (which
3564 recently had a 1.0 release).
3568 Vladimir Vukicevic has written a new "native quartz" backend which
3569 will eventually replace the current "image-surface wrapping" quartz
3570 backend. For now, both backends are available, (the old one is
3571 "quartz" and the new one is "nquartz"). But it is anticipated that the
3572 new backend will replace the old one and take on the "quartz" name
3573 before this backend is marked as supported in a release of cairo.
3577 Doodle and Peter Weilbacher have contributed a new, experimental
3578 backend for using cairo on OS/2 systems.
3580 Performance improvements
3581 ------------------------
3582 Here are some highlights from cairo's performance suite showing
3583 improvements from cairo 1.2.6 to cairo 1.3.2. The command used to
3584 generate this data is:
3586 ./cairo-perf-diff 1.2.6 HEAD
3588 available in the perf/ directory of a recent checkout of cairo's
3589 source, (the cairo-perf-diff script does require a git checkout and
3590 will not work from a tar file---though ./cairo-perf can still be used
3591 to generate a single report there and ./cairo-perf-diff-files can be
3592 used to compare two reports).
3594 Results are described below both for an x86 laptop (with an old Radeon
3595 video card, recent X.org build, XAA, free software drivers), as well
3596 as for a Nokia 770. First the x86 results with comments on each, (all
3597 times are reported in milliseconds).
3599 Copying subsets of an image surface to an xlib surface (much faster)
3600 --------------------------------------------------------------------
3601 xlib-rgba subimage_copy-512 10.50 -> : 53.97x speedup
3602 █████████████████████████████████████████████████████
3604 Thanks to Christopher (Monty) Montgomery for this big performance
3605 improvement. Any application which has a large image surface and is
3606 copying small pieces of it at a time to an xlib surface, (imagine an
3607 application that loads a single image containing all the "sprites" for
3608 that application), will benefit from this fix. The larger the ratio of
3609 the image surface to the portion being copied, the larger the benefit.
3611 Floating-point conversion (3x faster)
3612 -------------------------------------
3613 xlib-rgba pattern_create_radial-16 27.75 -> 3.93 : 2.94x speedup
3615 image-rgb pattern_create_radial-16 26.06 -> 3.74 : 2.90x speedup
3618 Thanks to Daniel Amelang, (and others who had contributed the idea
3619 earlier), for this nice improvement in the speed of converting
3620 floating-point values to fixed-point.
3622 Text rendering (1.3 - 2x faster)
3623 ------------------------------
3624 xlib-rgba text_image_rgba_source-256 319.73 -> 62.40 : 2.13x speedup
3626 image-rgb text_solid_rgba_over-64 2.85 -> 0.88 : 1.35x speedup
3629 I don't think we've ever set out to improve text performance
3630 specifically, but we did it a bit anyway. I believe the extra
3631 improvement in the xlib backend is due to Monty's image copying fix
3632 above, and the rest is due to the floating-point conversion speedup.
3634 Thin stroke improvements (1.5x faster)
3635 ---------------------------------------------
3636 image-rgb world_map-800 1641.09 -> 414.77 : 1.65x speedup
3638 xlib-rgba world_map-800 1939.66 -> 529.94 : 1.52x speedup
3641 The most modest stuff to announce in this release is the 50%
3642 improvement I made in the world_map case. This is in improvement that
3643 should help basically anything that is doing strokes with many
3644 straight line segments, (and the thinner the better, since that makes
3645 tessellation dominate rasterization). The fixes here are to use a
3646 custom quadrilateral tessellator rather than the generic tessellator
3647 for straight line segments and the miter joins.
3649 Performance results from the Nokia 770
3650 --------------------------------------
3651 xlib-rgba subimage_copy-512 55.88 -> 2.04 : 27.34x speedup
3652 ██████████████████████████▍
3653 xlib-rgb text_image_rgb_over-256 1487.58 -> 294.43 : 5.05x speedup
3655 image-rgb pattern_create_radial-16 187.13 -> 91.86 : 2.04x speedup
3657 xlib-rgba world_map-800 21261.41 -> 15628.02 : 1.36x speedup
3660 Here we see that the subimage_copy improvement was only about half as
3661 large as the corresponding improvement on my laptop, (27x faster
3662 compared to 54x) and the floating-point conversion fix also was quite
3663 as significant, (2x compared to 3x). Oddly the improvement to text
3664 rendering performance was more than twice as good (5x compared to
3665 2x). I don't know what the reason for that is, but I don't think it's
3666 anything anybody should complain about.
3668 Release 1.2.6 (2006-11-02 Behdad Esfahbod <behdad@behdad.org>)
3669 ==============================================================
3670 This is the third bug fix release in the 1.2 series, coming less than
3671 two months after the 1.2.4 release made on August 18.
3673 The 1.2.4 release turned out to be a pretty solid one, except for a crasher
3674 bug when forwarding an X connection where the client and the server have
3675 varying byte orders, eg. from a PPC to an i686. Other than that, various
3676 other small bugs have been fixed.
3678 Various improvements have been made in the testing infrastructure to prevent
3679 false positives, and to make sure the generated cairo shared object behaves as
3680 expected in terms of exported symbols and relocations.
3682 There were a total of 89 changes since 1.2.4. The following list the most
3687 - Avoid unsigned loop control variable to eliminate infinite,
3688 memory-scribbling loop. (#7593)
3689 - Fix cairo_image_surface_create to report INVALID_FORMAT errors.
3690 Previously the detected error was being lost and a nil surface was
3691 returned that erroneously reported CAIRO_STATUS_NO_MEMORY.
3692 - Change _cairo_color_compute_shorts to not rely on any particular
3693 floating-point epsilon value. (#7497)
3694 - Fix infinite-join test case (bug #8379)
3695 - Pass correct surface to create_similar in _cairo_clip_init_deep_copy().
3699 - Fix Type 1 embedding in PDF.
3700 - Correct the value of /LastChar in the PDF Type 1 font dictionary.
3701 - Improve error checking in TrueType subsetting.
3702 - Compute right index when looking up left side bearing. (bug #8180)
3703 - Correct an unsigned to signed conversion problem in truetype subsetting
3705 - Type1 subsetting: Don't put .notdef in Encoding when there are 256 glyphs.
3706 - Add cairo version to PS header / PDF document info dictionary.
3707 - Set CTM before path construction.
3711 - Get correct unhinted outlines on win32. (bug 7603)
3712 - Make cairo as a win32 static library possible.
3713 - Use CAIRO_FORMAT_RGB24 for BITSPIXEL==32 surfaces too.
3717 - Define WINVER if it's not defined. (bug 6456)
3718 - Fix the AMD64 final link by removing SLIM from pixman.
3719 - Misc win32 compilation fixes.
3720 - Add Sun Pro C definition of pixman_private.
3721 - Use pixman_private consistently as prefix not suffix.
3722 - Added three tests check-plt.sh, check-def.sh, and check-header.sh that check
3723 that the shared object, the .def file, and the public headers agree about
3724 the exported symbols.
3725 - Require pkg-config 0.19. (#8686)
3728 Release 1.2.4 (2006-08-18 Carl Worth <cworth@cworth.org>)
3729 =========================================================
3730 This is the second bug fix release in the 1.2 series, coming less than
3731 two weeks after the 1.2.2 release made on August 8.
3733 The big motivation for a quick release was that there were a log of
3734 build system snags that people ran into with the 1.2.2 release. But,
3735 by the time we got those all done, we found that we had a bunch of
3736 fixes for cairo's rendering as well. So there's a lot of goodness in
3737 here for such a short time period.
3741 Fix image surfaces to not be clipped when used as a source (Vladimir Vukicevic)
3742 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=72e25648c4c4bc82ddd938aa4e05887a293f0d8b
3744 Fix a couple of corner cases in dashing degenerate paths (Jeff Muizelaar)
3745 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=fbb1758ba8384650157b2bbbc93d161b0c2a05f0
3747 Fix support for type1 fonts on win32 (Adrian Johnson)
3748 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=da1019c9138695cb838a54f8b871bbfd0e8996d7
3750 Fix assertion failure when rotating bitmap fonts (Carl Worth)
3751 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=0bfa6d4f33b8ddb5dc55bbe419c15df4af856ff9
3753 Fix assertion failure when calling cairo_text_path with bitmap fonts (Carl Worth)
3754 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=9878a033531e6b96b5f27e69e10e90dee7440cd9
3756 Fix mis-handling of cairo_close_path in some situations (Tim Rowley, Carl Worth)
3757 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=53f74e59faf1af78f2f0741ccf1f23aa5dad4efc
3759 Respect font_matrix translation in _cairo_gstate_glyph_path (Behdad Esfahbod)
3760 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=f183b835b111d23e838889178aa8106ec84663b3
3762 Fix vertical metrics adjustment to work with non-identity shapes (Behdad Esfahbod)
3763 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=b7bc263842a798d657a95e539e1693372448837f
3765 [PS] Set correct ImageMatrix in _cairo_ps_surface_emit_bitmap_glyph_data (Behdad Esfahbod)
3766 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=d47388ad759b0a1a0869655a87d9b5eb6ae2445d
3770 Fix xlib detection to prefer pkg-config to avoid false libXt dependency (Behdad Esfahbod)
3771 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=0e78e7144353703cbd28aae6a67cd9ca261f1d68
3773 Fix typos causing win32 build problem with PS,PDF, and SVG backends (Behdad Esfahbod)
3774 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=aea83b908d020e26732753830bb3056e6702a774
3776 Fix configure cache to not use stale results (Behdad Esfahbod)
3777 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=6d0e3260444a2d5b6fb0cb223ac79f1c0e7b3a6e
3779 Fix to not pass unsupported warning options to the compiler (Jens Granseuer)
3780 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=97524a8fdb899de1ae4a3e920fb7bda6d76c5571
3782 Fix to allow env. variables such as png_REQUIRES to override configure detection (Jens Granseuer)
3783 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=abd16e47d6331bd3811c908e524b4dcb6bd23bf0
3785 Fix test suite to not use an old system cairo when converting svg2png (Behdad Esfahbod)
3786 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=6122cc85c8f71b1ba2df3ab86907768edebe1781
3788 Fix test suite to not require signal.h to be present (Behdad Esfahbod)
3789 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=6f8cf53b1e1ccdbe1ab6a275656b19c6e5120e40
3793 Many useful warnings cleanups from sparse, valgrind, and careful eyes
3794 (Kjartan Maraas, Pavel Roskin)
3796 Release 1.2.2 (2006-08-08 Carl Worth <cworth@cworth.org>)
3797 =========================================================
3798 This is the first bug fix release in the 1.2 series since the original
3799 1.2.0 release made six weeks ago.
3801 There were some very serious bugs in the 1.2.0 release, (see below),
3802 so everybody is encouraged to upgrade from 1.2.0 to 1.2.2. The 1.2.2
3803 release maintains source and binary compatibility with 1.2.0 and does
3804 not make any API additions.
3806 Fix crashes with BGR X servers
3807 ------------------------------
3808 With cairo 1.2.0 many people reported problems with all cairo-using
3809 programs, (including all GTK+ programs with GTK+ >= 2.8) immediately
3810 crashing with a complaint about an unsupported image format. This bug
3811 affected X servers that do not provide the Render extension and that
3812 provide a visual with BGR rather than RGB channel order.
3814 report: https://bugs.freedesktop.org/show_bug.cgi?id=7294
3815 fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=9ae66174e774b57f16ad791452ed44efc2770a59
3817 Fix the "disappearing text" bug
3818 -------------------------------
3819 With cairo 1.2.0 many people reported that text would disappear from
3820 applications, sometimes reappearing with mouse motion or
3821 selection. The text would disappear after the first space in a string
3822 of text. This bug was caused by an underlying bug in (very common) X
3823 servers, and only affected text rendered without antialiasing, (either
3824 a bitmap font or a vector font with antialiasing disabled). The bug
3825 was also exacerbated by a KDE migration bug that caused antialiasing
3826 to be disabled more than desired.
3828 report: https://bugs.freedesktop.org/show_bug.cgi?id=7494
3829 fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=456cdb3058f3b416109a9600167cd8842300ae14
3831 Xorg: https://bugs.freedesktop.org/show_bug.cgi?id=7681
3832 KDE: http://qa.mandriva.com/show_bug.cgi?id=23990
3834 Fix broken image fallback scaling (aka. "broken printing")
3835 ----------------------------------------------------------
3836 The various "print" backends, (pdf, ps, and svg), sometimes fallback
3837 to using image-based rendering for some operations. In cairo 1.2.0
3838 these image fallbacks were scaled improperly. Applications using cairo
3839 can influence the resolution of the image fallbacks with
3840 cairo_surface_set_fallback_resolution. With the bug, any value other
3841 than 72.0 would lead to incorrect results, (larger values would lead
3842 to increasingly shrunken output).
3844 report: https://bugs.freedesktop.org/show_bug.cgi?id=7533
3845 fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=1feb4291cf7813494355459bb547eec604c54ffb
3847 Fix inadvertent semantic change of font matrix translation (Behdad Esfahbod)
3848 ----------------------------------------------------------------------------
3849 The 1.2.0 release introduced an inadvertent change to how the
3850 translation components of a font matrix are interpreted. In the 1.0
3851 series, font matrix translation could be used to offset the glyph
3852 origin, (though glyph metrics were reported incorrectly in
3853 1.0). However in 1.2.0, the translation was applied to the advance
3854 values between each glyph. The 1.2.0 behavior is fairly useless in
3855 practice, and it was not intentional to introduce a semantic
3856 change. With 1.2.2 we return to the 1.0 semantics, with a much better
3857 implementation that provides correct glyph metrics.
3859 fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=84840e6bba6e72aa88fad7a0ee929e8955ba9051
3861 Fix create_similar to preserve fallback resolution and font options (Behdad Esfahbod)
3862 -------------------------------------------------------------------------------------
3863 There has been a long-standing issue with cairo_surface_create_similar
3864 such that font options and other settings from the original
3865 destination surface would not be preserved to the intermediate
3866 "similar" surface. This could result in incorrect rendering
3867 (particularly with respect to text hinting/antialiasing) with
3868 fallbacks, for example.
3870 report: https://bugs.freedesktop.org/show_bug.cgi?id=4106
3871 fixes: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=9fcb3c32c1f16fe6ab913e27eb54d18b7d9a06b0
3872 http://gitweb.freedesktop.org/?p=cairo;a=commit;h=bdb4e1edadb78a2118ff70b28163f8bd4317f1ec
3874 xlib: Fix text performance regression from 1.0 to 1.2.0 (Vladimir Vukicevic)
3875 ----------------------------------------------------------------------------
3876 Several people noticed that upgrading from cairo 1.0 to cairo 1.2.0
3877 caused a significant performance regression when using the xlib
3878 backend. This performance regression was particularly noticeable when
3879 doing lots of text rendering and when using a high-latency connection
3880 to the X server, (such as a remote X server over an ssh
3881 connection). The slowdown was identified and fixed in 1.2.2.
3883 report: https://bugs.freedesktop.org/show_bug.cgi?id=7514
3884 fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=b7191885c88068dad57d68ced69a752d1162b12c
3886 PDF: Eliminate dependency on FreeType library dependency (Adrian Johnson)
3887 -------------------------------------------------------------------------
3888 The cairo 1.2 series adds a supported pdf backend to cairo. In cairo
3889 1.2.0 this backend required the freetype library, which was an
3890 undesirable dependency on systems such as win32, (cairo is designed to
3891 always prefer the "native" font system). As of cairo 1.2.2 the
3892 freetype library is not required to use the pdf backend on the win32
3895 report: https://bugs.freedesktop.org/show_bug.cgi?id=7538
3896 fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=a0989f427be87c60415963dd6822b3c5c3781691
3898 PDF: Fix broken output on amd64 (Adrian Johnson)
3899 ------------------------------------------------
3900 report: http://bugzilla.gnome.org/show_bug.cgi?id=349826
3901 fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=f4b12e497b7ac282b2f6831b8fb68deebc412e60
3903 PS: Fix broken output for truetype fonts > 64k (Adrian Johnson)
3904 ---------------------------------------------------------------
3905 fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=067d97eb1793a6b0d0dddfbd0b54117844511a94
3907 PDF: Fix so that dashing doesn't get stuck on (Kent Worsnop)
3908 ------------------------------------------------------------
3909 Kent notices that with the PDF backend in cairo 1.2.0 as soon as a
3910 stroke was performed with dashing, all subsequent strokes would also
3911 be dashed. There was no way to turn dashing off again.
3913 fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=778c4730a86296bf0a71080cf7008d7291792256
3915 Fix memory leaks in failure paths in gradient creation (Alfred Peng)
3916 --------------------------------------------------------------------
3917 fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=db06681b487873788b51a6766894fc619eb8d8f2
3919 Fix memory leak in _cairo_surface_show_glyphs (Chris Wilson)
3920 ------------------------------------------------------------
3921 report: https://bugs.freedesktop.org/show_bug.cgi?id=7766
3922 fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=e2fddcccb43d06486d3680a19cfdd5a54963fcbd
3924 Solaris: Add definition of cairo_private for some Sun compilers (Alfred Peng)
3925 -----------------------------------------------------------------------------
3926 report: https://bugzilla.mozilla.org/show_bug.cgi?id=341874
3927 fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=04757a3aa8deeff3265719ebe01b021638990ec6
3929 Solaris: Change version number of Sun's Xorg server with buggy repeat (Brian Cameron)
3930 -------------------------------------------------------------------------------------
3931 report: https://bugs.freedesktop.org/show_bug.cgi?id=7483
3932 fix: http://gitweb.freedesktop.org/?p=cairo;a=commit;h=e0ad1aa995bcec4246c0b8ab0d5a5a79871ce235
3934 Various memory leak fixes
3935 -------------------------
3936 Fix memory leak in _cairo_surface_show_glyphs (bug 7766)
3937 Fix file handle leak in failure path (bug 7616)
3938 Fix some memory leaks in the test cases.
3939 Fix some memory leaks in font subsetting code used in print backends.
3941 Documentation improvements (Behdad Esfahbod)
3942 --------------------------------------------
3943 Added new documentation for several functions (cairo_show_page,
3944 cairo_copy_page, cairo_in_stroke, cairo_in_fill).
3946 Fixed some syntax errors that were preventing some existing
3947 documentation from being published.
3949 Fixed several minor typographical errors.
3951 Added an index for new symbols in 1.2.
3953 Release 1.2.0 (2006-06-27 Carl Worth <cworth@cworth.org>)
3954 =========================================================
3955 This is the culmination of the work that has gone on within the 1.1
3958 There has been one API addition since the cairo 1.1.10 snapshot:
3960 cairo_xlib_surface_get_width
3961 cairo_xlib_surface_get_height
3963 There's also a new feature without any API change:
3965 Dots can now be drawn by using CAIRO_LINE_CAP_ROUND with
3966 degenerate sub-paths, (cairo_move_to() followed by either
3967 cairo_close_path() or a cairo_line_to() to the same location).
3969 And at least the following bugs have been fixed:
3971 6759 fontconfig option AntiAlias doesn't work in cairo 1.1.2
3972 6955 Some characters aren't displayed when using xlib (cache u...
3973 7268 positive device_offset values don't work as source
3974 * PDF emit_glyph function needs to support bitmapped glyphs
3975 * PS emit_glyph function needs to support bitmapped glyphs
3976 * SVG emit_glyph function needs to support bitmapped glyphs
3977 * PDF: minefield page one is falling back unnecessarily
3978 * PS/PDF: Fix broken placement for vertical glyphs
3979 * PS: Fix to not draw BUTT-capped zero-length dash segments
3980 * Do device offset before float->fixed conversion
3981 http://bugzilla.gnome.org/show_bug.cgi?id=332266
3982 * PS: Fix source surfaces with transformations
3983 * PS: Fix to not draw BUTT-capped degnerate sub-paths
3984 * PS: Don't walk off end of array when printing "~>"
3985 * Fix some memory leaks in the test suite rig
3986 * SVG: Fix memory leak when using cairo_mask
3987 * Fix EXTEND_REFLECT and EXTEND_PAD to not crash (though these are
3988 still not yet fully implemented for surface patterns).
3990 This has been a tremendous effort by everyone, and I'm proud to have
3991 been a part of it. Congratulations to all contributors to cairo!
3993 Snapshot 1.1.10 (2006-06-16 Carl Worth <cworth@cworth.org>)
3994 ===========================================================
3995 This is the fifth in a series of snapshots working toward the 1.2
3998 The primary motivation for this snapshot is to fix a long-standing bug
3999 that had long been silent, but as of the 1.1.8 snapshot started
4000 causing crashes when run against 16-bit depth X servers, (often Xvnc
4001 or Xnest). The fix for this adds a new CAIRO_FORMAT_RGB16_565 to the
4004 This snapshot also includes a rewrite of cairo's SVG backend to
4005 eliminate the dependency on libxml2. With this in place, cairo 1.2
4006 will not depend on any libraries that cairo 1.0 did not.
4008 As usual, there are also a few fixes for minor bugs.
4010 Snapshot 1.1.8 (2006-06-14 Carl Worth <cworth@cworth.org>)
4011 ==========================================================
4012 This is the fourth in a series of snapshots working toward the 1.2
4013 release of cairo. At this point, all major features of the 1.2 release
4014 are in place, leaving just a few bug fixes left.
4016 In particular, there well be no additional API changes between this
4017 1.1.8 snapshot and the 1.2 release.
4019 The announcement for 1.1.6 mentioned several API changes being
4020 considered. Only one of these changes was actually implemented
4021 (set_dpi -> fallback_resolution). This change does introduce one
4022 source-level incompatibility with respect to previous 1.1.x snapshots,
4023 so see below for details.
4025 Here is an abbreviated summary of changes since the 1.1.6 snapshot:
4029 According to the plan mentioned in the 1.1.6 notes, one source-level
4030 incompatible change has been implemented. The following three
4031 functions have been removed from cairo's API:
4033 cairo_pdf_surface_set_dpi
4034 cairo_ps_surface_set_dpi
4035 cairo_svg_surface_set_dpi
4037 and in their place the following function has been added:
4039 cairo_surface_set_fallback_resolution
4041 The signature and semantics of the function remains the same, so it is
4042 a simple matter of changing the name of the function when calling
4043 it. As a transition mechanism, this snapshot will (on many systems)
4044 build to include the old symbols so that code previously compiled will
4045 still run. However, all source code using the old names must be
4046 updated before it will compile. And the upcoming 1.2 release is not
4047 anticipated to include the old symbols.
4049 Finally, it should be pointed out that the old symbols never existed
4050 in the supported API of any stable release of cairo. (In the stable
4051 1.0 releases the PDF, PS, and SVG backends were advertised as
4052 experimental and unstable.)
4054 And, as always, cairo continues to maintain source and binary
4055 compatibility between major releases. So applications compiled against
4056 supported backends in a stable release of cairo (1.0.4 say) will
4057 continue to compile and run without modification against new major
4058 releases (1.2.0 say) without modification.
4062 The following new functions have been added to cairo's API:
4064 cairo_surface_get_content
4065 cairo_debug_reset_static_data
4066 cairo_image_surface_get_data
4067 cairo_image_surface_get_format
4068 cairo_image_surface_get_stride
4069 cairo_win32_font_face_create_for_hfont
4071 New, backend-specific pkg-config files
4072 --------------------------------------
4073 In addition to the original cairo.pc file, cairo will also now install
4074 a pkg-config files for each configured backend, (for example
4075 cairo-pdf.pc, cairo-svg.pc, cairo-xlib.pc, cairo-win32.pc, etc.) this
4076 also includes optional font backends (such as cairo-ft.pc) and the
4077 optional png functionality (cairo-png.pc).
4079 These new pkg-config files should be very convenient for allowing
4080 cairo-using code to easily check for the existing of optional
4081 functionality in cairo without having to write complex rules to grub
4082 through cairo header files or the compiled library looking for
4085 Printing backend (PS, PDF, and SVG)
4086 -----------------------------------
4087 Improving the quality of the "printing" backends has been a priority
4088 of the development between cairo 1.1.6 and cairo 1.1.8.
4090 The big improvement here is in the area of text output. Previously, at
4091 best, text was output as paths without taking advantage of any font
4092 support available in the output file format.
4094 Now, at the minimum text paths will be shared by using type3 fonts
4095 (for PS and PDF---and similarly, defs for SVG). Also, if possible,
4096 type3 and truetype fonts will be embedded in PostScript and PDF
4097 output. There are still some known bugs with this, (for example,
4098 selecting text in a cairo-generated PDF file with an embedded truetype
4099 font does not work). So there will be some more changes in this area
4100 before cairo 1.2, but do try test this feature out as it exists so
4103 Many thanks to Kristian Høgsberg for the truetype and type1 font
4108 Performance improvements by preferring GDI over pixman rendering when possible.
4109 Fixes for text rendering.
4113 Fix potentially big performance bug by making xlib's create_similar
4114 try harder to create a pixmap of a depth matching that of the screen.
4118 Among various other fixes, the following bugs listed in bugzilla have
4121 Bug 2488: Patch to fix pixman samping location bug (#2488).
4122 https://bugs.freedesktop.org/show_bug.cgi?id=2488
4124 Bug 4196: undef MIN an MAX before defining to avoid duplicate definition
4125 https://bugs.freedesktop.org/show_bug.cgi?id=4196
4127 Bug 4723: configure.in: Fix m4 quoting when examining pkg-config version
4128 https://bugs.freedesktop.org/show_bug.cgi?id=4723
4130 Bug 4882: Flag Sun's X server has having buggy_repeat.
4131 https://bugs.freedesktop.org/show_bug.cgi?id=4882
4133 Bug 5306: test/pdf2png: Add missing include of stdio.h
4134 https://bugs.freedesktop.org/show_bug.cgi?id=5306
4136 Bug 7075: Fix make clean to remove cairo.def
4137 https://bugs.freedesktop.org/show_bug.cgi?id=7075
4139 (Many thanks to Behdad Esfahbod for helping us track down and fix many
4142 Snapshot 1.1.6 (2006-05-04 Carl Worth <cworth@cworth.org>)
4143 ==========================================================
4144 This is the third in a series of snapshots working toward the imminent
4145 1.2 release of cairo. For a list of items still needing work on the
4146 cairo 1.2 roadmap, please see:
4148 http://cairographics.org/ROADMAP
4150 As can be seen in that list, there are no longer any API additions
4151 left on the roadmap. Instead, there is a feature (PDF type 3 fonts) a
4152 performance optimization (X server gradients) and a list of bug
4153 fixes. This gives us a fair amount of freedom to cut the 1.2 release
4154 at almost any point by deciding to defer remaining bug fixes to
4155 subsequent maintenance releases such as 1.2.2 and 1.2.4.
4157 Before we will do that, we must first be wiling to commit to all the
4158 new API additions. As a heads-up, there are a couple of potential API
4159 changes being considered. (Note that these are changes to new API
4160 introduced during 1.1 so these will not introduce API
4161 incompatibilities compared to the stable 1.0 series). The changes
4162 being considered are:
4164 cairo_get_group_target: may acquire x and y offset return
4165 parameters. May also be eliminated in favor of
4166 cairo_get_target assuming its role
4168 cairo_pdf_surface_set_dpi:
4169 cairo_ps_surface_set_dpi:
4170 cairo_svg_surface_set_dpi: These functions may be removed in favor
4171 of a new cairo_surface_set_fallback_resolution
4173 Additionally there is the possibility of a slight change in the
4174 semantics of cairo_set_line_width. We believe the current behavior of the sequence:
4176 cairo_set_line_width; ... change CTM ...; cairo_stroke;
4178 is buggy. It is currently behaving the same as:
4180 ... change CTM ...; cairo_set_line_width; cairo_stroke;
4182 We are considering fixing this bug before 1.2 with the hope that
4183 nobody is already relying on the buggy behavior described here. Do
4184 shout if you suspect you might be in that position.
4186 The items included in this snapshot (since the 1.1.4 snapshot) are
4191 The long-awaited group-rendering support is now available with the
4192 following function calls:
4195 cairo_push_group_with_content
4197 cairo_pop_group_to_source
4198 cairo_get_group_target
4200 This API provides a much more convenient mechanism for doing rendering
4201 to an intermediate surface without the need to manually create a
4202 temporary cairo_surface_t and a temporary cairo_t and clean them up
4205 Add the following missing get function to complement
4206 cairo_surface_set_device_offset:
4208 cairo_surface_get_device_offset
4210 PDF backend (API addition)
4211 --------------------------
4212 The PDF backend now provides for per-page size changes, (similar to
4213 what the PostScript backend got in the 1.1.4 snapshot). The new API
4216 cairo_pdf_surface_set_size
4218 Xlib backend (API additions)
4219 ----------------------------
4220 The following functions have been added to allow the extraction of
4223 cairo_xlib_surface_get_display
4224 cairo_xlib_surface_get_drawable
4225 cairo_xlib_surface_get_screen
4226 cairo_xlib_surface_get_visual
4227 cairo_xlib_surface_get_depth
4229 XCB backend (experimental)
4230 --------------------------
4231 Update backend so that it now compiles with the recent XCB 0.9 release.
4233 Bug fixes and memory leak cleanup
4234 ---------------------------------
4235 Various little things, nothing too significant though.
4237 Snapshot 1.1.4 (2006-05-03 Carl Worth <cworth@cworth.org>)
4238 ==========================================================
4239 This is the second in a series of snapshots working toward the
4240 upcoming 1.2 release of cairo. For a list of items still needing work
4241 on the cairo 1.2 roadmap, please see:
4243 http://cairographics.org/ROADMAP
4245 The items included in this snapshot (since the 1.1.2 snapshot) are
4248 PostScript backend: new printing-oriented API
4249 ---------------------------------------------
4250 We anticipate that with cairo 1.2, toolkits will begin to use cairo
4251 for printing on systems that use PostScript as the spool format. To
4252 support this use case, we have added 4 new function calls that are
4253 specific to the PostScript backend:
4255 cairo_ps_surface_set_size
4256 cairo_ps_surface_dsc_comment
4257 cairo_ps_surface_dsc_begin_setup
4258 cairo_ps_surface_dsc_begin_page_setup
4260 These functions allow variation of the page size/orientation from one
4261 page to the next in the PostScript output. They also allow the toolkit
4262 to provide per-document and per-page printer control options in a
4263 device-independent way, (for example, by using PPD options and
4264 emitting them as DSC comments into the PostScript output). This should
4265 allow toolkits to provide very fine-grained control of many options
4266 available in printers, (media size, media type, tray selection, etc.).
4268 SVG backend: builds by default, version control
4269 -----------------------------------------------
4270 The SVG backend continues to see major improvements. It is expected
4271 that the SVG backend will be a supported backend in the 1.2
4272 release. This backend will now be built by default if its dependencies
4273 (freetype and libxml2) are met.
4275 Additionally, the SVG backend now has flexibility with regard to what
4276 version of SVG it targets. It will target SVG 1.1 by default, which
4277 will require image fallbacks for some of the "fancier" cairo
4278 compositing operators. Or with the following new function calls:
4280 cairo_svg_surface_restrict_to_version
4281 cairo_svg_get_versions
4282 cairo_svg_version_to_string
4284 it can be made to target SVG 1.2 in which there is native support for
4285 these compositing operators.
4289 At least the following bugs have been fixed since the 1.1.2 snapshot:
4291 crash at XRenderAddGlyphs
4292 https://bugs.freedesktop.org/show_bug.cgi?id=4705
4294 Can't build cairo-1.1.2 on opensolaris due to " void function cannot return value"
4295 https://bugs.freedesktop.org/show_bug.cgi?id=6792
4297 Missing out-of-memory check at gfx/cairo/cairo/src/cairo-atsui-font.c:185
4298 https://bugzilla.mozilla.org/show_bug.cgi?id=336129
4300 A couple of memory leaks.
4302 Snapshot 1.1.2 (2006-04-25 Carl Worth <cworth@cworth.org>)
4303 ==========================================================
4304 This is the first in a series of snapshots working toward the upcoming
4305 1.2 release of cairo. (Subsequent snapshot will use successive even
4306 numbers for the third digit, 1.1.4, 1.1.6, etc.) This snapshot is
4307 backwards-compatible with the 1.0 series---it makes a few API
4308 additions but does not remove any API.
4310 PostScript and PDF backends are no longer "experimental"
4311 --------------------------------------------------------
4312 The major theme of the 1.2 release is improved PostScript and PDF
4313 backends for cairo. Unlike the 1.0 series, in the 1.2 series these
4314 backends will not be marked as experimental and will be enabled by
4315 default. We encourage people to test this snapshot and the PS/PDF
4316 backends in particular as much as possible.
4318 The PostScript and PDF output is not yet ideal.
4320 * One major problem with the PostScript output is that image
4321 fallbacks are used more often than strictly necessary, and the
4322 image fallbacks are at a lower resolution than desired, (the
4323 cairo_ps_surface_set_dpi call is ignored).
4325 * The major drawback of the current PDF backend implementation is
4326 its text support. Every glyph is represented by a filled path in
4327 the PDF file. The causes file sizes to be much larger and
4328 rendering to be much slower than desired.
4330 It is anticipated that both of these shortcomings will see some
4331 improvements before the final 1.2 release.
4333 In spite of those shortcomings, we hope that the PS and PDF backends
4334 will yield faithful results for pretty much any cairo operations you
4335 can throw at them. Please let us know if you are getting obviously
4336 "different" results from the PS/PDF backends than from the image or
4339 Other new experimental backends
4340 -------------------------------
4341 This snapshot includes three new backends that did not exist in the
4350 These are all currently marked "experimental" and are disabled by
4351 default. But the SVG backend in particular has seen a lot of recent
4352 development and is very close to passing the entire cairo test
4353 suite. It is possible that this backend will become a fully supported
4354 backend by the time of the cairo 1.2 release.
4356 Public API additions
4357 --------------------
4358 There have been a few new API functions added to cairo, including:
4360 New get_type functions for querying sub-types of object:
4362 cairo_surface_get_type
4363 cairo_pattern_get_type
4364 cairo_font_face_get_type
4365 cairo_scaled_font_get_type
4367 More convenience in working with cairo_scaled_font_t with new getter
4370 cairo_scaled_font_get_font_face
4371 cairo_scaled_font_get_font_matrix
4372 cairo_scaled_font_get_ctm
4373 cairo_scaled_font_get_font_options
4375 As well as a convenience function for setting a scaled font into a
4378 cairo_set_scaled_font
4380 and a function to allow text extents to be queried directly from a
4381 scaled font, (without requiring a cairo_surface_t or a cairo_t):
4383 cairo_scaled_font_text_extents
4385 These new scaled font functions were motivated by the needs of the
4388 Finally, a new path-construction function was added which clears the
4389 current point in preparation for a new sub path. This makes cairo_arc
4390 easier to use in some situations:
4394 Before the 1.2 release is final we do still plan a few more API
4395 additions specifically motivated by the needs of Mozilla/Firefox.
4397 Optimizations and bug fixes
4398 ---------------------------
4399 Shortly after the 1.0 maintenance series branched off the mainline
4400 there was a major rework of the cairo font internals. This should
4401 provide some good performance benefits, but it's also another area
4402 people should look at closely for potential regressions.
4404 There has not yet been any widespread, systematic optimization of
4405 cairo, but various performance improvements have been made, (and some
4406 of them are fairly significant). So if some things seem faster than
4407 1.0 then things are good. If there are any performance regressions
4408 compared to 1.0 then there is a real problem and we would like to hear
4411 There has been a huge number of bug fixes---too many to mention in
4412 detail. Again, things should be better, and never worse compared to
4413 1.0. Please let us know if your testing shows otherwise.
4415 Release 1.0.2 (2005-10-03 Carl Worth <cworth@cworth.org>)
4416 =========================================================
4417 For each bug number XXXX below, see:
4419 https://bugs.freedesktop.org/show_bug.cgi?id=XXXX
4425 * 4408 - Add support for dashing of stroked curves
4428 * 4409 - Fix dashing so that each dash is capped on both ends
4431 * 4414 - Prevent SIGILL failures (proper use of -mmmx and -msse flags)
4432 (Sebastien Bacher, Billy Biggs)
4434 * 4299 - Fix crashes with text display in multi-threaded program
4435 (Alexey Shabalin, Carl Worth)
4437 * 4401 - Do not use sincos function since it is buggy on some platforms)
4438 (Tim Mooney, Carl Worth)
4440 * 4245 - Fix several bugs in the test suite exposed by amd64 systems
4441 (Seemant Kulleen, Carl Worth)
4443 * 4321 - Add missing byteswapping on GetImage/PutImage
4444 (Sjoerd Simons, Owen Taylor)
4446 * 4220 - Make the check for rectangular trapezoids simpler and more accurate
4447 (Richard Stellingwerff, Owen Taylor)
4449 * 4260 - Add missing channel-order swapping for antialised fonts
4450 (Barbie LeVile, Owen Taylor)
4452 * 4283 - Fix compilation failure with aggressive inlining (gcc -O3)
4453 (Marco Manfredini, Owen Taylor)
4455 * 4208 - Fix some warnings from sparse
4456 (Kjartan Maraas, Billy Biggs)
4458 * 4269 - Fix to not crash when compiled with -fomit-frame-pointer
4459 (Ronald Wahl, Owen Taylor)
4461 * 4263 - Improve performance for vertical gradients
4462 (Richard Stellingwerff, Owen Taylor)
4465 * 4298 - Accomodate gentoo and Mandriva versions in X server vendor string check
4466 (Billy Biggs, Frederic Crozat, Owen Taylor)
4468 win32-specific fixes
4469 --------------------
4470 * 4599 - Fix "missing wedges" on some stroked paths (win32)
4471 (Tim Rowley, Jonathan Watt, Bertram Felgenhauer, Carl Worth, Keith Packard)
4473 * 4612 - Fix disappearing text if first character out of surface (win32)
4476 * 4602 - Fix shutdown of cairo from failing intermediate, size-0 bitmaps (win32)
4477 Aka. the "white rectangles" bug from mozilla-svg testing
4480 * Various portability improvements for win32
4481 (Hans Breuer, Owen Taylor, Carl Worth)
4483 * 4593 - Fix font sizes to match user expectations (win32)
4484 (Tor Lillqvist, Owen Taylor)
4486 * 3927 - Fix to report metrics of size 0 for glyph-not-available (win32)
4487 (Hans Breuer, Owen Taylor, Tor Lillqvist)
4489 * Add locking primitives for win32
4494 * Fix crash from size-0 pixmap due to empty clip region (xlib)
4495 (Radek Doulík, Carl Worth)
4497 Release 1.0.0 (2005-08-24 Carl Worth <cworth@cworth.org>)
4498 =========================================================
4499 Experimental backends
4500 ---------------------
4501 * The Glitz, PS, PDF, Quartz, and XCB backends have been declared
4502 experimental, and are not part of the API guarantees that accompany
4503 this release. They are not built by default, even when the required
4504 libraries are available, and must be enabled explicitly with
4505 --enable-ps, --enable-pdf, --enable-quartz or --enable-xcb.
4507 It is very painful for us to be pushing out a major release without
4508 these backends enabled. There has been a tremendous amount of work
4509 put into each one and all are quite functional to some
4510 extent. However, each also has some limitations. And none of these
4511 backends have been tested to the level of completeness and
4512 correctness that we expect from cairo backends.
4514 We do encourage people to experiment with these backends and report
4515 success, failure, or means of improving them.
4519 * Prior to 0.9.0 the SOURCE, CLEAR and a number of other operators
4520 behaved in an inconsistent and buggy fashion and could affect areas
4521 outside the clip mask. In 0.9.0, these six "unbounded" operators
4522 were fixed to consistently clear areas outside the shape but within
4523 the clip mask. This is useful behavior for an operator such as IN,
4524 but not what was expected for SOURCE and CLEAR. So, in this release
4525 the behavior of SOURCE and CLEAR has been changed again. They now
4526 affect areas only within both the source and shape. We can write
4527 the new operators as:
4529 SOURCE: dest' = (mask IN clip) ? source : dest
4530 CLEAR: dest' = (mask IN clip) ? 0 : dest
4532 Behavior and API changes
4533 ------------------------
4534 * Setting the filter on a gradient pattern would change the
4535 interpolation between color stops away from the normal linear
4536 interpolation. This dubious behavior has been removed.
4538 * The CAIRO_CONTENT_VALID() and CAIRO_FORMAT_VALID() macros --
4539 implementation details that leaked into cairo.h -- have been moved
4540 into an internal header.
4542 * The cairo_show_text function now advances the current point
4543 according to the total advance values of the string.
4547 * cairo_set_dash can now detect error and can set
4548 CAIRO_STATUS_INVALID_DASH.
4552 * When compiled against recent versions of fontconfig and FreeType,
4553 artificial bold fonts can now be turned on from fonts.conf using
4554 the FC_EMBOLDEN fontconfig key.
4558 * The compositing code from the 'xserver' code tree has now been
4559 completely merged into libpixman. This includes MMX optimization of
4562 * The image transformation code in libpixman has been improved and
4563 now performs significantly faster.
4567 * Several crashes related to corruption in the font caches have been
4570 * All test cases now match pixel-for-pixel on x86 and PPC; this
4571 required fixing bugs in the compositing, stroking, and pattern
4574 * Negative dash offsets have been fixed to work correctly.
4576 * The stroking of paths with mutiple subpaths has now been fixed to
4577 apply caps to all subpaths rather than just the last one.
4579 * Many build fixes for better portability on various systems.
4581 * Lots of other bug fixes, but we're too tired to describe them in
4584 Release 0.9.2 (2005-08-13 Carl Worth <cworth@cworth.org>)
4585 =========================================================
4588 * You will notice that this release jumped from 0.9.0 to 0.9.2. We've
4589 decided to use an odd micro version number (eg. 0.9.1) to indicate
4590 in-progress development between releases. As soon as 0.9.2 is
4591 tagged, the version will be incremented in CVS to 0.9.3 where it
4592 will stay until just before 0.9.4 is built, uploaded, and tagged.
4594 So, even-micro == a released version, odd-micro == something in-between.
4596 Libpixman dependency dropped
4597 ----------------------------
4598 * As of this release, the dependency on an external libpixman has
4599 been dropped. Instead, the code from libpixman needed for cairo has
4600 been incorporated into the cairo source tree. The motivation for
4601 this change is that while cairo's API is stable and ready to be
4602 maintained after the 1.0 release, libpixman's API is not, so we do
4603 not want to expose it at this time.
4605 Also, the incorporation of libpixman into cairo also renames all
4606 previously-public libpixman symbols in order to avoid any conflict
4607 with a future release of libpixman
4611 * Macros and functions have been added so that the version of cairo
4612 can be queried at either compile-time or at run-time. The version
4613 is made available as both a human-readable string and as a single
4616 CAIRO_VERSION_STRING eg. "0.9.2"
4617 CAIRO_VERSION eg. 000902
4620 cairo_version_string (void); /* eg. "0.9.2" */
4623 cairo_version (void); /* eg. 000902 */
4625 A macro is provided to convert a three-part component version into
4626 the encoded single-integer form:
4628 CAIRO_VERSION_ENCODE(X,Y,Z)
4630 For example, the CAIRO_VERSION value of 000902 is obtained as
4631 CAIRO_VERSION_ENCODE(0,9,2). The intent is to make version
4632 comparisons easy, either at compile-time:
4634 #if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(0,9,2)
4640 if (cairo_version() >= CAIRO_VERSION_ENCODE(0,9,2)) { /* ... */ }
4644 * This release adds pthread-based locking (when available) to make
4645 the caches used by cairo safe for threaded programs. Some may
4646 remember a failed experiment with this locking between the 0.5.1
4647 and 0.5.2 snapshots, (where even single-threaded programs that
4648 linked with -lpthread would deadlock). We believe that that problem
4649 has been fixed, so we are looking forward to testing and reports
4650 from users with threaded applications.
4654 * The XCB and Quartz backends failed to compiled in the 0.9.0 release
4655 due to minor syntax errors. These have now been fixed.
4657 * Various crashes in glitz and pixman due to size 0 glyphs have been
4660 Release 0.9.0 (2005-08-08 Carl Worth <cworth@cworth.org>)
4661 =========================================================
4664 * In all prior snapshots, the libtool library versioning was set to
4665 1:0:0. As this release is intended to mark the beginning of
4666 backwards-compatible releases, the versioning has been incremented
4667 to 2:0:0. You will notice that the numeric extension on the
4668 installed library filename will change similarly.
4670 This change will also require all cairo-using applications to be
4671 recompiled. We recognize that this may cause some frustration since
4672 this release is backwards-compatible with 0.6.0 and in that sense
4673 "shouldn't" require re-compilation. However, since all historical
4674 snapshots have used the same 1:0:0 version in spite of incompatible
4675 API changes between them, it was essential that the upcoming 1.0
4676 release series have distinct library versioning.
4678 All future releases will use the library versioning to properly
4679 indicate compatibility between releases. So, any application
4680 re-compiled now to work with the 0.9.0 will not need to be
4681 recompiled when a compatible 1.0 release of cairo is made in the
4686 * Add new function calls to set/get the current antialiasing mode in
4692 This call accepts the same modes recently added for font options
4693 (NONE or GRAY) but affects the rendering of geometry other than
4694 text. The intent of this call is to enable more precise control of
4695 which pixels are affected by each operation, for example to allow
4696 for full-scene antialiasing for seam-free rendering. It is not
4697 expected that non-antialiased rendering will perform better than
4698 anti-aliased rendering.
4700 * Three new functions were added to provide support for mixed cairo-
4701 and non-cairo drawing to the same surface:
4703 cairo_surface_mark_dirty
4704 cairo_surface_mark_dirty_rectangle
4707 * The return type of the several "reference" functions was change,
4708 (API compatibly), from void to the same type as the argument. The
4709 affected functions are:
4711 cairo_font_face_reference
4712 cairo_scaled_font_reference
4713 cairo_pattern_reference
4714 cairo_surface_reference
4717 This allows a convenient way to assign and reference in a single
4722 * The behavior of cairo_set_source with a pattern with a non-identity
4723 matrix was previously not well-defined. The new behavior is as
4726 The pattern's transformation matrix will be locked to the
4727 user space in effect at the time of cairo_set_source(). This means
4728 that further modifications of the CTM will not affect the source
4733 * Some portability improvements, (eg. workaround for missing stdint.h).
4737 * Updated to allow compilation with older versions of freetype.
4741 * Fix the unbounded operators to actually produce a correct result,
4742 (previously the results were artificially restricted to the
4743 bounding box of whatever shape was being drawn rather than
4744 extending out infinitely). The fixed operators are:
4746 CAIRO_OPERATOR_CLEAR
4747 CAIRO_OPERATOR_SOURCE
4750 CAIRO_OPERATOR_DEST_IN
4751 CAIRO_OPERATOR_DEST_ATOP
4753 * Fix cairo_mask and cairo_mask_surface to transform the mask by the
4754 current transformation matrix (CTM).
4756 * Fix cairo_set_source to lock the CTM used to transform the pattern.
4758 * Workaround for X server Render bug involving repeating patterns
4759 with a general transformation matrix.
4761 * cairo_get_font_face fixed to return a "nil" font face object rather
4764 * cairo_set_font_face fixed to not crash if given a NULL font face,
4765 (which is the documented interface for restoring the default font
4768 * Fix xlib glyphset caching to not try to free a NULL glyph.
4770 Snapshot 0.6.0 (2005-07-28 Carl Worth <cworth@cworth.org>)
4771 ==========================================================
4774 * The prototypes of the following functions have changed:
4776 cairo_xlib_surface_create_with_xrender_format
4777 cairo_xlib_surface_create_for_bitmap
4779 A Screen* parameter has been added to each. This allows the cairo
4780 xlib backend to work correctly with multi-head X servers.
4782 * The following function has been modified:
4784 cairo_scaled_font_create
4786 to accept a cairo_font_options_t*. See below fore more details.
4788 * All opaque, reference-counted cairo objects have now been moved to a
4789 standard error-handling scheme. The new objects to receive this
4790 treatment are cairo_font_face_t, cairo_scaled_font_t, and
4791 cairo_surface_t. (Previous snapshots already provided this scheme
4792 for cairo_t, cairo_path_t, and cairo_pattern_t.)
4794 This changes two functions to have a return type of void rather than
4797 cairo_scaled_font_extent
4798 cairo_surface_finish
4800 And significantly, none of the create functions for any of the
4801 objects listed above will return NULL. The pointer returned from any
4802 function will now always be a valid pointer and should always be
4803 passed to the corresponding destroy function when finished
4805 The simplest strategy for porting code is to switch from:
4807 object = cairo_<object>_create ();
4813 cairo_<object>_destroy (object);
4817 object = cairo_<object>_create ();
4818 if (cairo_<object>_status (object))
4823 cairo_<object>_destroy (object);
4825 But significantly, it is not required to check for an error status
4826 before the "act on object" portions of the code above. All
4827 operations on an object with an error status are, by definition,
4828 no-ops without side effect. So new code might be written in an
4829 easier-to-read style of:
4831 object = cairo_<object>_create ();
4835 cairo_<object>_destroy (object);
4837 with cairo_<object>_status checks placed only at strategic
4838 locations. For example, passing an error object to another object,
4839 (eg. cairo_set_source with an in-error pattern), will propagate the
4840 error to the subsequent object (eg. the cairo_t). This means that
4841 error checking can often be deferred even beyond the destruction of
4846 * New functions for checking the status of objects that have been
4847 switched to the common error-handling scheme:
4849 cairo_font_face_status
4850 cairo_scaled_font_status
4851 cairo_surface_status
4853 * The _cairo_error function which was added in 0.5.1 has now been made
4854 much more useful. In 0.5.1 only errors on cairo_t objects passed
4855 through _cairo_error. Now, an error on any object should pass
4856 through _cairo_error making it much more reliable as a debugging
4857 mechanism for finding when an error first occurs.
4859 * Added new font options support with a myriad of functions:
4861 cairo_font_options_create
4862 cairo_font_options_copy
4863 cairo_font_options_destroy
4865 cairo_font_options_status
4867 cairo_font_options_merge
4868 cairo_font_options_equal
4869 cairo_font_options_hash
4871 cairo_font_options_set_antialias
4872 cairo_font_options_get_antialias
4873 cairo_font_options_set_subpixel_order
4874 cairo_font_options_get_subpixel_order
4875 cairo_font_options_set_hint_style
4876 cairo_font_options_get_hint_style
4877 cairo_font_options_set_hint_metrics
4878 cairo_font_options_get_hint_metrics
4880 cairo_surface_get_font_options
4882 cairo_ft_font_options_substitute
4884 cairo_set_font_options
4885 cairo_get_font_options
4887 This new font options support allows the application to have much
4888 more fine-grained control over how fonts are rendered.
4889 Significantly, it also allows surface backends to have some
4890 influence over the process. For example, the xlib backend now
4891 queries existing Xft properties to set font option defaults.
4895 cairo_xlib_surface_set_drawable
4897 which allows the target drawable for an xlib cairo_surface_t to be
4898 changed to another with the same format, screen, and display. This
4899 is necessary in certain double-buffering techniques.
4903 * Sub-pixel text antialiasing is now supported.
4907 * Fixed assertion failure in cairo_surface_create_similar when
4908 application commits an error by passing a cairo_format_t rather than
4911 * Avoid division by zero in various places (cairo-ft).
4913 * Fix infinite loop when using non-default visuals (cairo-xlib).
4915 * Eliminate segfault in cairo_image_surface_create_from_png_stream.
4917 * Prevent errant sign-extension of masks on 64-bit architectures
4918 (cairo-xlib and cairo-xcb).
4920 * Other miscellaneous fixes.
4922 Snapshot 0.5.2 (2005-07-18 Carl Worth <cworth@cworth.org>)
4923 ==========================================================
4926 * New functions for creating patterns of a single color:
4928 cairo_pattern_create_rgb
4929 cairo_pattern_create_rgba
4931 * Change cairo_surface_create_similar to accept a new type of
4932 cairo_content_t rather than cairo_format_t:
4934 typedef enum _cairo_content {
4935 CAIRO_CONTENT_COLOR = 0x1000,
4936 CAIRO_CONTENT_ALPHA = 0x2000,
4937 CAIRO_CONTENT_COLOR_ALPHA = 0x3000
4940 * Add new CAIRO_FORMAT_VALID and CAIRO_CONTENT_VALID macros.
4942 * Remove unused status value:
4944 CAIRO_STATUS_NO_TARGET_SURFACE
4946 * Add new status values:
4948 CAIRO_STATUS_INVALID_STATUS
4950 * Require libpixman >= 0.1.5 (for necessary bug fixes)
4954 * Fix cairo_surface_write_to_png for RGB24 images.
4956 * Fix broken metrics and rendering for bitmap fonts. Add mostly
4957 useless bitmap glyph transformation.
4959 * Fix glyph caches to not eject entries that might be immediately
4960 needed, (fixing intermittent crashes when rendering text).
4962 * Fix all memory leaks found by running "make check-valgrind".
4964 ATSUI backend changes
4965 ---------------------
4966 * Allow building against < 10.3 SDK.
4968 * Prevent crash on empty strings.
4970 Glitz backend changes
4971 ---------------------
4972 * Require glitz >= 0.4.4.
4974 * Use frame buffer objects instead of pbuffers for accelerated
4977 * Minor improvement to gradient pattern creation.
4979 PostScript backend fixes
4980 ------------------------
4981 * Rewrite of the PS backend to generate more interesting output that
4982 the old big-image implementation.
4986 * Implement glyph path support.
4988 * Fix swap of blue and green values in the fill_rectangles path.
4992 * Add optimization to use XCopyArea rather than XRenderComposite when
4993 transforming only with an integer translation, and using SOURCE
4994 operator or OVER with a source pattern without alpha.
4996 Snapshot 0.5.1 (2005-06-20 Carl Worth <cworth@cworth.org>)
4997 ==========================================================
5000 * Removed cairo_status_string(cairo_t*) and add
5001 cairo_status_to_string(cairo_status_t) in its place. Code using
5002 cairo_status_string can be ported forward as follows:
5006 cairo_status_to_string (cairo_status (cr));
5008 * Removed the BAD_NESTING restriction which means that two different
5009 cairo_t objects can now interleave drawing to the same
5010 cairo_surface_t without causing an error.
5012 * The following functions which previously had a return type of
5013 cairo_status_t now have a return type of void:
5015 cairo_pattern_add_color_stop_rgba
5016 cairo_pattern_set_matrix
5017 cairo_pattern_get_matrix
5018 cairo_pattern_set_extend
5019 cairo_pattern_set_filter
5021 See discussion of cairo_pattern_status below for more details.
5025 * Improved error handling:
5028 cairo_pattern_status (cairo_pattern_t *pattern);
5030 This snapshot expands the status-based error handling scheme from
5031 cairo_t to cairo_path_t and cairo_pattern_t. It also expands the
5032 scheme so that object-creating functions, (cairo_create,
5033 cairo_pattern_create_*, cairo_copy_path_*), are now guaranteed to
5034 not return NULL. Instead, in the case of out-of-memory these
5035 functions will return a static object with
5036 status==CAIRO_STATUS_NO_MEMORY. The status can be checked with the
5037 functions cairo_status and cairo_pattern_status, or by direct
5038 inspection of the new status field in cairo_path_t.
5040 Please note that some objects, including cairo_surface_t and all of
5041 the font-related objects have not been converted to this
5042 error-handling scheme.
5044 * In addition to the above changes, a new private function has been added:
5048 This function can be used to set a breakpoint in a debugger to make
5049 it easier to find programming error in cairo-using code. (Currently,
5050 _cairo_error is called when any error is detected within a cairo_t
5051 context, but is not called for non-cairo_t errors such as for
5052 cairo_path_t and cairo_pattern_t).
5054 * Fixed cairo_path_data_t so that its enum is visible to C++ code, (as
5055 cairo_path_data_type_t).
5057 Performance improvements
5058 ------------------------
5059 * Made a minor performance improvement for clipping, (restrict clip
5060 surface to the new intersected bounds).
5062 * Optimize rendering of a solid source pattern with a pixel-aligned
5063 rectangular path to use backend clipping rather than rasterization
5064 and backend compositing.
5066 * Optimize cairo_paint_with_alpha to defer to cairo_paint when alpha
5071 * Fixed memory leak in cairo_copy_path.
5073 * A build fix for non-srcdir builds.
5077 * New support for path-based clipping.
5079 * Fix for text rotated to angles other than multiples of π/2.
5083 * Fix for text extents.
5087 * Implemented a complex workaround for X server bug[*] related to
5088 Render-based compositing with untransformed, repeating source
5089 pictures. The workaround uses core Xlib when possible for
5090 performance, (ie. with CAIRO_OPERATOR_SOURCE or CAIRO_OPERATOR_OVER
5091 with an opaque source surface), and falls back to the pixman
5092 image-based compositing otherwise.
5094 [*] https://bugs.freedesktop.org/show_bug.cgi?id=3566
5096 * Various bug fixes, particularly in the fallback paths.
5098 Snapshot 0.5.0 (2005-05-17 Carl Worth <cworth@cworth.org>)
5099 ==========================================================
5100 This is a pretty big, and fairly significant snapshot. It represents
5101 between 2 and 3 months of solid work from a lot of people on improving
5102 the API as much as possible. I'd like to express my appreciation and
5103 congratulations to everyone who has worked on the big API Shakeup,
5104 (whether in email battles over names, or fixing my silly bugs).
5106 This snapshot will require some effort on the part of users, since
5107 there are a _lot_ of API changes (ie. no cairo program ever written is
5108 safe --- they're all broken now in at least one way). But, in spite of
5109 that, we do encourage everyone to move their code to this snapshot as
5110 soon as possible. And we're doing everything we can think of to make
5111 the transition as smooth as possible.
5113 The idea behind 0.5 is that we've tried to make every good API change
5114 we could want now, and get them all done with. That is, between now
5115 and the 1.0 release of cairo, we expect very few new API changes,
5116 (though some will certainly sneak in). We will have some significant
5117 additions, but the pain of moving code from cairo 0.4 to cairo 0.5
5118 should be a one time experience, and things should be much smoother as
5119 we continue to move toward cairo 1.0.
5121 And with so many changes coming out for the first time in this 0.5
5122 release, we really do need a lot of people trying this out to make
5123 sure the ideas are solid before we freeze the API in preparation for
5126 OK, enough introduction. Here is a (not-quite-complete) description of
5127 the API removals, changes and additions in this snapshot, (compared to
5132 The following public functions have been removed:
5134 - cairo_set_target_*
5136 This is a big change. See the description of cairo_create in
5137 the API changes section for how to deal with this.
5141 Alpha blending hasn't gone away; there's just a much more
5142 unified rendering model now. Almost all uses of
5143 cairo_set_alpha will be trivially replaced with
5144 cairo_set_source_rgba and a few others will be replaced just
5145 as easily with cairo_paint_with_alpha.
5147 - cairo_show_surface
5149 Another useful function that we realized was muddling up the
5150 rendering model. The replacement is quite easy:
5151 cairo_set_source_surface and cairo_paint.
5153 - cairo_matrix_create
5154 - cairo_matrix_destroy
5156 - cairo_matrix_get_affine
5158 These functions supported an opaque cairo_matrix_t. We now
5159 have an exposed cairo_matrix_t structure, so these can be
5162 - cairo_surface_set_repeat
5163 - cairo_surface_set_matrix
5164 - cairo_surface_set_filter
5166 These properties don't belong on surfaces. If you were using
5167 them, you'll just want to instead use
5168 cairo_pattern_create_for_surface and then set these properties
5173 This was a confusing function and hopefully nobody will miss
5174 it. But if you really don't find cairo_save/restore adequate,
5175 let us know and we have another idea for a potential
5178 And while we're on the subject of removals, we carefully tightened up
5179 the cairo header files so they no longer gratuitously include header
5180 files that are not strictly necessary, (stdio.h, stdint.h, pixman.h,
5181 Xrender.h, etc. and their dependencies). This may lead to some
5182 surprising errors, so keep your eyes open for that.
5186 Here are some of the API changes that have occurred:
5188 ~ cairo_create(void) -> cairo_create(cairo_surface_t *)
5190 This is the big change that breaks every program. The ability
5191 to re-target a cairo_t was not particularly useful, but it did
5192 introduce a lot of muddy semantic questions. To eliminate
5193 that, cairo_create now requires its target surface to be
5194 passed in at creation time. This isn't too hard to cope with
5195 as the typical first operation after cairo_create was often
5196 cairo_set_target_foo. So the order of those two swap and the
5197 application instead has cairo_foo_surface_create, then
5200 ~ cairo_current_* -> cairo_get_*
5202 We had a strange mixture of cairo_get and cairo_current
5203 functions. They've all been standardized on cairo_get, (though
5204 note one is cairo_get_current_point).
5206 ~ CAIRO_OPERATOR_SRC -> CAIRO_OPERATOR_SOURCE
5207 ~ CAIRO_OPERATOR_OVER_REVERSE -> CAIRO_OPERATOR_DEST_OVER
5209 Many of the cairo_operator_t symbolic values were renamed to
5210 reduce the amount of abbreviation. The confusing "OP_REVERSE"
5211 naming was also changed to use "DEST_OP" instead which is
5212 easier to read and has wider acceptance in other
5213 libraries/languages.
5215 ~ cairo_set_pattern -> cairo_set_source
5216 ~ cairo_set_rgb_color -> cairo_set_source_rgb
5218 All of the various functions that changed the source
5219 color/pattern were unified to use cairo_set_source names to
5220 make the relation more clear.
5222 ~ cairo_transform_point -> cairo_user_to_device
5223 ~ cairo_transform_distance -> cairo_user_to_device_distance
5224 ~ cairo_inverse_transform_point -> cairo_device_to_user
5225 ~ cairo_inverse_transform_distance -> cairo_device_to_user_distance
5227 These names just seemed a lot more clear.
5229 ~ cairo_init_clip -> cairo_reset_clip
5230 ~ cairo_concat_matrix -> cairo_transform
5232 More abbreviation elimination
5234 ~ cairo_current_path -> cairo_copy_path
5235 ~ cairo_current_path_flat -> cairo_copy_path_flat
5237 The former mechanism for examining the current path was a
5238 function that required 3 or 4 callbacks. This was more
5239 complexity than warranted in most situations. The new
5240 cairo_copy_path function copies the current path into an
5241 exposed data structure, and the documentation provides a
5242 convenient idiom for navigating the path data.
5248 A generalized version of the painting operators cairo_stroke
5249 and cairo_fill. The cairo_paint call applies the source paint
5250 everywhere within the current clip region. Very useful for
5251 clearing a surface to a solid color, or painting an image,
5252 (see cairo_set_source_surface).
5254 + cairo_paint_with_alpha
5256 Like cairo_paint but applying some alpha to the source,
5257 (making the source paint translucent, eg. to blend an image on
5262 A more generalized version of cairo_paint_with_alpha which
5263 allows a pattern to specify the amount of translucence at each
5264 point rather than using a constant value everywhere.
5266 + cairo_mask_surface
5268 A convenience function on cairo_mask for when the mask pattern
5269 is already contained within a surface.
5271 + cairo_surface_set_user_data
5272 + cairo_surface_get_user_data
5273 + cairo_font_face_set_user_data
5274 + cairo_font_face_get_user_data
5276 Associate arbitrary data with a surface or font face for later
5277 retrieval. Get notified when a surface or font face object is
5280 + cairo_surface_finish
5282 Allows the user to instruct cairo to finish all of its
5283 operations for a given surface. This provides a safe point for
5284 doing things such as flushing and closing files that the
5285 surface may have had open for writing.
5287 + cairo_fill_preserve
5288 + cairo_stroke_preserve
5289 + cairo_clip_preserve
5291 One interesting change in cairo is that the path is no longer
5292 part of the graphics state managed by
5293 cairo_save/restore. This allows functions to construct paths
5294 without interfering with the graphics state. But it prevents
5295 the traditional idiom for fill-and-stroke:
5297 cairo_save; cairo_fill; cairo_restore; cairo_stroke
5299 Instead we know have alternate versions cairo cairo_fill,
5300 cairo_stroke, and cairo_clip that preserve the current path
5301 rather than consuming it. So the idiom now becomes simply:
5303 cairo_fill_preserve; cairo_stroke
5305 + cairo_surface_write_to_png
5306 + cairo_surface_write_to_png_stream
5308 In place of a single PNG backend, now a surface created
5309 through any backend (except PDF currently) can be written out
5312 + cairo_image_surface_create_from_png
5313 + cairo_image_surface_create_from_png_stream
5315 And its just as easy to load a PNG image into a surface as well.
5319 With the new, exposed path data structure, it's now possible
5320 to append bulk path data to the current path, (rather than
5321 issuing a long sequence of cairo_move_to/line_to/curve_to
5324 Xlib and XCB backends
5325 ---------------------
5327 Any cairo_format_t and Colormap arguments have been dropped from
5328 cairo_xlib_surface_create. There are also two new
5329 cairo_xlib|xcb_surface_create functions:
5331 cairo_xlib|xcb_surface_create_for_bitmap
5332 (Particular for creating A1 surfaces)
5333 cairo_xlib|xcb_surface_create_with_xrender_format
5334 (For any other surface types, not described by a Visual*)
5336 All of these surface create functions now accept width and height. In
5337 addition, there are new cairo_xlib|xcb_surface_set_size functions
5338 which must be called each time a window that is underlying a surface
5341 Print backends (PS and PDF)
5342 ---------------------------
5343 The old FILE* based interfaces have been eliminated. In their place we
5344 have two different functions. One accepts a simple const char
5345 *filename. The other is a more general function which accepts a
5346 callback write function and a void* closure. This should allow the
5347 flexibility needed to hook up with various stream object in many
5350 In addition, when specifying the surface size during construction, the
5351 units are now device-space units (ie. points) rather than inches. This
5352 provides consistency with all the other surface types and also makes
5353 it much easier to reason about the size of the surface when drawing to
5354 it with the default identity matrix.
5356 Finally, the DPI parameters, which are only needed to control the
5357 quality of fallbacks, have been made optional. Nothing is required
5358 during surface_create (300 DPI is assumed) and
5359 cairo_ps|pdf_surface_set_dpi can be used to set alternate values if
5364 Owen very graciously listened to feedback after the big font rework he
5365 had done for 0.4, and came up with way to improve it even more. In 0.4
5366 there was a cairo_font_t that was always pre-scaled. Now, there is an
5367 unscaled cairo_font_face_t which is easier to construct, (eg. no
5368 scaling matrix required) and work with, (it can be scaled and
5369 transformed after being set on the graphics state). And the font size
5370 manipulation functions are much easier. You can set an explicit size
5371 and read/modify/write the font matrix with:
5374 cairo_get_font_matrix
5375 cairo_set_font_matrix
5377 (Previously you could only multiply in a scale factor or a matrix.) A
5378 pleasant side effect is that we can (and do) now have a default font
5379 size that is reasonable, as opposed to the old default height of one
5380 device-space unit which was useless until scaled.
5382 Of course, the old pre-scaled font had allowed some performance
5383 benefits when getting many metrics for a font. Those benefits are
5384 still made available through the new cairo_scaled_font_t. And a
5385 cairo_font_face_t can be "promoted" to a cairo_scaled_font_t by
5386 suppling a font_matrix and the desired CTM.
5390 Tim Rowley put in the work to bring the Quartz backend back after it
5391 had been disabled in the 0.4.0 snapshot. He was not able to bring back
5392 the function that allows one to create a cairo_font_t from an ATSUI
5396 cairo_atsui_font_create (ATSUStyle style);
5398 because he didn't have a test case for it. If you care about this
5399 function, please provide a fairly minimal test and we'll try to bring
5400 it back in an upcoming snapshot.
5402 Snapshot 0.4.0 (2005-03-08 Carl Worth <cworth@cworth.org>)
5403 ==========================================================
5406 Owen Taylor has converted cairo's documentation system to gtk-doc and
5407 has begun some long-needed work on the documentation, which can now be
5410 http://cairographics.org/manual/
5414 This is the first snapshot to include a functional win32 backend,
5415 (thanks to Owen Taylor). The interface is as follows:
5417 #include <cairo-win32.h>
5420 cairo_set_target_win32 (cairo_t *cr,
5424 cairo_win32_surface_create (HDC hdc);
5427 cairo_win32_font_create_for_logfontw (LOGFONTW *logfont,
5428 cairo_matrix_t *scale);
5431 cairo_win32_font_select_font (cairo_font_t *font,
5435 cairo_win32_font_done_font (cairo_font_t *font);
5438 cairo_win32_font_get_scale_factor (cairo_font_t *font);
5440 And see also the documentation at:
5442 http://cairographics.org/manual/cairo-Microsoft-Windows-Backend.html
5444 Disabled backend: quartz
5445 ------------------------
5446 Unfortunately, the quartz backend code is currently out of date with
5447 respect to some recent backend interface changes. So, the quartz
5448 backend is disabled in this snapshot.
5450 If the quartz backend is brought up-to-date before the next snapshot,
5451 we would be glad to make a 0.4.1 snapshot that re-enables it, (we do
5452 not expect many more big backend interface changes).
5456 The font system has been revamped, (as Owen Taylor's work with
5457 integrating pango and cairo gave us the first serious usage of the
5460 One fundamental, user-visible change is that the cairo_font_t object
5461 now represents a font that is scaled to a particular device
5462 resolution. Further changes are described below.
5466 Removed cairo_font_set_transform and cairo_font_current_transform.
5468 Added cairo_font_extents and cairo_font_glyph_extents. See
5469 documentation for details:
5471 http://cairographics.org/manual/cairo-cairo-t.html#cairo-font-extents
5475 The cairo_ft_font API changed considerably. Please see the
5476 documentation for details:
5478 http://cairographics.org/manual/cairo-FreeType-Fonts.html
5482 Make the fast-path clipping (pixel-aligned rectangles) faster.
5484 Add optimization for applying a constant alpha to a pattern.
5486 Optimize gradients that are horizontal or vertical in device space.
5488 Xlib: When RENDER is not available, use image surfaces for
5489 intermediate surfaces rather than xlib surfaces.
5491 Backend-specific changes
5492 ------------------------
5495 Major update to glitz backend. The output quality should now be just
5496 as good as the image and xlib backends.
5498 Track changes to glitz 0.4.0.
5502 Various improvements to produce more conformant output.
5506 David Reveman contributed a large re-work of the cairo_pattern_t
5507 implementation, providing cleaner code and more optimization
5510 Backend interface changes
5511 -------------------------
5512 Rework backend interface to accept patterns, not surfaces for source
5515 Remove set_matrix, set_filter, and set_repeat functions.
5517 More sophisticated backend interface for image fallbacks,
5518 ({acquire,release}_{source,dest}_image() and clone_similar).
5522 Only install header files for backends that have been compiled.
5524 Fixed some rounding errors leading to incorrectly placed glyphs.
5526 Many other minor fixes.
5528 Snapshot 0.3.0 (2005-01-21 Carl Worth <cworth@cworth.org>)
5529 ==========================================================
5532 1) The public header files will no longer be directly installed into
5533 the system include directory. They will now be installed in a
5534 subdirectory named "cairo", (eg. in /usr/include/cairo rather than
5537 As always, the easiest way for applications to discover the
5538 location of the header file is to let pkg-config generate the
5539 necessary -I CFLAGS and -L/-l LDFLAGS. For example:
5541 cc `pkg-config --cflags --libs cairo` -o foo foo.c
5543 IMPORTANT: Users with old versions of cairo installed will need to
5544 manually remove cairo.h and cairo-features.h from the
5545 system include directories in order to prevent the old
5546 headers from being used in preference to the new ones.
5548 2) The backend-specific portions of the old monolithic cairo.h have
5549 been split out into individual public header files. The new files
5562 Applications will need to be modified to explicitly include the new
5563 header files where appropriate.
5565 3) There are two new graphics backends in this snapshot, a PDF
5566 backend, and a Quartz backend. There is also one new font backend,
5571 Kristian Høgsberg has contributed a new backend to allow cairo-based
5572 applications to generate PDF output. The interface for creating a PDF
5573 surface is similar to that of the PS backend, as can be seen in
5577 cairo_set_target_pdf (cairo_t *cr,
5579 double width_inches,
5580 double height_inches,
5581 double x_pixels_per_inch,
5582 double y_pixels_per_inch);
5585 cairo_pdf_surface_create (FILE *file,
5586 double width_inches,
5587 double height_inches,
5588 double x_pixels_per_inch,
5589 double y_pixels_per_inch);
5591 Once a PDF surface has been created, applications can draw to it as
5592 any other cairo surface.
5594 This code is still a bit rough around the edges, and does not yet
5595 support clipping, surface patterns, or transparent gradients. Text
5596 only works with TrueType fonts at this point and only black text is
5597 supported. Also, the size of the generated PDF files is currently
5600 Kristian is still actively developing this backend, so watch this
5601 space for future progress.
5605 Calum Robinson has contributed a new backend to allow cairo
5606 applications to target native Mac OS X windows through the Quartz
5607 API. Geoff Norton integrated this backend into the current
5608 configure-based build system, while Calum also provided Xcode build
5609 support in the separate "macosx" module available in CVS.
5611 The new interface, available in cairo-quartz.h, is as follows:
5614 cairo_set_target_quartz_context (cairo_t *cr,
5615 CGContextRef context,
5620 cairo_quartz_surface_create (CGContextRef context,
5624 There is an example program available in CVS in cairo-demo/quartz. It
5625 is a port of Keith Packard's fdclock program originally written for
5626 the xlib backend. A screenshot of this program running on Mac OS X is
5629 http://cairographics.org/~cworth/images/fdclock-quartz.png
5633 This new font backend complements the Quartz backend by allowing
5634 applications to use native font selection on Mac OS X. The interface
5635 is a single new function:
5638 cairo_atsui_font_create (ATSUStyle style);
5642 Prototype for non-existent function "cairo_ft_font_destroy" removed.
5644 Now depends on libpixman 0.1.2 or newer, (0.1.3 is being released
5645 concurrently and has some useful performance improvements).
5647 Default paint color is now opaque black, (was opaque white). Default
5648 background color is transparent (as before).
5650 Renamed "struct cairo" to "struct _cairo" to free up the word "cairo"
5651 from the C++ identifier name space.
5653 Functions returning multiple return values through provided pointers,
5654 (cairo_matrix_get_affine, cairo_current_point, and
5655 cairo_current_color_rgb), will now accept NULL for values the user
5658 CAIRO_HAS_FREETYPE_FONT has now been renamed to CAIRO_HAS_FT_FONT.
5660 Performance improvements
5661 ------------------------
5662 Alexander Larsson provided some fantastic performance improvements
5663 yielding a 10000% performance improvement in his application, (when
5664 also including his performance work in libpixman-0.1.3). These include
5666 * Fixed handling of cache misses.
5668 * Creating intermediate clip surfaces at the minimal size required.
5670 * Eliminating roundtrips when creating intermediate Xlib surfaces.
5674 Major re-work of font metrics system by Keith Packard. Font metrics
5675 should now be much more reliable.
5679 Updated for glitz-0.3.0.
5680 Bug fixes in reference counting.
5684 New tests for cache crashing, rotating text, improper filling of
5685 complex polygons, and leaky rasterization.
5689 Fixed assertion failure when selecting the same font multiple times in
5692 Fixed reference counting so cache_destroy functions work.
5694 Remove unintended copyright statement from files generated with
5697 Fixed to eliminate new warnings from gcc 3.4 and gcc 4.
5699 Snapshot 0.2.0 (2004-10-27 Carl Worth <cworth@cworth.org>)
5700 ===========================================================
5701 New license: LGPL/MPL
5702 ---------------------
5703 The most significant news with this release is that the license of
5704 cairo has changed. It is now dual-licensed under the LGPL and the
5705 MPL. For details see the COPYING file as well as COPYING-LGPL-2.1 and
5708 I express my thanks to everyone involved in the license change process
5709 for their patience and support!
5711 New font and glyph internals
5712 ----------------------------
5713 Graydon Hoare has put a tremendous amount of work into new internals
5714 for handling fonts and glyphs, including caches where appropriate.
5715 This work has no impact on the user-level API, but should result in
5716 great performance improvements for applications using text.
5720 This snapshot of cairo includes a (small) test suite in
5721 cairo/test. The tests can be run with "make check". The test suite was
5722 designed to make it very easy to add new tests, and we hope to see
5723 many contributions here. As you find bugs, please try adding a minimal
5724 test case to the suite, and submit it with the bug report to the
5725 cairo@cairographics.org mailing list. This will make it much easier
5726 for us to track progress in fixing bugs.
5728 New name for glitz backend
5729 --------------------------
5730 The gl backend has now been renamed to the glitz backend. This means
5731 that the following names have changed:
5733 CAIRO_HAS_GL_SURFACE -> CAIRO_HAS_GLITZ_SURFACE
5734 cairo_set_target_gl -> cairo_set_target_glitz
5735 cairo_gl_surface_create -> cairo_glitz_surface_create
5737 This change obviously breaks backwards compatibility for applications
5738 using the old gl backend.
5740 Up-to-date with latest glitz snapshots
5741 --------------------------------------
5742 This snapshot of cairo is now up to date with the latest glitz
5743 snapshot, (currently 0.2.3). We know that the latest cairo and glitz
5744 snapshots have been incompatible for a very long time. We've finally
5745 fixed that now and we're determined to not let that happen again.
5747 Revert some tessellation regression bugs
5748 ----------------------------------------
5749 People that have been seeing some tessellation bugs, (eg. leaked
5750 fills), in the CVS version of cairo may have better luck with this
5751 release. A change since the last snapshot was identified to trigger
5752 some of these bugs and was reverted before making the snapshot. The
5753 behavior should be the same as the previous (0.1.23) snapshot.
5755 Miscellaneous changes
5756 ---------------------
5757 Changed CAIRO_FILTER_DEFAULT to CAIRO_FILTER_BEST to make gradients
5760 Track XCB API change regarding iterators.
5764 Fix calculation of required number of vertices for pen.
5766 Fix to avoid zero-dimensioned pixmaps.
5768 Fix broken sort of pen vertices.
5770 Fix bug when cairo_show_text called with a NULL string.
5774 Fix bug in computing image length with XCB.
5776 Fix infinite loop bug in cairo_arc.
5778 Fix memory management interactions with libpixman.
5780 Snapshot 0.1.23 (2004-05-11 Carl Worth <cworth@isi.edu>)
5781 ========================================================
5784 Fix prototype mismatches so that cairo can be built by gcc 3.4.
5786 Updates to track glitz
5787 ----------------------
5788 Various fixes to support the latest glitz snapshot (0.1.2).
5792 Radial gradients now support both inner and outer circles.
5793 Transformed linear gradients are now properly handled.
5794 Fixes for extend type reflect.
5798 Converted shading routines to use fixed point values and introduced a
5799 shading operator structure for more efficient shading calculations.
5800 Support compositing with mask surface when mask is solid or
5801 multi-texturing is available.
5803 PNG backend cleanups
5804 --------------------
5805 Fix output to properly compensate for pre-multiplied alpha format in cairo.
5806 Add support for A8 and A1 image formats.
5810 Avoid crash or infinite loop on null strings and degeneratively short
5813 New? bugs in cairo_clip
5814 -----------------------
5815 There are some fairly serious bugs in cairo_clip. It is sometimes
5816 causing an incorrect result. And even when it does work, it is
5817 sometimes so slow as to be unusable. Some of these bugs may not be
5818 new, (indeed cairo_clip has only ever had a braindead-slow
5819 implementation), but I think they're worth mentioning here.
5821 Snapshot 0.1.22 (2004-04-16 Carl Worth <cworth@isi.edu>)
5822 ========================================================
5823 Cairo was updated to track the changes in libpixman, and now depends
5824 on libpixman version 0.1.1.
5826 Snapshot 0.1.21 (2004-04-09 David Reveman <c99drn@cs.umu.se>)
5827 =============================================================
5830 The OpenGL backend provides hardware accelerated output for
5831 X11 and OS X. The significant new functions are:
5834 cairo_gl_surface_create
5836 Automatic detection of available backends
5837 -----------------------------------------
5838 The configure script now automatically detect what backends are
5839 available, (use ./configure --disable-`backend' to prevent
5840 compilation of specific backends).
5842 Snapshot 0.1.20 (2004-04-06 Carl Worth <cworth@isi.edu>)
5843 ========================================================
5846 David Reveman has contributed a new pattern API which enable linear
5847 and radial gradient patterns in addition to the original surface-based
5848 patterns. The significant new top-level functions are:
5850 cairo_pattern_create_linear
5851 cairo_pattern_create_radial
5852 cairo_pattern_create_for_surface
5853 cairo_pattern_add_color_stop
5856 Any code using the old cairo_set_pattern, (which accepted a
5857 cairo_surface_t rather than a cairo_pattern_t), will need to be
5860 Update to XCB backend
5861 ---------------------
5862 The XCB backend is now enabled by default, (use ./configure
5863 --disable-xcb to turn it off).
5867 Graydon Hoare has added optimizations that make cairo_clip much faster
5868 when the path is a pixel-aligned, rectangular region.
5872 Snapshot 0.1.19 (2004-02-24 Carl Worth <cworth@isi.edu>)
5873 ========================================================
5876 Olivier Andrieu contributed a new PNG backend. It builds on the
5877 existing image backend to make it easy to render "directly" to a
5878 .png file. The user never needs to deal with the actual image
5879 buffer. The significant new functions are:
5881 cairo_set_target_png
5882 cairo_png_surface_create
5884 The PNG backend is not enabled by default so that by default there is
5885 not a new dependency on libpng. Use ./configure --enable-png to enable
5888 Snapshot 0.1.18 (2004-02-17 Carl Worth <cworth@isi.edu>)
5889 ========================================================
5890 Path query functionality
5891 ------------------------
5892 It's now possible to query the current path. The two new functions
5896 cairo_current_path_flat
5898 Each function accepts a number of callback functions that will be
5899 called for each element in the path (move_to, line_to, curve_to,
5900 close_path). The cairo_current_path_flat function does not accept a
5901 curve_to callback. Instead, all curved portions of the path will be
5902 converted to line segments, (within the current tolerance value). This
5903 can be handy for doing things like text-on-path without having to
5904 manually interpolate Bézier splines.
5908 Jamey Sharp has contributed a second X backend that uses the new, lean
5909 XCB library rather than Xlib. It cannot currently be compiled at the
5910 same time as the Xlib backend. See ./configure --enable-xcb.
5912 Build fixes for cygwin.
5916 Snapshot 0.1.17 (2003-12-16 Carl Worth <cworth@isi.edu>)
5917 ========================================================
5921 This snapshot provides much better text support by implementing the
5922 following four functions:
5929 The text/glyph_extents functions can be used to determine the bounding
5930 box (and advance) for text as if drawn by show_text/glyphs.
5932 The text/glyph_path objects functions place text shapes on the current
5933 path, where they can be subsequently manipulated. For example,
5934 following these functions with cairo_stroke allows outline text to be
5935 drawn. Calling cairo_clip allows clipping to a text-shaped region.
5937 Combined dependencies
5938 ---------------------
5939 The cairo core now depends only on the libpixman library. This single
5940 library replaces the three previous libraries libic, libpixregion, and
5941 slim. Thanks to Dave Beckett <dave.beckett@bristol.ac.uk> for all of
5942 the heavy lifting with this renaming effort.
5944 Conditional compilation of backends
5945 -----------------------------------
5946 Cairo now allows optional backends to be disabled at compile time. The
5947 following options may now be passed to the configure script:
5952 Note that the first option is a change from the old --without-x option
5953 which will no longer have any effect.
5955 OS X supported - several byte-order issues resolved
5956 ---------------------------------------------------
5957 Cairo has now been successfully compiled under OS X. Testing revealed
5958 that there were some byte-order problems in the PostScript backend and
5959 the PNG generation in the demos. These have now been resolved.
5963 Graydon Hoare <graydon@redhat.com> implemented the first real text
5964 support using Freetype/fontconfig, (previous versions of cairo used
5965 Xft and could only draw text when using an X backend).
5969 Graydon Hoare <graydon@redhat.com> added the first real support for
5970 running cairo with a non-render-aware X server.
5972 Jamey Sharp <jamey@minilop.net> virtualized the backend font and
5973 surface interfaces in September, 2003.
5977 Xr is renamed cairo to avoid confusion since it no longer had a strict
5982 A new image surface backend is added to Xr. Keith Packard
5983 <keithp@keithp.com> wrote the image compositing code in libic that is
5984 used for the image_surface backend. This code was originally written
5985 as the software fallback for the render extension within the X
5990 Carl Worth <cworth@isi.edu> wrote the first lines of Xr, after Keith
5991 Packard <keithp@keithp.com> proposed the plan for a stateful drawing
5992 library in C providing a PostScript-like rendering model.
5994 LocalWords: mutex BeOS extraordinaire distro's URL lcd bool tarball