Debian Codegraph @

NEWS

raw
1 NEWS/Changelog
2
3 1.7-0 (2025-10-29)
4 o add support for all R graphics device features up to
5 GE API 16 (R 4.5.0). This includes fill patterns, masks
6 (GE 13) and groups (GE 14). Thanks to Paul Murrell!
7
8 o removed gdd_get_version C API and CAIROGD_VER.
9 This means that it no longer needs mkdist and can be
10 directly created with R CMD build.
11
12 o restore the use of WIN32 API to find fonts for
13 cairographics > 1.16 (where avaiable) since it was
14 removed in those versions. (#50)
15
16
17 1.6-5 (2025-08-20)
18 o add dummy functions from GE 15 API (R 4.2.0) to avoid
19 segaults in grid.
20
21 o silence warnings about loss of precision.
22
23
24 1.6-4 (2025-08-19)
25 o removed bashisms from the configure script.
26
27 o locatorBell option will be no longer honored in R 4.4.0
28 and higher for the X11 back-end, because Rf_GetOption()
29 is no longer part of the API.
30
31
32 1.6-3 (2024-08-05)
33 o Add support for glyph rendering (see grid.glyph()).
34
35 o Fix compilation when CAIRO_HAS_PDF_SURFACE is false. (#48)
36
37 o Replace gsetVar() with GEaddDevice2() where supported.
38
39
40 1.6-2 (2023-11-28)
41 o Minor bugfixes: invalid format specified in UBiDi error
42 string, incorrect font name passed if the font family
43 name is too long.
44
45 o Update Windows build to use pkg-config (Thanks to Tomáš
46 Kalibera!) (#43)
47
48
49 1.6-1 (2023-08-17)
50 o The following additional arguments can be used to set PDF
51 metadata: title, author, subject, creator, keywords,
52 create.date and modify.date if cairo version 1.16 or
53 higher is used. (#15)
54
55 o The `version` argument for PDF back-end is now honored and
56 defaults to 1.4. Note that currently cairo library only
57 supports PDF target versions 1.4 or 1.5.
58
59 o The xlib back-end no longer requires headers from Xt. (#39)
60
61
62 1.6-0 (2022-07-05)
63 o Added text drawing using Harfbuzz and ICU. This significantly
64 improves the quality of text rendeded by Cairo and enables
65 support for right-to-left and bi-directional text. (#23)
66 It also enables the use of ligatures. (#18)
67 This feature is only enabled if `pkg-config` is present and
68 knows how to use the `harfbuzz-icu` module.
69
70 o The `family=` argument in text drawing is now honored also for
71 FreeType and Harfbuzz back-ends.
72
73 o configure gains two arguments: `--with-freetype` and
74 `--with-harfbuzz`. They both default to `auto` which means
75 FreeType and Harfbuzz will be used if present. If set to `yes`
76 then the support is required. If set to `no` (or the
77 `--without` form is used) then the corresponding support is
78 explicitly disabled. Note that Harfbuzz requires FreeType.
79
80 o added `--enable-debug` argument to configure which will make
81 Cairo extremely chatty on the console.
82
83 o By default `cairo-ft` will be ignored on Windows, becasue it
84 it does not work without associated FontConfig configuration
85 files and font cache. (#37)
86 This behavior can be changed by using `-DUSE_CAIRO_FT=1` to
87 force the use of `cairo-ft` unconditionally.
88
89 o Cairo.capabilities() now also reports two capabilities
90 which are not format-related: "freetype" and "harfbuzz". The
91 former indicates whether `cairo-ft` is used and the later
92 indicates whether the newly introduced Harfbuzz + ICU
93 bi-directional rendering support is present.
94
95
96 1.5-15 (2022-03-16)
97 o CairoX11 (xlib back-end): install an X11 I/O error handler
98 while processing events such that broken connections are
99 detected and don't kill R.
100
101 o added the option to license under GPL v3. All original
102 authors explicitly agreed and included code based on R is
103 licensed under GPL-2+ allowing this.
104
105
106 1.5-14 (2021-12-21)
107 o update configure/autoconf, some dependencies such as libtiff
108 are now also detected using pkg-config. Tests are now correctly
109 using CPPFLAGS from R.
110
111 o add entry points for GE version 13 (needed for R 4.1.0)
112 Note that this is just a port of CRAN NMU which was posted as
113 version 1.15-12.2 on CRAN, but was not an actual Cairo version.
114
115
116 1.5-13 (2020-04-15)
117 o add support for CairoFont(usePUA=FALSE) to support regular
118 fonts without Adobe Symbol Encoding as symbol fonts in
119 R 4.0.0 and higher. Setting usePUA=FALSE in older versions of
120 R will issue a warning.
121
122
123 1.5-12 (2020-04-11)
124 o use pkg-config --static --libs when needed
125
126 o adapt to API changes in R 4.0.0, also improves symbol
127 placement in recent R versions
128
129
130 1.5-11 (2020-02-26)
131 o fixed missing PROTECT() (thanks to Tomáš Kalibera)
132
133 o minor changes to remove R CMD check warnings
134
135
136 1.5-10 (2019-03-27)
137 o support compilation with C++11-only compilers (#19)
138
139 o add path.expand() for filenames (#12)
140
141 o add C symbol registration
142
143 o update configure.ac to be more compliant
144
145
146 1.5-9 (2015-09-25)
147 o work around bug #45376 in freetype 2.6.0 causing compilation
148 failure
149
150
151 1.5-8 (2015-07-29)
152 o fix a premature memory release in locator handling for
153 raster back-ends.
154
155
156 1.5-7 (2015-07-27)
157 o fix a segfault in CairoFontMatch() in case FcNameParse()
158 fails (closes #10)
159
160 o image back-end can now provide custom locator if
161 a `locator` argument is passed to `Cairo()` with the desired
162 callback function. The callback function accepts `dev` argument
163 and should return either a numeric vector of length 2 (x, y)
164 or `NULL`. This is mainly useful for `type='raster'` passed to
165 external UI where that UI can provide locator capability.
166
167 o add Cairo.snapshot() which is similar to recordPlot() but
168 also allows the retrieval of the last snapshot.
169
170
171 1.5-6 (2014-06-26)
172 o scale line width by the same amount as fonts such that
173 resolution changes are consistent even in that respect
174
175
176 1.5-5 (2013-12-23)
177 o fix onSave reporting incorrect page number for the last page
178 (introduced in 1.5-4, closes #6)
179
180 o scale fonts unconditionally according to the dpi adjustment
181 (fixes issues with grid graphics and dpi changes)
182
183
184 1.5-4 (2013-12-12)
185 o fix invalid pointsize scaling if dpi auto-detection is used
186 (closes #1)
187
188 o fix failure to emit final page in some multi-page settings
189 (closes #4)
190
191 o the `res' parameter in CairoPNG(), CairoTIFF() and CairoJPEG()
192 it now passed down to Cairo() which now accepts `res' to
193 override the value of `dpi' if `res' is set to anyhting other
194 than NA or NULL. (closes #3)
195
196 o release onSave callback function on close (closes #2)
197
198
199 1.5-3 (2013-12-03)
200 o remove compatibility layers to make R 3.x happy
201
202 o adjust pointsize according to the dpi setting
203
204
205 1.5-2 (2012-11-05)
206 o added Cairo.onSave() callback which allows R code to be run
207 when Cairo finishes a page
208
209 o added Cairo.serial() function which allows user code to check
210 whether the graphics have been updated
211
212 o bugfix/update in Cairo connection patch (by Karl Millar)
213
214
215 1.5-1 (2011-12-10)
216 o add support for dev.hold()/dev.flush()
217
218 o use new R 2.14.0 device capabilities advertizing feature
219
220 o fix memory leak when setting fonts via CairoFonts()
221
222 o explicitly request font anti-aliasing even if it is not the
223 surface default - in particular Windows has disabled font
224 anti-aliasing by default
225
226
227 1.5-0 (2011-09-30)
228 o fix swapped bold vs italic traits if freetype is not available
229
230 o use Times font for symbols on Windows because Symbol font
231 doesn't seem to support Unicode
232
233 o add support for poly-paths
234
235 o add support for dev.capture()/grid.cap()
236
237 o added new type "raster" that creates an image back-end without
238 any output file. It can be used in conjunction with
239 dev.capture() to create in-memory image representations, e.g.:
240 Cairo(type='raster')
241 plot(1:10, col=2)
242 p = writePNG(dev.capture(native=TRUE), raw())
243 will create a raw vector containg a PNG image.
244
245
246 1.4-9 (2011-04-06)
247 o force static built-in libraries on Windows to prevent Cairo
248 from picking up broken system libraries
249
250 1.4-8 (2011-03-07)
251 o spurious character in the 1.4-7 w32-backed source has made it
252 unusable on Windows. This is a re-packaging of 1.4-7 without
253 that spurious character.
254
255 1.4-7 (2011-03-07)
256 o fix a bug in raster support causing raster to be usable only
257 once
258
259 o win backend: release and re-get DC on resize -- fixes resizing
260 issues in CairoWin() for some Windows versions
261
262 1.4-6 (2011-02-10)
263 o adds raster image support (courtesy of R core)
264
265 o update Windows libcairo binary to cairo 1.10.2, use static
266 build to avoid DLL issues and add 64-bit binary
267
268 1.4-5 (2009-07-16)
269 o minor Windows configuration change
270
271 o fix SET_VECTOR_ELT issue for R 2.9.0+
272
273 1.4-4 (2008-10-17)
274 o adapt to changes in R-devel (2.9.0-to-be), clean up warnings
275
276 1.4-3 (2008-07-21)
277 o make the use of an invalid font non-fatal
278
279 o allow Cairo to compile on some older systems that don't have
280 trunc()
281
282 o updated libcairo binary for Windows to 1.6.4 (from GTK+)
283
284 1.4-2 (2008-04-03)
285 o adapt to even more changes in R 2.7
286
287 1.4-1 (2008-03-14)
288 o adapt to R 2.7 changes
289
290 1.4-0
291 o fix DPI detection in X11 back-end and use 90dpi as a fallback
292
293 o fix cra settings to be closer to what other devices use
294
295 o CairoX11 no longer fixes DPI to 72, "auto" is now the default.
296 In addition, CairoWin and CairoX11 allow additional arguments
297 to ba passed to Cairo.
298
299 1.3-5 (2007-08-27)
300 o adapt to const char* CHARs in R-devel
301
302 o fix a bug in CairoSVG (wrong argument name)
303
304 o fix a bug in CairoPS (units were not set to "in" and
305 width/height had no defaults)
306
307 o fix unintentional doubling of the .ps suffix
308
309 1.3-4 (2007-05-10)
310 o more fixes in flag-guessing
311
312 o some vector backends (e.g. PDF, SVG) were falling back to
313 bitamp rasterization, we try to prevent this
314
315 o address expose issues with some X11 servers
316
317 o add CairoSVG wrapper
318
319 o add an unified way to register back-ends and get a list of all
320 supported types.
321
322 o add Cairo.capabilities() function
323
324 1.3-3 2007-04-25
325 o improve detection of cairo and its dependencies
326
327 o work around missing API such that cairo 1.0 can be used.
328 However, it is strongly encouraged to use cairo 1.2 or
329 possibly 1.4 as they contain important bugfixes.
330
331 o fix page numbering to start at 1 (was 0) and update
332 documentation correspondingly
333
334 1.3-2 2007-04-18
335 o added format autodetection for tiff and png. The 32-bit
336 version of either format is used if the background
337 is not opaque.
338
339 o fixed bug in the value returned by Cairo
340
341 o added type and file attributes to the Cairo object
342
343 o added (hidden, experimental) functions that allow direct
344 modification of image content in Cairo (.image, .ptr.to.raw
345 and .raw.to.ptr)
346
347 1.3-1
348 o change semantics of canvas and bg to match other devices:
349 canvas is used by devices that don't support any kind
350 of transparency in case bg is translucent
351
352 o fixed data ordering issues in TIFF and JPEG output
353
354 o added "compression" parameter to TIFF back-end which
355 now defaults to LZW compression
356
357 1.3-0
358 o add support for canvas and dpi specification
359
360 o allow backends to detect native resolution
361
362 o add support for custom parameters (e.g. quality for jpeg)
363
364 1.2-1
365 o improve rendering on bitmap devices by aligning straight lines
366 to the pixel grid and adding bleed to such fills.
367
368 o added wrappers that take exactly the same parameters as
369 existing devices such as png, jpeg, pdf, postscript, X11 or
370 windows and map them to calls to Cairo. They can be used to
371 replace native devices by Cairo without the need to change
372 existing code.
373
374 o added namespace
375
376 1.2-0
377 o additional interactive back ends: X11 (XLib) and win (Win32)
378
379 o enhanced back-end API to support interactive back-ends
380
381 o change default backgroud color to "white", because
382 alpha-blending doesn't work properly in cairo when painting on
383 purely transparent background.
384
385 o change the way filenames are interpreted, use multi-file
386 printf convention as other devices do.
387
388 o added support for jpeg and tiff image formats
389
390 1.1-0
391 o additional file/stream back-ends: svg, ps
392
393 o enhanced back-end API
394
395 1.0-0
396 o fixed function names to not conflict with GDD
397
398 0.1-5
399 o added R connections patch support at config time.
400 see
401 http://wiki.r-project.org/rwiki/doku.php?id=developers:r_connections_api
402
403 0.1-4 (2006-12-07)
404 o add pdf backend (Jeff Horner)
405
406 o fix up backend infrastructure (Jeff Horner)
407
408 0.1-3 (2006-12-06)
409 o add freetype and fontconfig support (Jeff Horner)
410
411 o fix memory leaks (Jeff Horner)
412
413 o make transparent background default with bg="transparent"
414
415 0.1-2 (2006-12-05)
416 o add support for caps/joints (patch by Jeff Horner)
417
418 o make rectangels to snap to grid (patch by Jeff Horner)
419
420 o use transparent image background by default
421
422
423 0.1-1 (2005-12-23)
424 o first official release, image backend works, others are
425 waiting to be implemented by volunteers
426