cairo 1.15.3-x86-mingw32 → 1.15.4-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of cairo might be problematic. Click here for more details.

Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/NEWS +24 -0
  3. data/Rakefile +3 -3
  4. data/ext/cairo/rb_cairo.h +11 -1
  5. data/ext/cairo/rb_cairo_constants.c +56 -1
  6. data/ext/cairo/rb_cairo_context.c +100 -1
  7. data/ext/cairo/rb_cairo_exception.c +45 -0
  8. data/ext/cairo/rb_cairo_surface.c +126 -1
  9. data/lib/2.2/cairo.so +0 -0
  10. data/lib/2.3/cairo.so +0 -0
  11. data/lib/2.4/cairo.so +0 -0
  12. data/lib/cairo.rb +2 -0
  13. data/samples/link.rb +19 -0
  14. data/test/cairo-test-utils.rb +1 -0
  15. data/test/test_context.rb +22 -0
  16. data/test/test_pdf_surface.rb +131 -0
  17. data/vendor/local/bin/fc-cache.exe +0 -0
  18. data/vendor/local/bin/fc-cat.exe +0 -0
  19. data/vendor/local/bin/fc-list.exe +0 -0
  20. data/vendor/local/bin/fc-match.exe +0 -0
  21. data/vendor/local/bin/fc-pattern.exe +0 -0
  22. data/vendor/local/bin/fc-query.exe +0 -0
  23. data/vendor/local/bin/fc-scan.exe +0 -0
  24. data/vendor/local/bin/fc-validate.exe +0 -0
  25. data/vendor/local/bin/libcairo-2.dll +0 -0
  26. data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
  27. data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
  28. data/vendor/local/bin/libfontconfig-1.dll +0 -0
  29. data/vendor/local/bin/libfreetype-6.dll +0 -0
  30. data/vendor/local/bin/libpixman-1-0.dll +0 -0
  31. data/vendor/local/bin/libpng-config +1 -1
  32. data/vendor/local/bin/libpng16-16.dll +0 -0
  33. data/vendor/local/bin/libpng16-config +1 -1
  34. data/vendor/local/bin/libxml2-2.dll +0 -0
  35. data/vendor/local/bin/png-fix-itxt.exe +0 -0
  36. data/vendor/local/bin/pngfix.exe +0 -0
  37. data/vendor/local/bin/xmlcatalog.exe +0 -0
  38. data/vendor/local/bin/xmllint.exe +0 -0
  39. data/vendor/local/bin/zlib1.dll +0 -0
  40. data/vendor/local/include/cairo/cairo-pdf.h +68 -0
  41. data/vendor/local/include/cairo/cairo-version.h +1 -1
  42. data/vendor/local/include/cairo/cairo.h +19 -0
  43. data/vendor/local/include/libpng16/png.h +13 -12
  44. data/vendor/local/include/libpng16/pngconf.h +1 -1
  45. data/vendor/local/include/libpng16/pnglibconf.h +1 -1
  46. data/vendor/local/include/png.h +13 -12
  47. data/vendor/local/include/pngconf.h +1 -1
  48. data/vendor/local/include/pnglibconf.h +1 -1
  49. data/vendor/local/lib/libcairo-gobject.a +0 -0
  50. data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
  51. data/vendor/local/lib/libcairo-gobject.la +2 -2
  52. data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
  53. data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
  54. data/vendor/local/lib/libcairo-script-interpreter.la +2 -2
  55. data/vendor/local/lib/libcairo.a +0 -0
  56. data/vendor/local/lib/libcairo.dll.a +0 -0
  57. data/vendor/local/lib/libcairo.la +2 -2
  58. data/vendor/local/lib/libfontconfig.dll.a +0 -0
  59. data/vendor/local/lib/libfreetype.a +0 -0
  60. data/vendor/local/lib/libfreetype.dll.a +0 -0
  61. data/vendor/local/lib/libpixman-1.dll.a +0 -0
  62. data/vendor/local/lib/libpng.a +0 -0
  63. data/vendor/local/lib/libpng.dll.a +0 -0
  64. data/vendor/local/lib/libpng.la +2 -2
  65. data/vendor/local/lib/libpng16.a +0 -0
  66. data/vendor/local/lib/libpng16.dll.a +0 -0
  67. data/vendor/local/lib/libpng16.la +2 -2
  68. data/vendor/local/lib/libxml2.dll.a +0 -0
  69. data/vendor/local/lib/libz.dll.a +0 -0
  70. data/vendor/local/lib/pkgconfig/cairo-fc.pc +1 -1
  71. data/vendor/local/lib/pkgconfig/cairo-ft.pc +1 -1
  72. data/vendor/local/lib/pkgconfig/cairo-gobject.pc +1 -1
  73. data/vendor/local/lib/pkgconfig/cairo-pdf.pc +1 -1
  74. data/vendor/local/lib/pkgconfig/cairo-png.pc +1 -1
  75. data/vendor/local/lib/pkgconfig/cairo-ps.pc +1 -1
  76. data/vendor/local/lib/pkgconfig/cairo-script.pc +2 -2
  77. data/vendor/local/lib/pkgconfig/cairo-svg.pc +1 -1
  78. data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +1 -1
  79. data/vendor/local/lib/pkgconfig/cairo-win32.pc +1 -1
  80. data/vendor/local/lib/pkgconfig/cairo.pc +2 -2
  81. data/vendor/local/lib/pkgconfig/libpng.pc +1 -1
  82. data/vendor/local/lib/pkgconfig/libpng16.pc +1 -1
  83. data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +30 -2
  84. data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +1 -1
  85. data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +1 -1
  86. data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +343 -4
  87. data/vendor/local/share/gtk-doc/html/cairo/cairo-PNG-Support.html +8 -4
  88. data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +3 -3
  89. data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +6 -6
  90. data/vendor/local/share/gtk-doc/html/cairo/cairo-Raster-Sources.html +2 -2
  91. data/vendor/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html +3 -3
  92. data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +10 -10
  93. data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +3 -3
  94. data/vendor/local/share/gtk-doc/html/cairo/cairo-Tags-and-Links.html +415 -0
  95. data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +14 -14
  96. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +1 -1
  97. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +5 -5
  98. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +1 -1
  99. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-XRender-Backend.html +1 -1
  100. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +5 -5
  101. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +6 -6
  102. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +2 -2
  103. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +35 -35
  104. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +14 -14
  105. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +14 -14
  106. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +10 -10
  107. data/vendor/local/share/gtk-doc/html/cairo/cairo-drawing.html +3 -0
  108. data/vendor/local/share/gtk-doc/html/cairo/cairo-fonts.html +2 -2
  109. data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +11 -11
  110. data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +15 -0
  111. data/vendor/local/share/gtk-doc/html/cairo/index-all.html +22 -0
  112. data/vendor/local/share/gtk-doc/html/cairo/index.html +4 -1
  113. data/vendor/local/share/gtk-doc/html/cairo/index.sgml +22 -0
  114. data/vendor/local/share/license/libpng/README +1 -1
  115. data/vendor/local/share/man/man3/libpng.3 +9 -9
  116. data/vendor/local/share/man/man3/libpngpf.3 +2 -2
  117. data/vendor/local/share/man/man5/png.5 +1 -1
  118. metadata +9 -3
data/lib/2.2/cairo.so CHANGED
Binary file
data/lib/2.3/cairo.so CHANGED
Binary file
data/lib/2.4/cairo.so ADDED
Binary file
data/lib/cairo.rb CHANGED
@@ -17,6 +17,8 @@ if /mingw|mswin|mswin32/ =~ RUBY_PLATFORM
17
17
  end
18
18
  end
19
19
 
20
+ require "time"
21
+
20
22
  module Cairo
21
23
  class << self
22
24
  def __add_one_arg_setter(klass)
data/samples/link.rb ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ top = File.expand_path(File.join(File.dirname(__FILE__), ".."))
4
+ $LOAD_PATH.unshift File.join(top, "ext", "cairo")
5
+ $LOAD_PATH.unshift File.join(top, "lib")
6
+
7
+ require "cairo"
8
+
9
+ width = 200
10
+ height = 200
11
+
12
+ Cairo::PDFSurface.new("link.pdf", width, height) do |surface|
13
+ Cairo::Context.new(surface) do |context|
14
+ context.move_to(50, 50)
15
+ context.tag(Cairo::Tag::LINK, "uri='http://rcairo.github.io/'") do
16
+ context.show_text("rcairo site")
17
+ end
18
+ end
19
+ end
@@ -1,4 +1,5 @@
1
1
  require 'cairo'
2
+ #require 'poppler'
2
3
  require 'stringio'
3
4
  require 'test/unit/notify'
4
5
 
data/test/test_context.rb CHANGED
@@ -102,4 +102,26 @@ class ContextTest < Test::Unit::TestCase
102
102
  assert_equal("family name should be nil, String or Symbol: [999]",
103
103
  exception.message)
104
104
  end
105
+
106
+ sub_test_case("#tag") do
107
+ setup do
108
+ only_cairo_version(1, 15, 4)
109
+ omit("poppler 3.1.1 is required")
110
+ end
111
+
112
+ test("LINK") do
113
+ Cairo::Context.new(@surface) do |context|
114
+ context.tag(Cairo::Tag::LINK, "uri='http://localhost/'") do
115
+ context.show_text("localhost")
116
+ end
117
+ @surface.finish
118
+ end
119
+ document = Poppler::Document.new(@output.string)
120
+ uris = document[0].link_mapping.collect do |mapping|
121
+ mapping.action.uri
122
+ end
123
+ assert_equal(["http://localhost/"],
124
+ uris)
125
+ end
126
+ end
105
127
  end
@@ -1,8 +1,139 @@
1
1
  class PDFSurfaceTest < Test::Unit::TestCase
2
2
  include CairoTestUtils
3
3
 
4
+ def create_pdf
5
+ omit("poppler 3.1.1 is required")
6
+ pdf = StringIO.new
7
+ surface = Cairo::PDFSurface.new(pdf, 10, 20)
8
+ yield(surface)
9
+ surface.finish
10
+ Poppler::Document.new(pdf.string)
11
+ end
12
+
4
13
  def test_new_with_nil_target
5
14
  surface = Cairo::PDFSurface.new(nil, 10, 20)
6
15
  surface.finish
7
16
  end
17
+
18
+ sub_test_case "#add_outline" do
19
+ def test_sub_outline
20
+ only_cairo_version(1, 15, 4)
21
+ surface = Cairo::PDFSurface.new(nil, 10, 20)
22
+ context = Cairo::Context.new(surface)
23
+ context.tag(Cairo::Tag::DEST, "name='destination'") do
24
+ context.show_text("Destination")
25
+ end
26
+ id = surface.add_outline(Cairo::PDFOutline::ROOT,
27
+ "top-level",
28
+ "destination",
29
+ Cairo::PDFOutlineFlags::OPEN)
30
+ sub_id = surface.add_outline(sub_id,
31
+ "sub",
32
+ "destination",
33
+ Cairo::PDFOutlineFlags::OPEN)
34
+ assert_equal(2, sub_id)
35
+ end
36
+ end
37
+
38
+ sub_test_case "#set_metadata" do
39
+ test "title" do
40
+ only_cairo_version(1, 15, 4)
41
+ pdf = create_pdf do |surface|
42
+ surface.set_metadata(Cairo::PDFMetadata::TITLE, "Hello")
43
+ end
44
+ assert_equal("Hello", pdf.title)
45
+ end
46
+
47
+ test "author" do
48
+ only_cairo_version(1, 15, 4)
49
+ pdf = create_pdf do |surface|
50
+ surface.set_metadata(Cairo::PDFMetadata::AUTHOR, "Alice")
51
+ end
52
+ assert_equal("Alice", pdf.author)
53
+ end
54
+
55
+ test "subject" do
56
+ only_cairo_version(1, 15, 4)
57
+ pdf = create_pdf do |surface|
58
+ surface.set_metadata(Cairo::PDFMetadata::SUBJECT, "This is world.")
59
+ end
60
+ assert_equal("This is world.", pdf.subject)
61
+ end
62
+
63
+ test "keywords" do
64
+ only_cairo_version(1, 15, 4)
65
+ pdf = create_pdf do |surface|
66
+ surface.set_metadata(Cairo::PDFMetadata::KEYWORDS, "hello, alice")
67
+ end
68
+ assert_equal("hello, alice", pdf.keywords)
69
+ end
70
+
71
+ test "creator" do
72
+ only_cairo_version(1, 15, 4)
73
+ pdf = create_pdf do |surface|
74
+ surface.set_metadata(Cairo::PDFMetadata::CREATOR, "cairo")
75
+ end
76
+ assert_equal("cairo", pdf.creator)
77
+ end
78
+
79
+ sub_test_case "create date" do
80
+ test "string" do
81
+ only_cairo_version(1, 15, 4)
82
+ pdf = create_pdf do |surface|
83
+ surface.set_metadata(Cairo::PDFMetadata::CREATE_DATE,
84
+ "2017-01-04T02:17:01+09:00")
85
+ end
86
+ assert_equal(Time.parse("2017-01-04T02:17:01+09:00"),
87
+ Time.at(pdf.creation_date))
88
+ end
89
+
90
+ test "time" do
91
+ only_cairo_version(1, 15, 4)
92
+ pdf = create_pdf do |surface|
93
+ surface.set_metadata(Cairo::PDFMetadata::CREATE_DATE,
94
+ Time.parse("2017-01-04T02:17:01+09:00"))
95
+ end
96
+ assert_equal(Time.parse("2017-01-04T02:17:01+09:00"),
97
+ Time.at(pdf.creation_date))
98
+ end
99
+ end
100
+
101
+ sub_test_case "modified date" do
102
+ test "string" do
103
+ only_cairo_version(1, 15, 4)
104
+ pdf = create_pdf do |surface|
105
+ surface.set_metadata(Cairo::PDFMetadata::MOD_DATE,
106
+ "2017-01-04T02:17:01+09:00")
107
+ end
108
+ assert_equal(Time.parse("2017-01-04T02:17:01+09:00"),
109
+ Time.at(pdf.mod_date))
110
+ end
111
+
112
+ test "time" do
113
+ only_cairo_version(1, 15, 4)
114
+ pdf = create_pdf do |surface|
115
+ surface.set_metadata(Cairo::PDFMetadata::MOD_DATE,
116
+ Time.parse("2017-01-04T02:17:01+09:00"))
117
+ end
118
+ assert_equal(Time.parse("2017-01-04T02:17:01+09:00"),
119
+ Time.at(pdf.mod_date))
120
+ end
121
+ end
122
+ end
123
+
124
+ test "#page_label=" do
125
+ only_cairo_version(1, 15, 4)
126
+ pdf = create_pdf do |surface|
127
+ surface.page_label = "Hello"
128
+ end
129
+ assert_equal("Hello", pdf[0].label)
130
+ end
131
+
132
+ test "#set_thumbnail_size" do
133
+ only_cairo_version(1, 15, 4)
134
+ pdf = create_pdf do |surface|
135
+ surface.set_thumbnail_size(5, 10)
136
+ end
137
+ assert_equal([5, 10], pdf[0].thumbnail_size)
138
+ end
8
139
  end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -11,7 +11,7 @@
11
11
 
12
12
  # Modeled after libxml-config.
13
13
 
14
- version="1.6.26"
14
+ version="1.6.27"
15
15
  prefix="/home/vagrant/rcairo.win32/vendor/local"
16
16
  exec_prefix="${prefix}"
17
17
  libdir="${exec_prefix}/lib"
Binary file
@@ -11,7 +11,7 @@
11
11
 
12
12
  # Modeled after libxml-config.
13
13
 
14
- version="1.6.26"
14
+ version="1.6.27"
15
15
  prefix="/home/vagrant/rcairo.win32/vendor/local"
16
16
  exec_prefix="${prefix}"
17
17
  libdir="${exec_prefix}/lib"
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -85,6 +85,74 @@ cairo_pdf_surface_set_size (cairo_surface_t *surface,
85
85
  double width_in_points,
86
86
  double height_in_points);
87
87
 
88
+ /**
89
+ * cairo_pdf_outline_flags_t:
90
+ * @CAIRO_BOOKMARK_FLAG_OPEN: The outline item defaults to open in the PDF viewer (Since 1.16)
91
+ * @CAIRO_BOOKMARK_FLAG_BOLD: The outline item is displayed by the viewer in bold text (Since 1.16)
92
+ * @CAIRO_BOOKMARK_FLAG_ITALIC: The outline item is displayed by the viewer in italic text (Since 1.16)
93
+ *
94
+ * #cairo_pdf_outline_flags_t is used by the
95
+ * cairo_pdf_surface_add_outline() function specify the attributes of
96
+ * an outline item. These flags may be bitwise-or'd to produce any
97
+ * combination of flags.
98
+ *
99
+ * Since: 1.16
100
+ **/
101
+ typedef enum _cairo_pdf_outline_flags {
102
+ CAIRO_BOOKMARK_FLAG_OPEN = 0x1,
103
+ CAIRO_BOOKMARK_FLAG_BOLD = 0x2,
104
+ CAIRO_BOOKMARK_FLAG_ITALIC = 0x4,
105
+ } cairo_pdf_outline_flags_t;
106
+
107
+ #define CAIRO_PDF_OUTLINE_ROOT 0
108
+
109
+ cairo_public int
110
+ cairo_pdf_surface_add_outline (cairo_surface_t *surface,
111
+ int parent_id,
112
+ const char *utf8,
113
+ const char *dest,
114
+ cairo_pdf_outline_flags_t flags);
115
+
116
+ /**
117
+ * cairo_pdf_metadata_t:
118
+ * @CAIRO_PDF_METADATA_TITLE: The document title (Since 1.16)
119
+ * @CAIRO_PDF_METADATA_AUTHOR: The document author (Since 1.16)
120
+ * @CAIRO_PDF_METADATA_SUBJECT: The document subject (Since 1.16)
121
+ * @CAIRO_PDF_METADATA_KEYWORDS: The document keywords (Since 1.16)
122
+ * @CAIRO_PDF_METADATA_CREATOR: The document creator (Since 1.16)
123
+ * @CAIRO_PDF_METADATA_TITLE: The document title (Since 1.16)
124
+ * @CAIRO_PDF_METADATA_CREATE_DATE: The document creation date (Since 1.16)
125
+ * @CAIRO_PDF_METADATA_MOD_DATE: The document modification date (Since 1.16)
126
+ *
127
+ * #cairo_pdf_metadata_t is used by the
128
+ * cairo_pdf_surface_set_metadata() function specify the metadata to set.
129
+ *
130
+ * Since: 1.16
131
+ **/
132
+ typedef enum _cairo_pdf_metadata {
133
+ CAIRO_PDF_METADATA_TITLE,
134
+ CAIRO_PDF_METADATA_AUTHOR,
135
+ CAIRO_PDF_METADATA_SUBJECT,
136
+ CAIRO_PDF_METADATA_KEYWORDS,
137
+ CAIRO_PDF_METADATA_CREATOR,
138
+ CAIRO_PDF_METADATA_CREATE_DATE,
139
+ CAIRO_PDF_METADATA_MOD_DATE,
140
+ } cairo_pdf_metadata_t;
141
+
142
+ cairo_public void
143
+ cairo_pdf_surface_set_metadata (cairo_surface_t *surface,
144
+ cairo_pdf_metadata_t metadata,
145
+ const char *utf8);
146
+
147
+ cairo_public void
148
+ cairo_pdf_surface_set_page_label (cairo_surface_t *surface,
149
+ const char *utf8);
150
+
151
+ cairo_public void
152
+ cairo_pdf_surface_set_thumbnail_size (cairo_surface_t *surface,
153
+ int width,
154
+ int height);
155
+
88
156
  CAIRO_END_DECLS
89
157
 
90
158
  #else /* CAIRO_HAS_PDF_SURFACE */
@@ -3,6 +3,6 @@
3
3
 
4
4
  #define CAIRO_VERSION_MAJOR 1
5
5
  #define CAIRO_VERSION_MINOR 15
6
- #define CAIRO_VERSION_MICRO 2
6
+ #define CAIRO_VERSION_MICRO 4
7
7
 
8
8
  #endif
@@ -292,6 +292,10 @@ typedef struct _cairo_user_data_key {
292
292
  * @CAIRO_STATUS_DEVICE_FINISHED: target device has been finished (Since 1.12)
293
293
  * @CAIRO_STATUS_JBIG2_GLOBAL_MISSING: %CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID has been used on at least one image
294
294
  * but no image provided %CAIRO_MIME_TYPE_JBIG2_GLOBAL (Since 1.14)
295
+ * @CAIRO_STATUS_PNG_ERROR: error occurred in libpng while reading from or writing to a PNG file (Since 1.16)
296
+ * @CAIRO_STATUS_FREETYPE_ERROR: error occurred in libfreetype (Since 1.16)
297
+ * @CAIRO_STATUS_WIN32_GDI_ERROR: error occurred in the Windows Graphics Device Interface (Since 1.16)
298
+ * @CAIRO_STATUS_TAG_ERROR: invalid tag name, attributes, or nesting (Since 1.16)
295
299
  * @CAIRO_STATUS_LAST_STATUS: this is a special value indicating the number of
296
300
  * status values defined in this enumeration. When using this value, note
297
301
  * that the version of cairo at run-time may have additional status values
@@ -348,6 +352,10 @@ typedef enum _cairo_status {
348
352
  CAIRO_STATUS_INVALID_MESH_CONSTRUCTION,
349
353
  CAIRO_STATUS_DEVICE_FINISHED,
350
354
  CAIRO_STATUS_JBIG2_GLOBAL_MISSING,
355
+ CAIRO_STATUS_PNG_ERROR,
356
+ CAIRO_STATUS_FREETYPE_ERROR,
357
+ CAIRO_STATUS_WIN32_GDI_ERROR,
358
+ CAIRO_STATUS_TAG_ERROR,
351
359
 
352
360
  CAIRO_STATUS_LAST_STATUS
353
361
  } cairo_status_t;
@@ -1018,6 +1026,17 @@ cairo_copy_clip_rectangle_list (cairo_t *cr);
1018
1026
  cairo_public void
1019
1027
  cairo_rectangle_list_destroy (cairo_rectangle_list_t *rectangle_list);
1020
1028
 
1029
+ /* Logical structure tagging functions */
1030
+
1031
+ #define CAIRO_TAG_DEST "cairo.dest"
1032
+ #define CAIRO_TAG_LINK "Link"
1033
+
1034
+ cairo_public void
1035
+ cairo_tag_begin (cairo_t *cr, const char *tag_name, const char *attributes);
1036
+
1037
+ cairo_public void
1038
+ cairo_tag_end (cairo_t *cr, const char *tag_name);
1039
+
1021
1040
  /* Font/Text functions */
1022
1041
 
1023
1042
  /**
@@ -1,7 +1,7 @@
1
1
 
2
2
  /* png.h - header file for PNG reference library
3
3
  *
4
- * libpng version 1.6.26, October 20, 2016
4
+ * libpng version 1.6.27, December 29, 2016
5
5
  *
6
6
  * Copyright (c) 1998-2002,2004,2006-2016 Glenn Randers-Pehrson
7
7
  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
@@ -12,7 +12,7 @@
12
12
  * Authors and maintainers:
13
13
  * libpng versions 0.71, May 1995, through 0.88, January 1996: Guy Schalnat
14
14
  * libpng versions 0.89, June 1996, through 0.96, May 1997: Andreas Dilger
15
- * libpng versions 0.97, January 1998, through 1.6.26, October 20, 2016:
15
+ * libpng versions 0.97, January 1998, through 1.6.27, December 29, 2016:
16
16
  * Glenn Randers-Pehrson.
17
17
  * See also "Contributing Authors", below.
18
18
  */
@@ -29,7 +29,7 @@
29
29
  * files that are distributed with libpng have other copyright owners and
30
30
  * are released under other open source licenses.
31
31
  *
32
- * libpng versions 1.0.7, July 1, 2000 through 1.6.26, October 20, 2016 are
32
+ * libpng versions 1.0.7, July 1, 2000 through 1.6.27, December 29, 2016 are
33
33
  * Copyright (c) 2000-2002, 2004, 2006-2016 Glenn Randers-Pehrson, are
34
34
  * derived from libpng-1.0.6, and are distributed according to the same
35
35
  * disclaimer and license as libpng-1.0.6 with the following individuals
@@ -218,7 +218,7 @@
218
218
  * ...
219
219
  * 1.5.27 15 10527 15.so.15.27[.0]
220
220
  * ...
221
- * 1.6.26 16 10626 16.so.16.26[.0]
221
+ * 1.6.27 16 10627 16.so.16.27[.0]
222
222
  *
223
223
  * Henceforth the source version will match the shared-library major
224
224
  * and minor numbers; the shared-library major version number will be
@@ -246,13 +246,13 @@
246
246
  * Y2K compliance in libpng:
247
247
  * =========================
248
248
  *
249
- * October 20, 2016
249
+ * December 29, 2016
250
250
  *
251
251
  * Since the PNG Development group is an ad-hoc body, we can't make
252
252
  * an official declaration.
253
253
  *
254
254
  * This is your unofficial assurance that libpng from version 0.71 and
255
- * upward through 1.6.26 are Y2K compliant. It is my belief that
255
+ * upward through 1.6.27 are Y2K compliant. It is my belief that
256
256
  * earlier versions were also Y2K compliant.
257
257
  *
258
258
  * Libpng only has two year fields. One is a 2-byte unsigned integer
@@ -314,8 +314,8 @@
314
314
  */
315
315
 
316
316
  /* Version information for png.h - this should match the version in png.c */
317
- #define PNG_LIBPNG_VER_STRING "1.6.26"
318
- #define PNG_HEADER_VERSION_STRING " libpng version 1.6.26 - October 20, 2016\n"
317
+ #define PNG_LIBPNG_VER_STRING "1.6.27"
318
+ #define PNG_HEADER_VERSION_STRING " libpng version 1.6.27 - December 29, 2016\n"
319
319
 
320
320
  #define PNG_LIBPNG_VER_SONUM 16
321
321
  #define PNG_LIBPNG_VER_DLLNUM 16
@@ -323,7 +323,7 @@
323
323
  /* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
324
324
  #define PNG_LIBPNG_VER_MAJOR 1
325
325
  #define PNG_LIBPNG_VER_MINOR 6
326
- #define PNG_LIBPNG_VER_RELEASE 26
326
+ #define PNG_LIBPNG_VER_RELEASE 27
327
327
 
328
328
  /* This should match the numeric part of the final component of
329
329
  * PNG_LIBPNG_VER_STRING, omitting any leading zero:
@@ -354,7 +354,7 @@
354
354
  * version 1.0.0 was mis-numbered 100 instead of 10000). From
355
355
  * version 1.0.1 it's xxyyzz, where x=major, y=minor, z=release
356
356
  */
357
- #define PNG_LIBPNG_VER 10626 /* 1.6.26 */
357
+ #define PNG_LIBPNG_VER 10627 /* 1.6.27 */
358
358
 
359
359
  /* Library configuration: these options cannot be changed after
360
360
  * the library has been built.
@@ -464,7 +464,7 @@ extern "C" {
464
464
  /* This triggers a compiler error in png.c, if png.c and png.h
465
465
  * do not agree upon the version number.
466
466
  */
467
- typedef char* png_libpng_version_1_6_26;
467
+ typedef char* png_libpng_version_1_6_27;
468
468
 
469
469
  /* Basic control structions. Read libpng-manual.txt or libpng.3 for more info.
470
470
  *
@@ -3230,7 +3230,8 @@ PNG_EXPORT(245, int, png_image_write_to_memory, (png_imagep image, void *memory,
3230
3230
  #ifdef PNG_MIPS_MSA_API_SUPPORTED
3231
3231
  # define PNG_MIPS_MSA 6 /* HARDWARE: MIPS Msa SIMD instructions supported */
3232
3232
  #endif
3233
- #define PNG_OPTION_NEXT 8 /* Next option - numbers must be even */
3233
+ #define PNG_IGNORE_ADLER32 8
3234
+ #define PNG_OPTION_NEXT 10 /* Next option - numbers must be even */
3234
3235
 
3235
3236
  /* Return values: NOTE: there are four values and 'off' is *not* zero */
3236
3237
  #define PNG_OPTION_UNSET 0 /* Unset - defaults to off */