Debian Codegraph @

NEWS

raw
1 1.18.1 (stable) 2026-06-03
2
3 * Fix memory leak in Context::pop_group()
4 (HanaKami) Merge request !38
5
6 Documentation:
7 * Fix outdated FSF mailing address in COPYING
8 (Benjamin A. Beasley) Merge request !29
9 * Context: Fix enum names
10 * Change license info. Lesser GPL 2.1 instead of Library GPL 2
11 (Kjell Ahlstedt)
12 * Meson: Use SPDX expression for license
13 (Benjamin Gilbert) Merge request !33
14 * MSVC-Builds.md: Mention Visual Studio 2026
15 * MSVC-Builds.md: Update build documentation for NMake
16 (Chun-wei Fan) Merge request !37
17 * cairomm.h: Add the Basic Usage section
18 (Kjell Ahlstedt)
19
20 Meson build:
21 * Don't fail if warning_level=everything
22 (Daniel Boles, Kjell Ahlstedt) Merge request gtkmm!87
23 * Require python3 >= 3.7. That's what Meson requires.
24 * Require meson >= 0.62.
25 Use Meson's pkgconfig module instead of using the *.pc.in templates.
26 (Kjell Ahlstedt)
27 * Detect cl-like compilers
28 (Julia DeMille) Merge request !30
29 * Stop warning from probing for features
30 (Julia DeMille) Merge request !31
31 * Require normal find for cairo when subproject
32 (Julia DeMille) Merge request !32
33 * Better detection of MSVC-like compilers
34 (Kjell Ahlstedt) Issue #32
35 * Use the Python installation that Meson uses.
36 See merge request glibmm!67.
37 (Kjell Ahlstedt)
38 * Meson and NMake builds: Distinguish Visual Studio 2026 builds
39 from Visual Studio 2022 builds
40 * NMake Makefiles: Allow specifying paths for dependencies
41 * NMake Makefiles: Make build process more robust
42 (Chun-wei Fan) Merge request !37
43 * Don't require the 'dot' command to build the documentation
44 (Kjell Ahlstedt)
45
46
47 1.18.0 (stable):
48
49 Meson build:
50 * The boost-shared option defaults to true
51 (Kjell Ahlstedt)
52
53
54 1.17.1 (unstable):
55
56 * Add SaveGuard save/restore object
57 (Jason Rhinelander, Kjell Ahlstedt) Issue #9 (Ian Britten)
58 * Add Surface::set/get_device_scale()
59 (Thomas Holder) Merge request !22
60 * ScaledFont: Add get_text_extents() and get_glyph_extents()
61 (Vitaly Dyachkov) Issue #30
62 * Use callback functions with C linkage
63 (Kjell Ahlstedt) Issue glibmm#1 (Murray Cumming)
64
65 Documentation:
66 * Surface: Use cairomm names where possible
67 (Kjell Ahlstedt)
68 * Context: Fix some typos
69 (Daniel Boles) Merge request !26
70 * Update Visual Studio build docs
71 (Chun-wei Fan) Merge request !28
72 * Remove AUTHORS and MAINTAINERS; add info to README.md
73 (Kjell Ahlstedt) Issue gtkmm#140
74
75 Build:
76 * Meson build: Re-organize warnings-related compiler flags for MSVC
77 (Chun-wei Fan) Merge request !24
78 * Autotools build: Add --disable-deprecated-api
79 (Kjell Ahlstedt) Issue #29 (bbhtt)
80 * Require cairo >= 1.14.0
81 (Kjell Ahlstedt)
82 * Meson build: Detect if we build from a git subtree
83 (William Roy) Merge request gtkmm!72
84 * Meson build: Don't copy files with configure_file()
85 (Kjell Ahlstedt)
86 * Meson build: Fix the evaluation of is_git_build on Windows
87 (Kjell Ahlstedt) Issue gtkmm#131 (William Roy)
88
89
90 1.16.2 (stable):
91
92 Build:
93 * MSVC build: Support VS2022 builds
94 (Chun-wei Fan) Merge request !20, !21
95 * Meson build: When mm-common >= 1.0.4 is used, Perl is not required
96 * Meson build: Specify 'check' option in run_command()
97 Will be necessary with future versions of Meson.
98 Require Meson >= 0.55.0
99 * Meson build: Avoid unnecessary configuration warnings
100 (Kjell Ahlstedt)
101
102
103 1.16.1 (stable):
104
105 Cairo:
106 * Surface::Type: Deprecate WIN32, add WIN32_SURFACE
107 (Kjell Ahlstedt) Issue #26, merge request !14
108
109 Build:
110 * cairommconfig.h.*: Don't dllimport on MinGW
111 (Chun-wei Fan) Merge reqest !16
112 (Chun-wei Fan) Issue gtkmm#90 (Lukas K.)
113 * Meson build: Make it possible to use cairomm as a subproject
114 (Kjell Ahlstedt)
115 * Meson build: No implicit_include_directories
116 (Kjell Ahlstedt)
117 * MSVC build: exception.h: Export Cairo::logic_error selectively
118 (Chun-wei Fan) Merge request !17
119
120
121 1.16.0 (stable):
122
123 This is the first stable release in the cairomm-1.16 ABI series.
124 It is parallel-installable with the cairomm-1.0 ABI.
125
126 The tarball for 1.16.0 has been created with 'meson dist'.
127 If you build with Autotools from the tarball, please read the relevant
128 part of the README file.
129
130 Cairo:
131 * Add Context::get_source_for_surface()
132 (Kjell Ahlstedt) Issue #5 (Ian Britten)
133 * Fix a memory leak in RefPtr
134 (Kjell Ahlstedt) Issue #23
135
136 Build:
137 * Require C++17
138 (Ting-Wei Lan) Bug #106172
139 * Add NMake Makefiles
140 Remove the Visual Studio projects
141 (Chun-wei Fan) Issue #7, #22 merge request !7, !8, !10, !13
142 * Add support for building with Meson
143 (Kjell Ahlstedt, Chun-wei Fan) Issue #20, merge request !8
144 * Use __declspec(dllexport) when building cairomm on Visual Studio
145 Stop using gendef.exe
146 (Chun-wei Fan) Merge request !5
147 * docs/reference/: Update for Doxygen >= 1.8.16
148 (Kjell Ahlstedt)
149
150 Tests:
151 * Update the source code
152 (Kjell Ahlstedt, Chun-wei Fan) Merge request !1
153 * Don't include deprecated Boost header files
154 Fix tests in Autotools builds
155 (Kjell Ahlstedt)
156
157 Documentation:
158 * README: Update with instructions for building cairomm
159 (Kjell Ahlstedt)
160
161
162 1.15.5 (unstable)
163 (Distros should probably not package this yet.)
164
165 * enums.h: Guard the FT-specific include and the enum with an ifdef.
166 (John Ralls) Bug #100894.
167 * Build: configure.ac: Require C++14, because libsigc++-3.0 does.
168 (John Ralls) Bug #100884
169
170 1.15.4 (unstable):
171 (Distros should probably not package this yet.)
172
173 * Use C++11 enum classes instead of old-style enums, and put some enums
174 inside relevant class declarations:
175 - Change Cairo::RegionOverlap enum to Cairo::Region::Overlap.
176 - Change Cairo::PatternType enum to Cairo::Pattern::Type.
177 - Change Cairo::FontWeight enum to Cairo::ToyFontFace::Weight.
178 - Change Cairo::FontSlant enum to Cairo::ToyFontFace::Slant.
179 - Change Cairo::SurfaceType enum to Cairo::Surface::Type.
180 - Change Cairo::HintMetrics enum to Cairo::FontOptions::HintMetrics.
181 - Change Cairo::HintStyle enum to Cairo::FontOptions::HintStyle.
182 - Change Cairo::Filter enum to Cairo::SurfacePattern::Filter.
183 - Change Cairo::Extend enum to Cairo::Pattern::Extend.
184 - Change Cairo::Format enum to Cairo::Surface::Format.
185 - Change Cairo::DeviceType enum to Cairo::Device::DeviceType.
186 - Change Cairo::LineJoin enum to Cairo::Context::LineJoin.
187 - Change Cairo::LineCap enum to Cairo::Context::LineCap.
188 - Change Cairo::FillRule enum to Cairo::Context::FillRule.
189 - Change Cairo::Operator enum to Cairo::Context::Operator.
190 (Murray Cumming)
191 * Build: Win32 / Visual Studio builds:
192 - Require Visual Studio 2017
193 - Remove leftovers from removing deprecated Win32::create()
194 (Chun-wei Fan) Bug #100210
195
196 1.15.3 (unstable):
197 (Distros should probably not package this yet.)
198
199 * RefPtr: This is now an alias for std::shared_ptr<>.
200 These should be instatiated via
201 Cairo::make_refptr_for_instance(), though that should
202 never be necessary anyway outside of the cairomm
203 implementation itself.
204
205 1.15.2 (unstable):
206 (Distros should probably not package this yet.)
207
208 * Remove deprecated API.
209 (Murray Cumming)
210
211 1.15.1 (unstable):
212
213 * First release of the cairomm-1.16 API/ABI that installs
214 in parallel with cairomm-1.0.
215 This uses libsigc++-3.0 instead of libsigc++-2.0.
216
217 1.13.1 (unstable):
218
219 * Added RecordingSurface, wrapping cairo_recording_surface.
220 (Jason Rhinelander) Bug #121359
221
222 1.12.2 (stable):
223
224 * Remove new API that was not meant to be added in 1.12.1.
225
226 1.12.1 (stable):
227
228 * C++11: Use nullptr instead of 0.
229 * C++11: Use override keyword on destructors.
230 * C++11: Make operator bool() explicit.
231 (Murray Cumming)
232
233 1.12.0 (stable):
234
235 * Cairo::RefPtr: Add move constructors and move operator=().
236 (Murray Cumming)
237 * MSVC build fixes.
238 (Chun-wei Fan)
239
240 1.11.4 (unstable):
241
242 * Use (and require) C++11.
243 (Murray Cumming)
244 * Add Script and ScriptSurface.
245 (Povilas Kanapickas)
246 * Context: get_surface_wrapper(): Handle CAIRO_SURFACE_TYPE_SCRIPT,
247 returning a ScriptSurface.
248 (Povilas Kanapickas)
249 * Surface: get_device(): Handle CAIRO_SURFACE_TYPE_SCRIPT,
250 returning a Script.
251 (Povilas Kanapickas)
252 * Wrap cairo script device and script surface APIs.
253 (Povilas Kanapickas)
254 * FtFontFace: Add get/set/unset_synthesize().
255 (Povilas Kanapickas)
256 * Update MSVC.Net 2010 project files.
257 (David Weiß)
258
259 1.11.2 (unstable):
260
261 * Pattern: Add set_extend() and get_extend().
262 (Povilas Kanapickas) Bug #73775
263 * ScaledFont: Add the missing get_extents() method implementation.
264 (Murray Cumming) Bug #53981 (cheshirekow)
265 * Allow use from Objective-C instead of just allowing building.
266 (Anton Bachin) Bug #66328
267 * Avoid dereferencing empty std::vector<>s.
268 (Murray Cumming) Bug #36020 (Robert Kurjata)
269 * Documentation improvements.
270 (Mark Vender)
271 * Fix linker problems in examples.
272 (Murray Cumming)
273
274 1.10.0 (stable):
275
276 * Documentation: Context::arc(): Correct the documentation, as in the C
277 documentation.
278 (Murray Cumming) Bug #31345 (Christopher Head)
279
280 1.9.8 (unstable):
281
282 * Surface:
283 - added create() for creating a sub-surface representing a rectangle on a
284 target surface
285 - PDF versioning API: get_versions(), restrict_to_version(),
286 version_to_string()
287 - add get_device()
288 - add new surface type enum values
289 * Device
290 - add acquire() and release() functions
291 - Add Device::Lock convenience class
292 * Region
293 - UNSTABLE API CHANGE: Fix do_union(), subtract(), intersect() to throw
294 exceptions instead of returning error statuses to be consistent with the
295 rest of the cairomm API
296 - add xor() functions
297 - add API for creating a region from a list of rectangles
298 - implement copy()
299 * Documentation:
300 - Context::arc(): Fix bug #31345 (Christopher Head) about bad math in arc()
301 documentation. (Murray Cumming)
302 - Add documentation for Device class
303 - Add documentation for Region class
304
305 1.9.6 (unstable):
306
307 * Context: Added in_clip().
308 * Surface: Added get_mime_data(), set_mime_data(), unset_mime_data().
309 (Murray Cumming)
310 * Build: Added support for Windows 64-bit and Visual Studio 2010.
311 (Armin Burgmeier)
312
313 1.9.4 (unstable):
314
315 * Added Device.
316 (Murray Cumming)
317
318 1.9.2 (unstable):
319
320 * Context:
321 - set_dash(): Make the dashes parameter const.
322 - device_to_user(), device_to_user_distance(), user_to_device(),
323 user_to_device_distance(): Deprecate the non-const versions, adding const
324 versions.
325 (Murray Cumming)
326 * Cleanup of most -Weffc++ warnings. Bug #28246.
327 (Ian Britten)
328
329 1.9.1 (unstable):
330
331 * Added Region.
332 (Murray Cumming)
333 * Context: Don't allow this to be copied.
334 (Daniel Elstner)
335 * Build:
336 - Fix the MSVC build.
337 (Armin Burgmeier)
338 - Fix the 64-bit build.
339 (Augusto Jun Devegil)
340 - Actually install cairomm-xlib-xrender-1.0.pc.
341 (Daisuke Nishikawa)
342
343 1.8.4:
344
345 * move to new mm-common build infrastructure
346 * Contributors for this release:
347 1 Christopher Harvey
348 4 Daniel Elstner
349 4 David King
350 1 Jonathon Jongsma
351
352 1.8.2:
353
354 * Fix accidental ABI breakage from 1.8.0. All users are urged to please upgrade
355 from 1.8.0 to 1.8.2 as soon as possible
356
357 1.8.0:
358
359 * No notable changes since 1.7.2
360
361 1.7.2 (UNSTABLE):
362
363 * API Changes (all API changes are in unstable API introduced in 1.7.x)
364 * UserFontFace is not implemented with virtual functions rather than by
365 registering callbacks
366 * Cairo::scaled_matrix() -> Cairo::scaling_matrix() to match other matrix
367 convenience functions
368 * Bugfixes
369 * Incorrect refcounting on ScaledFont
370 * build fixes for Mac OSX
371 * Contributors for this release:
372 1 Armin Burgmeier
373 1 Dave Evans
374 22 Jonathon Jongsma
375
376
377 1.7.0 (UNSTABLE):
378
379 * API Changes
380 * ScaledFont: Change fontface constructor parameter to be a RefPtr
381 * This is an API break, but the old interface was essentially unusably
382 broken
383 * Cairo::Matrix now inherits from cairo_matrix_t
384 * Previously, we had used Cairo::Matrix throughout our API, but
385 Cairo::Matrix was just a typedef for cairo_matrix_t
386 * This could be considered an API change, but the new Cairo::Matrix still
387 is-a cairo_matrix_t even if it's not exactly a cairo_matrix_t. This
388 change does not break ABI either, as there are no data members or virtual
389 functions. So I believe this is a safe change, but feedback is appreciated.
390 * Provides a much more C++-friendly API for handling matrices
391 * Also added a set of standalone 'generator' functions for generating
392 starting matrices:
393 * Cairo::identity_matrix(), rotation_matrix(), translation_matrix(),
394 scaled_matrix(). This allows for convenient use such as:
395 cr->set_matrix(Cairo::identity_matrix());
396 rather than something like what was required before:
397 Cairo::Matrix identity_matrix;
398 cairo_matrix_init_identity(&identity_matrix);
399 cr->set_matrix(identity_matrix);
400 * Pattern: get/set_matrix() functions were using a cairo_matrix_t parameter in
401 the API. This is the only place where we used this type and so it was
402 inconsistent with every other matrix-related API in cairomm. Previously
403 this wasn't really an issue since cairo_matrix_t and Cairo::Matrix were
404 typedefed to the same type. However, with the the change to Cairo::Matrix
405 mentioned above, this because a much bigger issue.
406 * This is an ABI-compatible change, but it is a minor API change that could
407 result in some warnings or compile problems in some situations`
408 * New API (some of these are new in cairo 1.8, some are older API that were
409 not wrapped in cairomm previously)
410 * Add Context::get/set_scaled_font()
411 * add Context::show_text_glyphs()
412 * add Context::get_font_options()
413 * Add Surface::has_show_text_glyphs()
414 * Add Surface::get_content() + test
415 * Added Surface::get_fallback_resolution()
416 * Add ScaledFont::text_to_glyphs()
417 * Add PsSurface::get_eps()
418 * Add missing Win32Surface API: create_with_ddb(), create_with_dib(), and get_image()
419 * Add Win32PrintingSurface
420 * Vastly improved font support
421 * ToyFontFace
422 * UserFontFace
423 * Add Freetype font support (FtFontFace, etc)
424 * Add win32 font support (Win32FontFace, etc)
425 * Add quartz font support (QuartzFontFace, etc)
426 * Add ScaledFont::get_scale_matrix()
427 * Fix API inconsistencies by adding overloads and deprecating old versions
428 * Deprecated FontFace::extents() in favor of FontFace::get_extents()
429 * Deprecated FontFace::text_extents() in favor of FontFace::get_text_extents()
430 * Deprecated FontFace::glyph_extents() in favor of FontFace::get_glyph_extents()
431 * Add sigc::slot versions of all of the functions that take a
432 cairo_write_func_t or cairo_read_func_t
433 * This adds a new dependency on libsigc++, but offers a much more flexible
434 and C++-like solution
435 * Old API using cairo_write_func_t / cairo_read_func_t still exist, but are
436 deprecated in favor of the new API
437 * Add a default value for the font_options parameter of the ScaledFont constructor
438 * Added new macros for determining library version:
439 * CAIROMM_MAJOR_VERSION, CAIROMM_MINOR_VERSION, and CAIROMM_MICRO_VERSION
440 * Add a bunch of extra .pc files for additional functionality
441 * like cairo, create convenience .pc files for using some of the optional
442 features. For example, cairomm-ft-1.0, cairomm-pdf-1.0, cairomm-xlib-1.0, etc.
443 * Numerous windows build improvements
444 * Added a *lot* of automated tests
445
446 1.6.2:
447
448 * Fix build on OSX when both Quartz and Xlib surfaces are enabled (Benjamin
449 Reed)
450 * updated the windows build (Armin Burgmeier)
451 * Fixed a bug where an exception message would often report "Success" when it
452 should have reported an error message
453 * Added ability to get the error status code from an exception:
454 Cairo::logic_error::get_status_code()
455 * Added new elements to the surface type enumeration
456
457 1.6.0:
458
459 * wrap cairo_format_stride_for_width(). All new cairo 1.6 API should now be
460 implemented in cairomm
461
462 1.5.0 (UNSTABLE):
463
464 * Unstable release wrapping new API in cairo 1.5 series
465 * Bugfixes
466 - Bug #14559: build failure in exception.cc on Solaris with Sun Workshop C++
467 - Bug #14558: cairomm 1.4.6 context.cc needs math.h on Solaris
468
469 1.4.6:
470
471 * Bugfixes:
472 - Bug #11972: Cannot build cairomm with Quartz enabled
473
474 1.4.4:
475
476 * Added the --enable-api-exceptions=yes/no configure option, to allow
477 cairomm to build when exceptions are disabled. For instance, when using
478 CXXFLAGS=-fno-exceptions with g++.
479
480 1.4.2:
481
482 * Bugfixes:
483 - Bug #11596: Fixed broken shared library versioning (Dave Beckett)
484 - Bug #8511: RefPtr: refcounting broken with cast_*() methods (Murray
485 Cumming)
486
487 1.4.0:
488
489 * Wrapped new API added in cairo 1.4
490 * Added support for Quartz surfaces
491 * ability to use dynamic casting for surfaces and patterns returned from
492 Context::get_target(), Context::get_source(), etc.
493 * Various build and bug fixes
494
495 1.2.4:
496
497 * Fixed an error that prevented Cairo::RefPtr<>::cast_static() and
498 Cairo::RefPtr<>::cast_dynamic() from compiling.
499
500 1.2.2:
501
502 * Fixed an issue when compiling on windows with MSVC
503
504 1.2.0:
505
506 * This is the first release that guarantees API and ABI stability
507 * Changed API:
508 - Context::clear_path() is now Context::begin_new_path()
509 - Context::new_sub_path() is now Context::begin_new_sub_path()
510 * new API:
511 - Win32Surface::get_dc()
512 - Win32Surface::create() for device-independent bitmaps
513 * Bugfixes
514 - fixed a memory leak where C++ wrapper objects were not being destroyed
515 * Fixes for compiling with MSVC (also includes project and resource files for
516 Visual Studio 2005. See the MSVC/ directory)
517
518 1.1.10:
519
520 * API:
521 - Wrap new API from cairo 1.2
522 - Wrap ScaledFont
523 * Improved Documentation
524 * Build fixes
525
526 0.6.0:
527
528 * API:
529 - enumerations are now wrapped within the Cairo namespace. So, for example,
530 CAIRO_FORMAT_ARGB32 becomes Cairo::FORMAT_ARGB32
531 * Examples: added simple text example translated from Cairo.
532 * Bugfixes for the Glitz and Windows backends.
533 * Build and installation improvements (Danilo Piazzalunga)
534
535 0.5.0:
536
537 * Surface:
538 - Created derived classes for PDF, PS, SVG, Glitz,
539 X11 and Win32 surfaces, which are only available if your copy
540 of cairo supports those surfaces. The X11 and Win32 Surface headers
541 must be #included explicitly.
542 (Jonathon Jongsma)
543 - Added write_to_png() and write_to_png_stream(), available when PNG
544 support is available in Cairo.
545 (Jonathon Jongsma)
546 * Examples: Added PNG, PDF, PS, and SVG Surface examples.
547 (Jonathon Jongsma)
548 * Added API documentation generation with doxygen (Jonathon Jongsma)
549
550 0.4.0:
551
552 * Add Cairo::RefPtr<> and use all reference-counted
553 objects via it. Use the static create() methods
554 instead of new for these classes.
555 * Context:
556 - Change set_dash(void) to unset_dash().
557 - Change rotate_deg() to rotate_degrees().
558 - Change identity_matrix() to set_identity_matrix().\
559 - Change new_path() to clear_path().
560 * FontFace: Remove get/set_user_data(), because it seems useless.
561
562 0.3.0:
563
564 * Context:
565 - Change mask_surface() to mask() and
566 set_source_surface() to set_source().
567 - Add typedef for Matrix, but a real Matrix
568 class would be nice.
569 * Pattern: Created hierarchy of classes.
570 * Check for errors in constructors.
571 * Exception: Rename to logic_error, and throw
572 std::bad_alloc or std::io_base::failure instead
573 when appropriate.
574 (Murray Cumming)