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.
- checksums.yaml +7 -0
- data/Gemfile +1 -1
- data/NEWS +24 -0
- data/README.rdoc +1 -1
- data/Rakefile +57 -14
- data/ext/cairo/rb_cairo.h +1 -1
- data/ext/cairo/rb_cairo_surface.c +2 -0
- data/lib/1.9/cairo.so +0 -0
- data/lib/2.0/cairo.so +0 -0
- data/lib/2.1/cairo.so +0 -0
- data/lib/cairo/papers.rb +24 -0
- data/test/test_image_surface.rb +28 -0
- data/vendor/local/bin/fc-cache.exe +0 -0
- data/vendor/local/bin/fc-cat.exe +0 -0
- data/vendor/local/bin/fc-list.exe +0 -0
- data/vendor/local/bin/fc-match.exe +0 -0
- data/vendor/local/bin/fc-pattern.exe +0 -0
- data/vendor/local/bin/fc-query.exe +0 -0
- data/vendor/local/bin/fc-scan.exe +0 -0
- data/vendor/local/bin/fc-validate.exe +0 -0
- data/vendor/local/bin/freetype-config +6 -10
- data/vendor/local/bin/libcairo-2.dll +0 -0
- data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
- data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
- data/vendor/local/bin/libfontconfig-1.dll +0 -0
- data/vendor/local/bin/libfreetype-6.dll +0 -0
- data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
- data/vendor/local/bin/libpixman-1-0.dll +0 -0
- data/vendor/local/bin/libpng-config +1 -1
- data/vendor/local/bin/libpng16-16.dll +0 -0
- data/vendor/local/bin/libpng16-config +1 -1
- data/vendor/local/bin/libxml2-2.dll +0 -0
- data/vendor/local/bin/png-fix-itxt.exe +0 -0
- data/vendor/local/bin/pngfix.exe +0 -0
- data/vendor/local/bin/xmlcatalog.exe +0 -0
- data/vendor/local/bin/xmllint.exe +0 -0
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/etc/fonts/conf.d/30-metric-aliases.conf +259 -53
- data/vendor/local/etc/fonts/conf.d/30-urw-aliases.conf +4 -20
- data/vendor/local/etc/fonts/conf.d/45-latin.conf +16 -0
- data/vendor/local/etc/fonts/conf.d/README +3 -3
- data/vendor/local/etc/fonts/fonts.conf +1 -1
- data/vendor/local/include/cairo/cairo-gobject.h +4 -0
- data/vendor/local/include/cairo/cairo-version.h +1 -1
- data/vendor/local/include/fontconfig/fcprivate.h +2 -1
- data/vendor/local/include/fontconfig/fontconfig.h +7 -3
- data/vendor/local/include/freetype2/{freetype/config → config}/ftconfig.h +105 -13
- data/vendor/local/include/freetype2/{freetype/config → config}/ftheader.h +71 -58
- data/vendor/local/include/freetype2/{freetype/config → config}/ftmodule.h +0 -0
- data/vendor/local/include/freetype2/{freetype/config → config}/ftoption.h +41 -35
- data/vendor/local/include/freetype2/{freetype/config → config}/ftstdlib.h +0 -0
- data/vendor/local/include/freetype2/{freetype/freetype.h → freetype.h} +83 -40
- data/vendor/local/include/freetype2/ft2build.h +42 -0
- data/vendor/local/include/freetype2/{freetype/ftadvanc.h → ftadvanc.h} +14 -11
- data/vendor/local/include/freetype2/{freetype/ftautoh.h → ftautoh.h} +11 -3
- data/vendor/local/include/freetype2/{freetype/ftbbox.h → ftbbox.h} +3 -3
- data/vendor/local/include/freetype2/{freetype/ftbdf.h → ftbdf.h} +0 -0
- data/vendor/local/include/freetype2/{freetype/ftbitmap.h → ftbitmap.h} +4 -4
- data/vendor/local/include/freetype2/{freetype/ftbzip2.h → ftbzip2.h} +0 -0
- data/vendor/local/include/freetype2/{freetype/ftcache.h → ftcache.h} +4 -87
- data/vendor/local/include/freetype2/ftcffdrv.h +254 -0
- data/vendor/local/include/freetype2/{freetype/ftchapters.h → ftchapters.h} +4 -16
- data/vendor/local/include/freetype2/{freetype/ftcid.h → ftcid.h} +0 -0
- data/vendor/local/include/freetype2/{freetype/fterrdef.h → fterrdef.h} +0 -0
- data/vendor/local/include/freetype2/{freetype/fterrors.h → fterrors.h} +0 -0
- data/vendor/local/include/freetype2/{freetype/ftgasp.h → ftgasp.h} +0 -0
- data/vendor/local/include/freetype2/{freetype/ftglyph.h → ftglyph.h} +5 -5
- data/vendor/local/include/freetype2/{freetype/ftgxval.h → ftgxval.h} +5 -5
- data/vendor/local/include/freetype2/{freetype/ftgzip.h → ftgzip.h} +48 -1
- data/vendor/local/include/freetype2/{freetype/ftimage.h → ftimage.h} +20 -11
- data/vendor/local/include/freetype2/{freetype/ftincrem.h → ftincrem.h} +0 -0
- data/vendor/local/include/freetype2/{freetype/ftlcdfil.h → ftlcdfil.h} +3 -3
- data/vendor/local/include/freetype2/{freetype/ftlist.h → ftlist.h} +6 -6
- data/vendor/local/include/freetype2/{freetype/ftlzw.h → ftlzw.h} +0 -0
- data/vendor/local/include/freetype2/{freetype/ftmac.h → ftmac.h} +3 -3
- data/vendor/local/include/freetype2/{freetype/ftmm.h → ftmm.h} +3 -4
- data/vendor/local/include/freetype2/{freetype/ftmodapi.h → ftmodapi.h} +15 -8
- data/vendor/local/include/freetype2/{freetype/ftmoderr.h → ftmoderr.h} +0 -0
- data/vendor/local/include/freetype2/{freetype/ftotval.h → ftotval.h} +3 -3
- data/vendor/local/include/freetype2/{freetype/ftoutln.h → ftoutln.h} +16 -7
- data/vendor/local/include/freetype2/{freetype/ftpfr.h → ftpfr.h} +0 -0
- data/vendor/local/include/freetype2/{freetype/ftrender.h → ftrender.h} +0 -0
- data/vendor/local/include/freetype2/{freetype/ftsizes.h → ftsizes.h} +2 -2
- data/vendor/local/include/freetype2/{freetype/ftsnames.h → ftsnames.h} +3 -3
- data/vendor/local/include/freetype2/{freetype/ftstroke.h → ftstroke.h} +0 -0
- data/vendor/local/include/freetype2/{freetype/ftsynth.h → ftsynth.h} +2 -2
- data/vendor/local/include/freetype2/{freetype/ftsystem.h → ftsystem.h} +0 -0
- data/vendor/local/include/freetype2/{freetype/fttrigon.h → fttrigon.h} +0 -0
- data/vendor/local/include/freetype2/ftttdrv.h +170 -0
- data/vendor/local/include/freetype2/{freetype/fttypes.h → fttypes.h} +3 -3
- data/vendor/local/include/freetype2/{freetype/ftwinfnt.h → ftwinfnt.h} +4 -3
- data/vendor/local/include/freetype2/{freetype/ftxf86.h → ftxf86.h} +2 -2
- data/vendor/local/include/freetype2/{freetype/t1tables.h → t1tables.h} +0 -0
- data/vendor/local/include/freetype2/{freetype/ttnameid.h → ttnameid.h} +2 -2
- data/vendor/local/include/freetype2/{freetype/tttables.h → tttables.h} +24 -14
- data/vendor/local/include/freetype2/{freetype/tttags.h → tttags.h} +5 -1
- data/vendor/local/include/freetype2/{freetype/ttunpat.h → ttunpat.h} +0 -0
- data/vendor/local/include/libpng16/png.h +30 -12
- data/vendor/local/include/libpng16/pngconf.h +2 -1
- data/vendor/local/include/libpng16/pnglibconf.h +3 -3
- data/vendor/local/include/pixman-1/pixman-version.h +3 -3
- data/vendor/local/include/pixman-1/pixman.h +1 -1
- data/vendor/local/include/png.h +30 -12
- data/vendor/local/include/pngconf.h +2 -1
- data/vendor/local/include/pnglibconf.h +3 -3
- data/vendor/local/lib/fontconfig.def +2 -1
- data/vendor/local/lib/libcairo-gobject.a +0 -0
- data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
- data/vendor/local/lib/libcairo-gobject.la +3 -3
- data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
- data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
- data/vendor/local/lib/libcairo-script-interpreter.la +3 -3
- data/vendor/local/lib/libcairo.a +0 -0
- data/vendor/local/lib/libcairo.dll.a +0 -0
- data/vendor/local/lib/libcairo.la +3 -3
- data/vendor/local/lib/libfontconfig.a +0 -0
- data/vendor/local/lib/libfontconfig.dll.a +0 -0
- data/vendor/local/lib/libfontconfig.la +3 -3
- data/vendor/local/lib/libfreetype.a +0 -0
- data/vendor/local/lib/libfreetype.dll.a +0 -0
- data/vendor/local/lib/libfreetype.la +3 -3
- data/vendor/local/lib/libpixman-1.a +0 -0
- data/vendor/local/lib/libpixman-1.dll.a +0 -0
- data/vendor/local/lib/libpixman-1.la +4 -4
- data/vendor/local/lib/libpng.a +0 -0
- data/vendor/local/lib/libpng.dll.a +0 -0
- data/vendor/local/lib/libpng.la +2 -2
- data/vendor/local/lib/libpng16.a +0 -0
- data/vendor/local/lib/libpng16.dll.a +0 -0
- data/vendor/local/lib/libpng16.la +2 -2
- data/vendor/local/lib/libxml2.a +0 -0
- data/vendor/local/lib/libxml2.dll.a +0 -0
- data/vendor/local/lib/libz.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/cairo-fc.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-ft.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-gobject.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-pdf.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-png.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-ps.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-script.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-svg.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-win32.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo.pc +3 -3
- data/vendor/local/lib/pkgconfig/fontconfig.pc +6 -4
- data/vendor/local/lib/pkgconfig/freetype2.pc +4 -4
- data/vendor/local/lib/pkgconfig/libpng.pc +1 -1
- data/vendor/local/lib/pkgconfig/libpng16.pc +1 -1
- data/vendor/local/lib/pkgconfig/pixman-1.pc +1 -1
- data/vendor/local/share/fontconfig/conf.avail/30-metric-aliases.conf +259 -53
- data/vendor/local/share/fontconfig/conf.avail/30-urw-aliases.conf +4 -20
- data/vendor/local/share/fontconfig/conf.avail/45-latin.conf +16 -0
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +1 -1
- data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +1 -1
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +1 -1
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +3 -3
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +3 -3
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +6 -6
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html +3 -3
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +8 -8
- data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +3 -3
- data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +14 -14
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +1 -1
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +5 -5
- data/vendor/local/share/gtk-doc/html/cairo/cairo-XCB-Surfaces.html +0 -8
- data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +1 -1
- data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-XRender-Backend.html +1 -1
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +3 -3
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +4 -4
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +2 -2
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +31 -31
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +11 -11
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +13 -13
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +8 -8
- data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +11 -11
- data/vendor/local/share/gtk-doc/html/cairo/index.html +1 -1
- data/vendor/local/share/license/fontconfig/README +83 -2
- data/vendor/local/share/license/freetype/README +5 -5
- data/vendor/local/share/license/freetype/README.git +5 -1
- data/vendor/local/share/license/libpng/README +18 -18
- data/vendor/local/share/man/man3/libpng.3 +136 -54
- data/vendor/local/share/man/man3/libpngpf.3 +2 -2
- data/vendor/local/share/man/man5/png.5 +1 -1
- metadata +74 -80
- data/vendor/local/etc/fonts/fonts.conf.bak +0 -155
- data/vendor/local/include/freetype2/freetype/ftcffdrv.h +0 -150
- 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
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
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 |
|
41
|
-
if /mingw|mswin/ =~
|
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
|
-
|
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
|
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
|
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.
|
375
|
-
:download_base_url => "http://sourceforge.net/projects/libpng/files/libpng16/1.6.
|
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.
|
383
|
-
:download_base_url => "http://sourceforge.net/projects/freetype/files/freetype2/2.
|
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.
|
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.
|
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.
|
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.
|
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
@@ -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
|
data/vendor/local/bin/fc-cat.exe
CHANGED
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
|
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
|
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
|
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
|
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
|
-
|
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
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/local/bin/zlib1.dll
CHANGED
Binary file
|
@@ -2,57 +2,46 @@
|
|
2
2
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
3
3
|
<fontconfig>
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
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>
|