cairo 1.12.6-x86-mingw32 → 1.12.7-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 (188) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +1 -1
  3. data/NEWS +24 -0
  4. data/README.rdoc +1 -1
  5. data/Rakefile +57 -14
  6. data/ext/cairo/rb_cairo.h +1 -1
  7. data/ext/cairo/rb_cairo_surface.c +2 -0
  8. data/lib/1.9/cairo.so +0 -0
  9. data/lib/2.0/cairo.so +0 -0
  10. data/lib/2.1/cairo.so +0 -0
  11. data/lib/cairo/papers.rb +24 -0
  12. data/test/test_image_surface.rb +28 -0
  13. data/vendor/local/bin/fc-cache.exe +0 -0
  14. data/vendor/local/bin/fc-cat.exe +0 -0
  15. data/vendor/local/bin/fc-list.exe +0 -0
  16. data/vendor/local/bin/fc-match.exe +0 -0
  17. data/vendor/local/bin/fc-pattern.exe +0 -0
  18. data/vendor/local/bin/fc-query.exe +0 -0
  19. data/vendor/local/bin/fc-scan.exe +0 -0
  20. data/vendor/local/bin/fc-validate.exe +0 -0
  21. data/vendor/local/bin/freetype-config +6 -10
  22. data/vendor/local/bin/libcairo-2.dll +0 -0
  23. data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
  24. data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
  25. data/vendor/local/bin/libfontconfig-1.dll +0 -0
  26. data/vendor/local/bin/libfreetype-6.dll +0 -0
  27. data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
  28. data/vendor/local/bin/libpixman-1-0.dll +0 -0
  29. data/vendor/local/bin/libpng-config +1 -1
  30. data/vendor/local/bin/libpng16-16.dll +0 -0
  31. data/vendor/local/bin/libpng16-config +1 -1
  32. data/vendor/local/bin/libxml2-2.dll +0 -0
  33. data/vendor/local/bin/png-fix-itxt.exe +0 -0
  34. data/vendor/local/bin/pngfix.exe +0 -0
  35. data/vendor/local/bin/xmlcatalog.exe +0 -0
  36. data/vendor/local/bin/xmllint.exe +0 -0
  37. data/vendor/local/bin/zlib1.dll +0 -0
  38. data/vendor/local/etc/fonts/conf.d/30-metric-aliases.conf +259 -53
  39. data/vendor/local/etc/fonts/conf.d/30-urw-aliases.conf +4 -20
  40. data/vendor/local/etc/fonts/conf.d/45-latin.conf +16 -0
  41. data/vendor/local/etc/fonts/conf.d/README +3 -3
  42. data/vendor/local/etc/fonts/fonts.conf +1 -1
  43. data/vendor/local/include/cairo/cairo-gobject.h +4 -0
  44. data/vendor/local/include/cairo/cairo-version.h +1 -1
  45. data/vendor/local/include/fontconfig/fcprivate.h +2 -1
  46. data/vendor/local/include/fontconfig/fontconfig.h +7 -3
  47. data/vendor/local/include/freetype2/{freetype/config → config}/ftconfig.h +105 -13
  48. data/vendor/local/include/freetype2/{freetype/config → config}/ftheader.h +71 -58
  49. data/vendor/local/include/freetype2/{freetype/config → config}/ftmodule.h +0 -0
  50. data/vendor/local/include/freetype2/{freetype/config → config}/ftoption.h +41 -35
  51. data/vendor/local/include/freetype2/{freetype/config → config}/ftstdlib.h +0 -0
  52. data/vendor/local/include/freetype2/{freetype/freetype.h → freetype.h} +83 -40
  53. data/vendor/local/include/freetype2/ft2build.h +42 -0
  54. data/vendor/local/include/freetype2/{freetype/ftadvanc.h → ftadvanc.h} +14 -11
  55. data/vendor/local/include/freetype2/{freetype/ftautoh.h → ftautoh.h} +11 -3
  56. data/vendor/local/include/freetype2/{freetype/ftbbox.h → ftbbox.h} +3 -3
  57. data/vendor/local/include/freetype2/{freetype/ftbdf.h → ftbdf.h} +0 -0
  58. data/vendor/local/include/freetype2/{freetype/ftbitmap.h → ftbitmap.h} +4 -4
  59. data/vendor/local/include/freetype2/{freetype/ftbzip2.h → ftbzip2.h} +0 -0
  60. data/vendor/local/include/freetype2/{freetype/ftcache.h → ftcache.h} +4 -87
  61. data/vendor/local/include/freetype2/ftcffdrv.h +254 -0
  62. data/vendor/local/include/freetype2/{freetype/ftchapters.h → ftchapters.h} +4 -16
  63. data/vendor/local/include/freetype2/{freetype/ftcid.h → ftcid.h} +0 -0
  64. data/vendor/local/include/freetype2/{freetype/fterrdef.h → fterrdef.h} +0 -0
  65. data/vendor/local/include/freetype2/{freetype/fterrors.h → fterrors.h} +0 -0
  66. data/vendor/local/include/freetype2/{freetype/ftgasp.h → ftgasp.h} +0 -0
  67. data/vendor/local/include/freetype2/{freetype/ftglyph.h → ftglyph.h} +5 -5
  68. data/vendor/local/include/freetype2/{freetype/ftgxval.h → ftgxval.h} +5 -5
  69. data/vendor/local/include/freetype2/{freetype/ftgzip.h → ftgzip.h} +48 -1
  70. data/vendor/local/include/freetype2/{freetype/ftimage.h → ftimage.h} +20 -11
  71. data/vendor/local/include/freetype2/{freetype/ftincrem.h → ftincrem.h} +0 -0
  72. data/vendor/local/include/freetype2/{freetype/ftlcdfil.h → ftlcdfil.h} +3 -3
  73. data/vendor/local/include/freetype2/{freetype/ftlist.h → ftlist.h} +6 -6
  74. data/vendor/local/include/freetype2/{freetype/ftlzw.h → ftlzw.h} +0 -0
  75. data/vendor/local/include/freetype2/{freetype/ftmac.h → ftmac.h} +3 -3
  76. data/vendor/local/include/freetype2/{freetype/ftmm.h → ftmm.h} +3 -4
  77. data/vendor/local/include/freetype2/{freetype/ftmodapi.h → ftmodapi.h} +15 -8
  78. data/vendor/local/include/freetype2/{freetype/ftmoderr.h → ftmoderr.h} +0 -0
  79. data/vendor/local/include/freetype2/{freetype/ftotval.h → ftotval.h} +3 -3
  80. data/vendor/local/include/freetype2/{freetype/ftoutln.h → ftoutln.h} +16 -7
  81. data/vendor/local/include/freetype2/{freetype/ftpfr.h → ftpfr.h} +0 -0
  82. data/vendor/local/include/freetype2/{freetype/ftrender.h → ftrender.h} +0 -0
  83. data/vendor/local/include/freetype2/{freetype/ftsizes.h → ftsizes.h} +2 -2
  84. data/vendor/local/include/freetype2/{freetype/ftsnames.h → ftsnames.h} +3 -3
  85. data/vendor/local/include/freetype2/{freetype/ftstroke.h → ftstroke.h} +0 -0
  86. data/vendor/local/include/freetype2/{freetype/ftsynth.h → ftsynth.h} +2 -2
  87. data/vendor/local/include/freetype2/{freetype/ftsystem.h → ftsystem.h} +0 -0
  88. data/vendor/local/include/freetype2/{freetype/fttrigon.h → fttrigon.h} +0 -0
  89. data/vendor/local/include/freetype2/ftttdrv.h +170 -0
  90. data/vendor/local/include/freetype2/{freetype/fttypes.h → fttypes.h} +3 -3
  91. data/vendor/local/include/freetype2/{freetype/ftwinfnt.h → ftwinfnt.h} +4 -3
  92. data/vendor/local/include/freetype2/{freetype/ftxf86.h → ftxf86.h} +2 -2
  93. data/vendor/local/include/freetype2/{freetype/t1tables.h → t1tables.h} +0 -0
  94. data/vendor/local/include/freetype2/{freetype/ttnameid.h → ttnameid.h} +2 -2
  95. data/vendor/local/include/freetype2/{freetype/tttables.h → tttables.h} +24 -14
  96. data/vendor/local/include/freetype2/{freetype/tttags.h → tttags.h} +5 -1
  97. data/vendor/local/include/freetype2/{freetype/ttunpat.h → ttunpat.h} +0 -0
  98. data/vendor/local/include/libpng16/png.h +30 -12
  99. data/vendor/local/include/libpng16/pngconf.h +2 -1
  100. data/vendor/local/include/libpng16/pnglibconf.h +3 -3
  101. data/vendor/local/include/pixman-1/pixman-version.h +3 -3
  102. data/vendor/local/include/pixman-1/pixman.h +1 -1
  103. data/vendor/local/include/png.h +30 -12
  104. data/vendor/local/include/pngconf.h +2 -1
  105. data/vendor/local/include/pnglibconf.h +3 -3
  106. data/vendor/local/lib/fontconfig.def +2 -1
  107. data/vendor/local/lib/libcairo-gobject.a +0 -0
  108. data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
  109. data/vendor/local/lib/libcairo-gobject.la +3 -3
  110. data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
  111. data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
  112. data/vendor/local/lib/libcairo-script-interpreter.la +3 -3
  113. data/vendor/local/lib/libcairo.a +0 -0
  114. data/vendor/local/lib/libcairo.dll.a +0 -0
  115. data/vendor/local/lib/libcairo.la +3 -3
  116. data/vendor/local/lib/libfontconfig.a +0 -0
  117. data/vendor/local/lib/libfontconfig.dll.a +0 -0
  118. data/vendor/local/lib/libfontconfig.la +3 -3
  119. data/vendor/local/lib/libfreetype.a +0 -0
  120. data/vendor/local/lib/libfreetype.dll.a +0 -0
  121. data/vendor/local/lib/libfreetype.la +3 -3
  122. data/vendor/local/lib/libpixman-1.a +0 -0
  123. data/vendor/local/lib/libpixman-1.dll.a +0 -0
  124. data/vendor/local/lib/libpixman-1.la +4 -4
  125. data/vendor/local/lib/libpng.a +0 -0
  126. data/vendor/local/lib/libpng.dll.a +0 -0
  127. data/vendor/local/lib/libpng.la +2 -2
  128. data/vendor/local/lib/libpng16.a +0 -0
  129. data/vendor/local/lib/libpng16.dll.a +0 -0
  130. data/vendor/local/lib/libpng16.la +2 -2
  131. data/vendor/local/lib/libxml2.a +0 -0
  132. data/vendor/local/lib/libxml2.dll.a +0 -0
  133. data/vendor/local/lib/libz.a +0 -0
  134. data/vendor/local/lib/libz.dll.a +0 -0
  135. data/vendor/local/lib/pkgconfig/cairo-fc.pc +1 -1
  136. data/vendor/local/lib/pkgconfig/cairo-ft.pc +1 -1
  137. data/vendor/local/lib/pkgconfig/cairo-gobject.pc +1 -1
  138. data/vendor/local/lib/pkgconfig/cairo-pdf.pc +1 -1
  139. data/vendor/local/lib/pkgconfig/cairo-png.pc +1 -1
  140. data/vendor/local/lib/pkgconfig/cairo-ps.pc +1 -1
  141. data/vendor/local/lib/pkgconfig/cairo-script.pc +1 -1
  142. data/vendor/local/lib/pkgconfig/cairo-svg.pc +1 -1
  143. data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +1 -1
  144. data/vendor/local/lib/pkgconfig/cairo-win32.pc +1 -1
  145. data/vendor/local/lib/pkgconfig/cairo.pc +3 -3
  146. data/vendor/local/lib/pkgconfig/fontconfig.pc +6 -4
  147. data/vendor/local/lib/pkgconfig/freetype2.pc +4 -4
  148. data/vendor/local/lib/pkgconfig/libpng.pc +1 -1
  149. data/vendor/local/lib/pkgconfig/libpng16.pc +1 -1
  150. data/vendor/local/lib/pkgconfig/pixman-1.pc +1 -1
  151. data/vendor/local/share/fontconfig/conf.avail/30-metric-aliases.conf +259 -53
  152. data/vendor/local/share/fontconfig/conf.avail/30-urw-aliases.conf +4 -20
  153. data/vendor/local/share/fontconfig/conf.avail/45-latin.conf +16 -0
  154. data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +1 -1
  155. data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +1 -1
  156. data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +1 -1
  157. data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +3 -3
  158. data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +3 -3
  159. data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +6 -6
  160. data/vendor/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html +3 -3
  161. data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +8 -8
  162. data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +3 -3
  163. data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +14 -14
  164. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +1 -1
  165. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +5 -5
  166. data/vendor/local/share/gtk-doc/html/cairo/cairo-XCB-Surfaces.html +0 -8
  167. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +1 -1
  168. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-XRender-Backend.html +1 -1
  169. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +3 -3
  170. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +4 -4
  171. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +2 -2
  172. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +31 -31
  173. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +11 -11
  174. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +13 -13
  175. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +8 -8
  176. data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +11 -11
  177. data/vendor/local/share/gtk-doc/html/cairo/index.html +1 -1
  178. data/vendor/local/share/license/fontconfig/README +83 -2
  179. data/vendor/local/share/license/freetype/README +5 -5
  180. data/vendor/local/share/license/freetype/README.git +5 -1
  181. data/vendor/local/share/license/libpng/README +18 -18
  182. data/vendor/local/share/man/man3/libpng.3 +136 -54
  183. data/vendor/local/share/man/man3/libpngpf.3 +2 -2
  184. data/vendor/local/share/man/man5/png.5 +1 -1
  185. metadata +74 -80
  186. data/vendor/local/etc/fonts/fonts.conf.bak +0 -155
  187. data/vendor/local/include/freetype2/freetype/ftcffdrv.h +0 -150
  188. data/vendor/local/include/ft2build.h +0 -61
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 685cd64f3c076547197ef4d371d4e445ed7118df
4
+ data.tar.gz: b4c99facf5e03a4d8c6732acec6d72f3f911d346
5
+ SHA512:
6
+ metadata.gz: a69eaae6f8a34cbdf511a957c1d9a9a8bc6544601f50ab33155af0f280983a264546d4fb82667d8af118abad0dc5d10fce4cad5f6242ee832307573eb94f1acc
7
+ data.tar.gz: 51e83f7705958947a3c22e2c7c7ce3c0714d0d22c228988895c3fa14ac218442e272f92d991255db38f370ff8412e45cf14a9205c0104c6c4e08629a846efc7a
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  # -*- mode: ruby; coding: utf-8 -*-
2
2
 
3
- source "http://rubygems.org/"
3
+ source "https://rubygems.org/"
4
4
 
5
5
  gemspec
data/NEWS CHANGED
@@ -1,3 +1,27 @@
1
+ Release 1.12.7 (2013-12-23) Kouhei Sutou <kou@cozmixng.org>
2
+ ===========================================================
3
+
4
+ Improvements
5
+ ------------
6
+
7
+ * Added paper sizes of ISO B series and JIS B series.
8
+ [Patch by 5.5]
9
+ * Added Windows binary for Ruby 2.1.0.
10
+ * Updated bundled cairo to 1.12.16 from 1.12.14 for Windows.
11
+
12
+ Fixes
13
+ -----
14
+
15
+ * Fixed a bug that Cairo::ImageSurface.new(cloned_data, ...)
16
+ changes both the original data and the cloned data.
17
+ [Patch by Naoyuki Hirayama]
18
+
19
+ Thanks
20
+ ------
21
+
22
+ * 5.5
23
+ * Naoyuki Hirayama
24
+
1
25
  Release 1.12.6 (2013-05-24) Kouhei Sutou <kou@cozmixng.org>
2
26
  ===========================================================
3
27
 
data/README.rdoc CHANGED
@@ -12,7 +12,7 @@ http://cairographics.org/
12
12
 
13
13
  == Dependencies
14
14
 
15
- * ruby >= 1.8 (1.9.2 also supported!)
15
+ * ruby >= 1.9.3 (2.0.0 also supported!)
16
16
  * cairo >= 1.2.0 (1.12.0 also supported!)
17
17
 
18
18
  == Install
data/Rakefile CHANGED
@@ -36,16 +36,27 @@ end
36
36
 
37
37
  binary_dir = File.join("vendor", "local")
38
38
  Rake::ExtensionTask.new("cairo", spec) do |ext|
39
+ ext.cross_platform = ["x86-mingw32"]
39
40
  ext.cross_compile = true
40
- ext.cross_compiling do |spec|
41
- if /mingw|mswin/ =~ spec.platform.to_s
41
+ ext.cross_compiling do |_spec|
42
+ if /mingw|mswin/ =~ _spec.platform.to_s
42
43
  binary_files = []
43
44
  Find.find(binary_dir) do |name|
44
45
  next unless File.file?(name)
45
46
  next if /\.zip\z/i =~ name
46
47
  binary_files << name
47
48
  end
48
- spec.files += binary_files
49
+ _spec.files += binary_files
50
+
51
+ stage_path = "#{ext.tmp_dir}/#{_spec.platform}/stage"
52
+ binary_files.each do |binary_file|
53
+ stage_binary_file = "#{stage_path}/#{binary_file}"
54
+ stage_binary_dir = File.dirname(stage_binary_file)
55
+ directory stage_binary_dir
56
+ file stage_binary_file => [stage_binary_dir, binary_file] do
57
+ cp(binary_file, stage_binary_file)
58
+ end
59
+ end
49
60
  end
50
61
  end
51
62
  end
@@ -158,10 +169,32 @@ class WindowsTask
158
169
 
159
170
  private
160
171
  def define_download_task
172
+ define_gcc_task
161
173
  define_source_download_task
162
174
  define_build_task
163
175
  end
164
176
 
177
+ def define_gcc_task
178
+ namespace :windows do
179
+ namespace :gcc do
180
+ namespace :dll do
181
+ desc "Bundle GCC related DLLs"
182
+ task :bundle do
183
+ dll_names = ["libgcc_s_sjlj-1.dll"]
184
+ dll_names.each do |dll_name|
185
+ cp(absolete_gcc_dll_path(dll_name), install_dir + "bin")
186
+ end
187
+ end
188
+ end
189
+ end
190
+ end
191
+ end
192
+
193
+ def absolete_gcc_dll_path(dll_name)
194
+ build_host = @packages.first.windows.build_host
195
+ `#{build_host}-gcc -print-file-name=#{dll_name}`.strip
196
+ end
197
+
165
198
  def define_source_download_task
166
199
  namespace :source do
167
200
  tasks = []
@@ -175,7 +208,7 @@ class WindowsTask
175
208
 
176
209
  desc "Download #{package.name} source"
177
210
  task :download => archive_path.to_s
178
- tasks << (Rake.application.current_scope + ["download"]).join(":")
211
+ tasks << join_task_name(Rake.application.current_scope, "download")
179
212
  end
180
213
  end
181
214
  desc "Download sources"
@@ -212,15 +245,24 @@ class WindowsTask
212
245
 
213
246
  desc "Build #{package.label} package"
214
247
  task :build => built_file.to_s
215
- tasks << (Rake.application.current_scope + ["build"]).join(":")
248
+ tasks << join_task_name(Rake.application.current_scope, "build")
216
249
  end
217
250
  end
218
251
  desc "Build packages"
219
- task :build => tasks
252
+ task :build => ["windows:gcc:dll:bundle"] + tasks
253
+ end
254
+ end
255
+
256
+ def join_task_name(current_scope, task_name)
257
+ if Rake.const_defined?(:Scope)
258
+ current_scope.path_with_task_name(task_name)
259
+ else
260
+ (current_scope + [task_name]).join(":")
220
261
  end
221
262
  end
222
263
 
223
264
  def build(package)
265
+ ENV["PATH"] = ["#{install_dir}/bin", ENV["PATH"]].join(File::PATH_SEPARATOR)
224
266
  ENV["PKG_CONFIG_LIBDIR"] = "#{install_dir}/lib/pkgconfig"
225
267
  ENV["PKG_CONFIG_PATH"] = [
226
268
  ruby_glib2_pkg_config_path,
@@ -371,16 +413,16 @@ windows_task = WindowsTask.new(spec) do |task|
371
413
  },
372
414
  {
373
415
  :name => "libpng",
374
- :version => "1.6.2",
375
- :download_base_url => "http://sourceforge.net/projects/libpng/files/libpng16/1.6.2",
416
+ :version => "1.6.8",
417
+ :download_base_url => "http://sourceforge.net/projects/libpng/files/libpng16/1.6.8",
376
418
  :windows => {
377
419
  :built_file => "bin/libpng16-16.dll",
378
420
  },
379
421
  },
380
422
  {
381
423
  :name => "freetype",
382
- :version => "2.4.12",
383
- :download_base_url => "http://sourceforge.net/projects/freetype/files/freetype2/2.4.12",
424
+ :version => "2.5.2",
425
+ :download_base_url => "http://sourceforge.net/projects/freetype/files/freetype2/2.5.2",
384
426
  :compression_method => "bz2",
385
427
  :windows => {
386
428
  :built_file => "bin/libfreetype-6.dll",
@@ -400,7 +442,7 @@ windows_task = WindowsTask.new(spec) do |task|
400
442
  },
401
443
  {
402
444
  :name => "fontconfig",
403
- :version => "2.10.92",
445
+ :version => "2.11.0",
404
446
  :download_base_url => "http://www.freedesktop.org/software/fontconfig/release",
405
447
  :compression_method => "bz2",
406
448
  :windows => {
@@ -410,14 +452,15 @@ windows_task = WindowsTask.new(spec) do |task|
410
452
  "--disable-docs",
411
453
  ],
412
454
  :patches => [
413
- "fontconfig-2.10.92-disable-mktemp-s.diff",
455
+ "fontconfig-2.11.0-disable-mktemp-s.diff",
456
+ "fontconfig-2.11.0-disable-test.diff",
414
457
  ],
415
458
  :need_autoreconf => true,
416
459
  },
417
460
  },
418
461
  {
419
462
  :name => "pixman",
420
- :version => "0.30.0",
463
+ :version => "0.32.4",
421
464
  :download_site => :cairo,
422
465
  :compression_method => "gz",
423
466
  :windows => {
@@ -426,7 +469,7 @@ windows_task = WindowsTask.new(spec) do |task|
426
469
  },
427
470
  {
428
471
  :name => "cairo",
429
- :version => "1.12.14",
472
+ :version => "1.12.16",
430
473
  :download_site => :cairo,
431
474
  :windows => {
432
475
  :built_file => "bin/libcairo-2.dll",
data/ext/cairo/rb_cairo.h CHANGED
@@ -73,7 +73,7 @@ RB_CAIRO_BEGIN_DECLS
73
73
 
74
74
  #define RB_CAIRO_VERSION_MAJOR 1
75
75
  #define RB_CAIRO_VERSION_MINOR 12
76
- #define RB_CAIRO_VERSION_MICRO 6
76
+ #define RB_CAIRO_VERSION_MICRO 7
77
77
 
78
78
  RB_CAIRO_VAR VALUE rb_mCairo;
79
79
  RB_CAIRO_VAR VALUE rb_cCairo_Context;
@@ -935,6 +935,8 @@ cr_image_surface_create_for_data (VALUE self, VALUE rb_data, VALUE format,
935
935
  {
936
936
  unsigned char *data;
937
937
 
938
+ rb_data = StringValue (rb_data);
939
+ rb_str_modify (rb_data);
938
940
  data = (unsigned char *)StringValuePtr (rb_data);
939
941
 
940
942
  return cairo_image_surface_create_for_data (data,
data/lib/1.9/cairo.so CHANGED
Binary file
data/lib/2.0/cairo.so CHANGED
Binary file
data/lib/2.1/cairo.so ADDED
Binary file
data/lib/cairo/papers.rb CHANGED
@@ -15,6 +15,30 @@ module Cairo
15
15
  [37, 52, "A9"],
16
16
  [26, 37, "A10"],
17
17
 
18
+ [1000, 1414 , "ISO_B0"],
19
+ [707, 1000 , "ISO_B1"],
20
+ [500, 707 , "ISO_B2"],
21
+ [353, 500 , "ISO_B3"],
22
+ [250, 353 , "ISO_B4"],
23
+ [176, 250 , "ISO_B5"],
24
+ [125, 176 , "ISO_B6"],
25
+ [88, 125 , "ISO_B7"],
26
+ [62, 88 , "ISO_B8"],
27
+ [44, 62 , "ISO_B9"],
28
+ [31, 44 , "ISO_B10"],
29
+
30
+ [1030, 1456, "JIS_B0"],
31
+ [728, 1030, "JIS_B1"],
32
+ [515, 728, "JIS_B2"],
33
+ [364, 515, "JIS_B3"],
34
+ [257, 364, "JIS_B4"],
35
+ [182, 257, "JIS_B5"],
36
+ [128, 182, "JIS_B6"],
37
+ [91, 128, "JIS_B7"],
38
+ [64, 91, "JIS_B8"],
39
+ [45, 64, "JIS_B9"],
40
+ [32, 45, "JIS_B10"],
41
+
18
42
  [1030, 1456, "B0"],
19
43
  [728, 1030, "B1"],
20
44
  [515, 728, "B2"],
@@ -0,0 +1,28 @@
1
+ require 'cairo'
2
+
3
+ class ImageSurfaceTest < Test::Unit::TestCase
4
+ include CairoTestUtils
5
+
6
+ def test_cloned_data
7
+ width = 10
8
+ height = 10
9
+ original_surface = Cairo::ImageSurface.new(:a1, width, height)
10
+
11
+ original_data = original_surface.data
12
+ cloned_data = original_data.clone
13
+
14
+ cloned_surface = Cairo::ImageSurface.new(cloned_data,
15
+ :a1, width, height,
16
+ original_surface.stride)
17
+
18
+ Cairo::Context.new(cloned_surface) do |context|
19
+ context.set_source_rgb(255, 255, 255)
20
+ context.scale(width, height)
21
+ context.move_to(0, 0)
22
+ context.line_to(1, 1)
23
+ context.stroke
24
+ end
25
+
26
+ assert_not_equal(original_data, cloned_data)
27
+ end
28
+ end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -73,7 +73,7 @@ while test $# -gt 0 ; do
73
73
  echo_exec_prefix=yes
74
74
  ;;
75
75
  --version)
76
- echo 16.1.10
76
+ echo 17.1.11
77
77
  exit 0
78
78
  ;;
79
79
  --ftversion)
@@ -119,13 +119,13 @@ else
119
119
  fi
120
120
 
121
121
  if test "$echo_ft_version" = "yes" ; then
122
- major=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \
122
+ major=`grep define ${SYSROOT}$includedir/freetype2/freetype.h \
123
123
  | grep FREETYPE_MAJOR \
124
124
  | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'`
125
- minor=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \
125
+ minor=`grep define ${SYSROOT}$includedir/freetype2/freetype.h \
126
126
  | grep FREETYPE_MINOR \
127
127
  | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'`
128
- patch=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \
128
+ patch=`grep define ${SYSROOT}$includedir/freetype2/freetype.h \
129
129
  | grep FREETYPE_PATCH \
130
130
  | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'`
131
131
  echo $major.$minor.$patch
@@ -133,15 +133,11 @@ fi
133
133
 
134
134
  if test "$echo_cflags" = "yes" ; then
135
135
  cflags="-I${SYSROOT}$includedir/freetype2"
136
- if test "${SYSROOT}$includedir" != "/usr/include" ; then
137
- echo $cflags -I${SYSROOT}$includedir
138
- else
139
- echo $cflags
140
- fi
136
+ echo $cflags
141
137
  fi
142
138
 
143
139
  if test "$echo_libs" = "yes" ; then
144
- libs="-lfreetype -lz "
140
+ libs="-lfreetype -lz -lpng16 "
145
141
  if test "${SYSROOT}$libdir" != "/usr/lib" &&
146
142
  test "${SYSROOT}$libdir" != "/usr/lib64"; then
147
143
  echo -L${SYSROOT}$libdir $libs
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.2"
14
+ version="1.6.8"
15
15
  prefix="/home/kou/work/ruby/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.2"
14
+ version="1.6.8"
15
15
  prefix="/home/kou/work/ruby/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
@@ -2,57 +2,46 @@
2
2
  <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3
3
  <fontconfig>
4
4
 
5
- <!-- Alias similar/metric-compatible families from various sources:
6
-
7
- PostScript fonts:
8
- Helvetica
9
- Times
10
- Courier
11
- URW fonts:
12
- Nimbus Sans L
13
- Nimbus Roman No9 L
14
- Nimbus Mono L
15
-
16
- Microsoft fonts:
17
- Arial
18
- Arial Narrow
19
- Times New Roman
20
- Courier New
21
- Liberation fonts:
22
- Liberation Sans
23
- Liberation Sans Narrow
24
- Liberation Serif
25
- Liberation Mono
26
- StarOffice fonts:
27
- Albany
28
- Thorndale
29
- Cumberland
30
- AMT fonts:
31
- Albany AMT
32
- Thorndale AMT
33
- Cumberland AMT
34
- Google CrOS Core fonts:
35
- Arimo
36
- Cousine
37
- Tinos
38
-
39
- Of these, URW fonts are design compatible with PostScrict fonts,
40
- and the Liberation, StarOffice, AMT and CrOS Core ones are
41
- compatible with Microsoft fonts.
42
-
43
- We want for each of them to fallback to any of these
44
- available, but in an order preferring similar designs
45
- first. We do this in three steps:
46
-
47
- 1) Alias each specific to it's generic family.
48
- eg. Liberation Sans to Arial
49
-
50
- 2) Weak alias each generic to the other generic of its family.
51
- eg. Arial to Helvetica
52
-
53
- 3) Alias each generic to its specifics.
54
- eg. Arial to Liberation Sans, Albany, and Albany AMT
55
- -->
5
+ <!--
6
+
7
+ Alias similar/metric-compatible families from various sources:
8
+
9
+ PostScript fonts: URW fonts: GUST fonts: Windows fonts:
10
+ ====================== ==================== ================= ==================
11
+ Helvetica Nimbus Sans L TeX Gyre Heros
12
+ Helvetica Condensed TeX Gyre Heros Cn
13
+ Times Nimbus Roman No9 L TeX Gyre Termes
14
+ Courier Nimbus Mono L TeX Gyre Cursor
15
+ ITC Avant Garde Gothic URW Gothic L TeX Gyre Adventor
16
+ ITC Bookman URW Bookman L TeX Gyre Bonum Bookman Old Style
17
+ ITC Zapf Chancery URW Chancery L TeX Gyre Chorus
18
+ Palatino URW Palladio L TeX Gyre Pagella Palatino Linotype
19
+ New Century Schoolbook Century Schoolbook L TeX Gyre Schola Century Schoolbook
20
+
21
+ Microsoft fonts: Liberation fonts: Google CrOS core fonts: StarOffice fonts: AMT fonts:
22
+ ================ ====================== ======================= ================= ==============
23
+ Arial Liberation Sans Arimo Albany Albany AMT
24
+ Arial Narrow Liberation Sans Narrow
25
+ Times New Roman Liberation Serif Cousine Thorndale Thorndale AMT
26
+ Courier New Liberation Mono Tinos Cumberland Cumberland AMT
27
+
28
+ Microsoft fonts: Other fonts:
29
+ ================ ============
30
+ Georgia Gelasio
31
+
32
+ We want for each of them to fallback to any of these available,
33
+ but in an order preferring similar designs first. We do this in three steps:
34
+
35
+ 1) Alias each specific to its generic family.
36
+ e.g. Liberation Sans to Arial
37
+
38
+ 2) Weak alias each generic to the other generic of its family.
39
+ e.g. Arial to Helvetica
40
+
41
+ 3) Alias each generic to its specifics.
42
+ e.g. Arial to Liberation Sans, Arimo, Albany, and Albany AMT
43
+
44
+ -->
56
45
 
57
46
  <!-- Map specifics to generics -->
58
47
 
@@ -64,6 +53,20 @@
64
53
  </default>
65
54
  </alias>
66
55
 
56
+ <alias binding="same">
57
+ <family>TeX Gyre Heros</family>
58
+ <default>
59
+ <family>Helvetica</family>
60
+ </default>
61
+ </alias>
62
+
63
+ <alias binding="same">
64
+ <family>TeX Gyre Heros Cn</family>
65
+ <default>
66
+ <family>Helvetica Condensed</family>
67
+ </default>
68
+ </alias>
69
+
67
70
  <alias binding="same">
68
71
  <family>Nimbus Roman No9 L</family>
69
72
  <default>
@@ -71,6 +74,13 @@
71
74
  </default>
72
75
  </alias>
73
76
 
77
+ <alias binding="same">
78
+ <family>TeX Gyre Termes</family>
79
+ <default>
80
+ <family>Times</family>
81
+ </default>
82
+ </alias>
83
+
74
84
  <alias binding="same">
75
85
  <family>Nimbus Mono L</family>
76
86
  <default>
@@ -78,6 +88,125 @@
78
88
  </default>
79
89
  </alias>
80
90
 
91
+ <alias binding="same">
92
+ <family>TeX Gyre Cursor</family>
93
+ <default>
94
+ <family>Courier</family>
95
+ </default>
96
+ </alias>
97
+
98
+ <alias binding="same">
99
+ <family>Avant Garde</family>
100
+ <default>
101
+ <family>ITC Avant Garde Gothic</family>
102
+ </default>
103
+ </alias>
104
+
105
+ <alias binding="same">
106
+ <family>URW Gothic L</family>
107
+ <default>
108
+ <family>ITC Avant Garde Gothic</family>
109
+ </default>
110
+ </alias>
111
+
112
+ <alias binding="same">
113
+ <family>TeX Gyre Adventor</family>
114
+ <default>
115
+ <family>ITC Avant Garde Gothic</family>
116
+ </default>
117
+ </alias>
118
+
119
+ <alias binding="same">
120
+ <family>Bookman</family>
121
+ <default>
122
+ <family>ITC Bookman</family>
123
+ </default>
124
+ </alias>
125
+
126
+ <alias binding="same">
127
+ <family>URW Bookman L</family>
128
+ <default>
129
+ <family>ITC Bookman</family>
130
+ </default>
131
+ </alias>
132
+
133
+ <alias binding="same">
134
+ <family>TeX Gyre Bonum</family>
135
+ <default>
136
+ <family>ITC Bookman</family>
137
+ </default>
138
+ </alias>
139
+
140
+ <alias binding="same">
141
+ <family>Bookman Old Style</family>
142
+ <default>
143
+ <family>ITC Bookman</family>
144
+ </default>
145
+ </alias>
146
+
147
+ <alias binding="same">
148
+ <family>Zapf Chancery</family>
149
+ <default>
150
+ <family>ITC Zapf Chancery</family>
151
+ </default>
152
+ </alias>
153
+
154
+ <alias binding="same">
155
+ <family>URW Chancery L</family>
156
+ <default>
157
+ <family>ITC Zapf Chancery</family>
158
+ </default>
159
+ </alias>
160
+
161
+ <alias binding="same">
162
+ <family>TeX Gyre Chorus</family>
163
+ <default>
164
+ <family>ITC Zapf Chancery</family>
165
+ </default>
166
+ </alias>
167
+
168
+ <alias binding="same">
169
+ <family>URW Palladio L</family>
170
+ <default>
171
+ <family>Palatino</family>
172
+ </default>
173
+ </alias>
174
+
175
+ <alias binding="same">
176
+ <family>TeX Gyre Pagella</family>
177
+ <default>
178
+ <family>Palatino</family>
179
+ </default>
180
+ </alias>
181
+
182
+ <alias binding="same">
183
+ <family>Palatino Linotype</family>
184
+ <default>
185
+ <family>Palatino</family>
186
+ </default>
187
+ </alias>
188
+
189
+ <alias binding="same">
190
+ <family>Century Schoolbook L</family>
191
+ <default>
192
+ <family>New Century Schoolbook</family>
193
+ </default>
194
+ </alias>
195
+
196
+ <alias binding="same">
197
+ <family>TeX Gyre Schola</family>
198
+ <default>
199
+ <family>New Century Schoolbook</family>
200
+ </default>
201
+ </alias>
202
+
203
+ <alias binding="same">
204
+ <family>Century Schoolbook</family>
205
+ <default>
206
+ <family>New Century Schoolbook</family>
207
+ </default>
208
+ </alias>
209
+
81
210
 
82
211
  <!-- Microsoft -->
83
212
  <alias binding="same">
@@ -171,11 +300,17 @@
171
300
  </default>
172
301
  </alias>
173
302
 
303
+ <alias binding="same">
304
+ <family>Gelasio</family>
305
+ <default>
306
+ <family>Georgia</family>
307
+ </default>
308
+ </alias>
309
+
174
310
 
175
311
 
176
312
  <!-- Accept the other group as fallback -->
177
313
 
178
-
179
314
  <!-- PostScript -->
180
315
  <alias>
181
316
  <family>Helvetica</family>
@@ -184,6 +319,13 @@
184
319
  </default>
185
320
  </alias>
186
321
 
322
+ <alias>
323
+ <family>Helvetica Condensed</family>
324
+ <default>
325
+ <family>Arial Narrow</family>
326
+ </default>
327
+ </alias>
328
+
187
329
  <alias>
188
330
  <family>Times</family>
189
331
  <default>
@@ -207,6 +349,13 @@
207
349
  </default>
208
350
  </alias>
209
351
 
352
+ <alias>
353
+ <family>Arial Narrow</family>
354
+ <default>
355
+ <family>Helvetica Condensed</family>
356
+ </default>
357
+ </alias>
358
+
210
359
  <alias>
211
360
  <family>Times New Roman</family>
212
361
  <default>
@@ -225,18 +374,26 @@
225
374
 
226
375
  <!-- Map generics to specifics -->
227
376
 
228
-
229
377
  <!-- PostScript -->
230
378
  <alias binding="same">
231
379
  <family>Helvetica</family>
232
380
  <accept>
381
+ <family>TeX Gyre Heros</family>
233
382
  <family>Nimbus Sans L</family>
234
383
  </accept>
235
384
  </alias>
236
385
 
386
+ <alias binding="same">
387
+ <family>Helvetica Condensed</family>
388
+ <accept>
389
+ <family>TeX Gyre Heros Cn</family>
390
+ </accept>
391
+ </alias>
392
+
237
393
  <alias binding="same">
238
394
  <family>Times</family>
239
395
  <accept>
396
+ <family>TeX Gyre Termes</family>
240
397
  <family>Nimbus Roman No9 L</family>
241
398
  </accept>
242
399
  </alias>
@@ -244,10 +401,53 @@
244
401
  <alias binding="same">
245
402
  <family>Courier</family>
246
403
  <accept>
404
+ <family>TeX Gyre Cursor</family>
247
405
  <family>Nimbus Mono L</family>
248
406
  </accept>
249
407
  </alias>
250
408
 
409
+ <alias binding="same">
410
+ <family>ITC Avant Garde Gothic</family>
411
+ <accept>
412
+ <family>TeX Gyre Adventor</family>
413
+ <family>URW Gothic L</family>
414
+ </accept>
415
+ </alias>
416
+
417
+ <alias binding="same">
418
+ <family>ITC Bookman</family>
419
+ <accept>
420
+ <family>Bookman Old Style</family>
421
+ <family>TeX Gyre Bonum</family>
422
+ <family>URW Bookman L</family>
423
+ </accept>
424
+ </alias>
425
+
426
+ <alias binding="same">
427
+ <family>ITC Zapf Chancery</family>
428
+ <accept>
429
+ <family>TeX Gyre Chorus</family>
430
+ <family>URW Chancery L</family>
431
+ </accept>
432
+ </alias>
433
+
434
+ <alias binding="same">
435
+ <family>Palatino</family>
436
+ <accept>
437
+ <family>Palatino Linotype</family>
438
+ <family>TeX Gyre Pagella</family>
439
+ <family>URW Palladio L</family>
440
+ </accept>
441
+ </alias>
442
+
443
+ <alias binding="same">
444
+ <family>New Century Schoolbook</family>
445
+ <accept>
446
+ <family>Century Schoolbook</family>
447
+ <family>TeX Gyre Schola</family>
448
+ <family>Century Schoolbook L</family>
449
+ </accept>
450
+ </alias>
251
451
 
252
452
  <!-- Microsoft -->
253
453
  <alias binding="same">
@@ -287,5 +487,11 @@
287
487
  </accept>
288
488
  </alias>
289
489
 
490
+ <alias binding="same">
491
+ <family>Georgia</family>
492
+ <accept>
493
+ <family>Gelasio</family>
494
+ </accept>
495
+ </alias>
290
496
 
291
497
  </fontconfig>