cairo 1.15.13-x86-mingw32 → 1.15.14-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS +24 -0
- data/README.rdoc +11 -40
- data/Rakefile +4 -2
- data/ext/cairo/rb_cairo.h +1 -1
- data/ext/cairo/rb_cairo_context.c +35 -3
- data/ext/cairo/rb_cairo_font_options.c +5 -6
- data/ext/cairo/rb_cairo_private.h +2 -2
- data/ext/cairo/rb_cairo_scaled_font.c +11 -2
- data/ext/cairo/rb_cairo_surface.c +89 -48
- data/lib/2.2/cairo.so +0 -0
- data/lib/2.3/cairo.so +0 -0
- data/lib/2.4/cairo.so +0 -0
- data/lib/2.5/cairo.so +0 -0
- data/test/{cairo-test-utils.rb → helper.rb} +4 -5
- data/test/run-test.rb +3 -10
- data/test/test_context.rb +6 -6
- data/test/test_font_extents.rb +1 -1
- data/test/test_font_face.rb +1 -1
- data/test/test_font_options.rb +1 -1
- data/test/test_image_surface.rb +2 -2
- data/test/test_pdf_surface.rb +1 -1
- data/test/test_quartz_image_surface.rb +1 -1
- data/test/test_raster_source_pattern.rb +13 -13
- data/test/test_recording_surface.rb +2 -2
- data/test/test_region.rb +1 -1
- data/test/test_scaled_font.rb +1 -1
- data/test/test_script_device.rb +1 -1
- data/test/test_script_surface.rb +1 -1
- data/test/test_surface.rb +5 -5
- data/test/test_svg_surface.rb +1 -1
- data/test/test_tee_surface.rb +2 -2
- data/test/test_text_cluster.rb +1 -1
- data/test/test_text_extents.rb +1 -1
- data/test/test_text_to_glyphs_data.rb +1 -1
- data/test/test_xml_device.rb +1 -1
- data/test/test_xml_surface.rb +2 -2
- data/vendor/local/bin/fc-cache.exe +0 -0
- data/vendor/local/bin/fc-cat.exe +0 -0
- data/vendor/local/bin/fc-conflist.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/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/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/zlib1211.dll +0 -0
- data/vendor/local/include/freetype2/freetype/config/ftconfig.h +82 -3
- data/vendor/local/include/freetype2/freetype/config/ftheader.h +43 -85
- data/vendor/local/include/freetype2/freetype/config/ftoption.h +43 -56
- data/vendor/local/include/freetype2/freetype/config/ftstdlib.h +1 -1
- data/vendor/local/include/freetype2/freetype/freetype.h +185 -85
- data/vendor/local/include/freetype2/freetype/ftadvanc.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftbbox.h +2 -2
- data/vendor/local/include/freetype2/freetype/ftbdf.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftbitmap.h +2 -2
- data/vendor/local/include/freetype2/freetype/ftbzip2.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftcache.h +1 -16
- data/vendor/local/include/freetype2/freetype/ftchapters.h +3 -0
- data/vendor/local/include/freetype2/freetype/ftcid.h +2 -2
- data/vendor/local/include/freetype2/freetype/ftdriver.h +1225 -0
- data/vendor/local/include/freetype2/freetype/fterrdef.h +1 -1
- data/vendor/local/include/freetype2/freetype/fterrors.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftfntfmt.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftgasp.h +6 -1
- data/vendor/local/include/freetype2/freetype/ftglyph.h +3 -3
- data/vendor/local/include/freetype2/freetype/ftgxval.h +5 -5
- data/vendor/local/include/freetype2/freetype/ftgzip.h +4 -1
- data/vendor/local/include/freetype2/freetype/ftimage.h +18 -18
- data/vendor/local/include/freetype2/freetype/ftincrem.h +2 -13
- data/vendor/local/include/freetype2/freetype/ftlcdfil.h +5 -18
- data/vendor/local/include/freetype2/freetype/ftlist.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftlzw.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftmac.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftmm.h +99 -11
- data/vendor/local/include/freetype2/freetype/ftmodapi.h +12 -11
- data/vendor/local/include/freetype2/freetype/ftmoderr.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftotval.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftoutln.h +4 -7
- data/vendor/local/include/freetype2/freetype/ftparams.h +205 -0
- data/vendor/local/include/freetype2/freetype/ftpfr.h +4 -4
- data/vendor/local/include/freetype2/freetype/ftrender.h +2 -2
- data/vendor/local/include/freetype2/freetype/ftsizes.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftsnames.h +8 -42
- data/vendor/local/include/freetype2/freetype/ftstroke.h +6 -6
- data/vendor/local/include/freetype2/freetype/ftsynth.h +1 -1
- data/vendor/local/include/freetype2/freetype/ftsystem.h +1 -1
- data/vendor/local/include/freetype2/freetype/fttrigon.h +1 -1
- data/vendor/local/include/freetype2/freetype/fttypes.h +2 -2
- data/vendor/local/include/freetype2/freetype/ftwinfnt.h +2 -2
- data/vendor/local/include/freetype2/freetype/t1tables.h +10 -1
- data/vendor/local/include/freetype2/freetype/ttnameid.h +2 -2
- data/vendor/local/include/freetype2/freetype/tttables.h +1 -1
- data/vendor/local/include/freetype2/freetype/tttags.h +1 -1
- data/vendor/local/include/freetype2/ft2build.h +1 -1
- data/vendor/local/include/libpng16/png.h +40 -40
- data/vendor/local/include/libpng16/pngconf.h +15 -14
- data/vendor/local/include/libpng16/pnglibconf.h +1 -1
- data/vendor/local/include/png.h +40 -40
- data/vendor/local/include/pngconf.h +15 -14
- data/vendor/local/include/pnglibconf.h +1 -1
- data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
- data/vendor/local/lib/libcairo-gobject.la +1 -1
- 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.a +0 -0
- data/vendor/local/lib/libcairo.dll.a +0 -0
- data/vendor/local/lib/libfontconfig.dll.a +0 -0
- 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.dll.a +0 -0
- 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.dll.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/freetype2.pc +2 -2
- data/vendor/local/lib/pkgconfig/libpng.pc +1 -1
- data/vendor/local/lib/pkgconfig/libpng16.pc +1 -1
- data/vendor/local/share/aclocal/freetype2.m4 +1 -1
- data/vendor/local/share/license/freetype/README +9 -9
- data/vendor/local/share/license/freetype/README.git +1 -1
- data/vendor/local/share/license/libpng/README +2 -2
- data/vendor/local/share/man/man3/libpng.3 +50 -54
- data/vendor/local/share/man/man3/libpngpf.3 +8 -4
- metadata +9 -14
- data/vendor/local/bin/freetype-config +0 -211
- data/vendor/local/include/freetype2/freetype/ftautoh.h +0 -533
- data/vendor/local/include/freetype2/freetype/ftcffdrv.h +0 -321
- data/vendor/local/include/freetype2/freetype/ftpcfdrv.h +0 -105
- data/vendor/local/include/freetype2/freetype/ftttdrv.h +0 -328
- data/vendor/local/include/freetype2/freetype/ttunpat.h +0 -63
- data/vendor/local/share/man/man1/freetype-config.1 +0 -146
data/lib/2.2/cairo.so
CHANGED
Binary file
|
data/lib/2.3/cairo.so
CHANGED
Binary file
|
data/lib/2.4/cairo.so
CHANGED
Binary file
|
data/lib/2.5/cairo.so
CHANGED
Binary file
|
@@ -1,9 +1,8 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
4
|
-
require 'test/unit/notify'
|
1
|
+
require "cairo"
|
2
|
+
require "poppler"
|
3
|
+
require "stringio"
|
5
4
|
|
6
|
-
module
|
5
|
+
module Helper
|
7
6
|
private
|
8
7
|
def only_cairo_version(major, minor, micro=nil)
|
9
8
|
unless Cairo.satisfied_version?(major, minor, micro)
|
data/test/run-test.rb
CHANGED
@@ -11,19 +11,12 @@ if system("which make >/dev/null 2>&1")
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
-
require
|
15
|
-
require 'bundler/setup'
|
16
|
-
require 'test-unit'
|
14
|
+
require "test-unit"
|
17
15
|
|
18
16
|
$LOAD_PATH.unshift(base_dir)
|
19
17
|
$LOAD_PATH.unshift(ext_dir)
|
20
18
|
$LOAD_PATH.unshift(lib_dir)
|
21
19
|
|
22
|
-
|
23
|
-
require 'cairo-test-utils'
|
20
|
+
require_relative "helper"
|
24
21
|
|
25
|
-
|
26
|
-
require file.sub(/\.rb$/, '')
|
27
|
-
end
|
28
|
-
|
29
|
-
exit Test::Unit::AutoRunner.run(false)
|
22
|
+
exit Test::Unit::AutoRunner.run(true, test_dir)
|
data/test/test_context.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
class ContextTest < Test::Unit::TestCase
|
2
|
-
include
|
2
|
+
include Helper
|
3
3
|
|
4
4
|
def setup
|
5
5
|
@output = StringIO.new
|
@@ -14,17 +14,17 @@ class ContextTest < Test::Unit::TestCase
|
|
14
14
|
assert_equal("%%EOF\n", @output.string[-6..-1])
|
15
15
|
end
|
16
16
|
|
17
|
-
def
|
18
|
-
Cairo::Context.
|
17
|
+
def test_create_with_block
|
18
|
+
Cairo::Context.create(@surface) do |context|
|
19
19
|
@surface.destroy
|
20
20
|
assert_not_equal("%%EOF\n", @output.string[-6..-1])
|
21
21
|
end
|
22
22
|
assert_equal("%%EOF\n", @output.string[-6..-1])
|
23
23
|
end
|
24
24
|
|
25
|
-
def
|
25
|
+
def test_create_with_block_and_destroy
|
26
26
|
assert_nothing_raised do
|
27
|
-
Cairo::Context.
|
27
|
+
Cairo::Context.create(@surface) do |context|
|
28
28
|
context.destroy
|
29
29
|
end
|
30
30
|
end
|
@@ -106,7 +106,7 @@ class ContextTest < Test::Unit::TestCase
|
|
106
106
|
end
|
107
107
|
|
108
108
|
test("LINK") do
|
109
|
-
Cairo::Context.
|
109
|
+
Cairo::Context.create(@surface) do |context|
|
110
110
|
context.tag(Cairo::Tag::LINK, "uri='http://localhost/'") do
|
111
111
|
context.show_text("localhost")
|
112
112
|
end
|
data/test/test_font_extents.rb
CHANGED
data/test/test_font_face.rb
CHANGED
data/test/test_font_options.rb
CHANGED
data/test/test_image_surface.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'cairo'
|
2
2
|
|
3
3
|
class ImageSurfaceTest < Test::Unit::TestCase
|
4
|
-
include
|
4
|
+
include Helper
|
5
5
|
|
6
6
|
def test_cloned_data
|
7
7
|
width = 10
|
@@ -15,7 +15,7 @@ class ImageSurfaceTest < Test::Unit::TestCase
|
|
15
15
|
:a1, width, height,
|
16
16
|
original_surface.stride)
|
17
17
|
|
18
|
-
Cairo::Context.
|
18
|
+
Cairo::Context.create(cloned_surface) do |context|
|
19
19
|
context.set_source_rgb(255, 255, 255)
|
20
20
|
context.scale(width, height)
|
21
21
|
context.move_to(0, 0)
|
data/test/test_pdf_surface.rb
CHANGED
@@ -2,15 +2,15 @@ require "cairo"
|
|
2
2
|
require "tempfile"
|
3
3
|
|
4
4
|
class RasterSourcePatternTest < Test::Unit::TestCase
|
5
|
-
include
|
5
|
+
include Helper
|
6
6
|
|
7
7
|
def setup
|
8
8
|
only_pattern("RasterSource")
|
9
9
|
end
|
10
10
|
|
11
11
|
def test_acquire_and_release
|
12
|
-
Cairo::ImageSurface.
|
13
|
-
Cairo::Context.
|
12
|
+
Cairo::ImageSurface.create(100, 100) do |surface|
|
13
|
+
Cairo::Context.create(surface) do |context|
|
14
14
|
context.set_source(1, 1, 1)
|
15
15
|
context.paint
|
16
16
|
|
@@ -20,7 +20,7 @@ class RasterSourcePatternTest < Test::Unit::TestCase
|
|
20
20
|
called << :acquire
|
21
21
|
red_image = target.create_similar_image(extents.width, extents.height)
|
22
22
|
red_image.set_device_offset(extents.x, extents.y)
|
23
|
-
Cairo::Context.
|
23
|
+
Cairo::Context.create(red_image) do |red_image_context|
|
24
24
|
red_image_context.set_source(1, 0, 0)
|
25
25
|
red_image_context.paint
|
26
26
|
end
|
@@ -46,8 +46,8 @@ class RasterSourcePatternTest < Test::Unit::TestCase
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def test_success
|
49
|
-
Cairo::RecordingSurface.
|
50
|
-
Cairo::Context.
|
49
|
+
Cairo::RecordingSurface.create(0, 0, 100, 100) do |surface|
|
50
|
+
Cairo::Context.create(surface) do |context|
|
51
51
|
called = []
|
52
52
|
raster_source = Cairo::RasterSourcePattern.new(100, 100)
|
53
53
|
raster_source.snapshot do |pattern|
|
@@ -63,8 +63,8 @@ class RasterSourcePatternTest < Test::Unit::TestCase
|
|
63
63
|
end
|
64
64
|
|
65
65
|
def test_error
|
66
|
-
Cairo::RecordingSurface.
|
67
|
-
Cairo::Context.
|
66
|
+
Cairo::RecordingSurface.create(0, 0, 100, 100) do |surface|
|
67
|
+
Cairo::Context.create(surface) do |context|
|
68
68
|
called = []
|
69
69
|
raster_source = Cairo::RasterSourcePattern.new(100, 100)
|
70
70
|
raster_source.snapshot do |pattern|
|
@@ -92,8 +92,8 @@ class RasterSourcePatternTest < Test::Unit::TestCase
|
|
92
92
|
def test_success
|
93
93
|
output = StringIO.new
|
94
94
|
device = Cairo::ScriptDevice.new(output)
|
95
|
-
Cairo::ScriptSurface.
|
96
|
-
Cairo::Context.
|
95
|
+
Cairo::ScriptSurface.create(device, 100, 200) do |surface|
|
96
|
+
Cairo::Context.create(surface) do |context|
|
97
97
|
called = []
|
98
98
|
|
99
99
|
raster_source = Cairo::RasterSourcePattern.new(100, 100)
|
@@ -102,7 +102,7 @@ class RasterSourcePatternTest < Test::Unit::TestCase
|
|
102
102
|
red_image = target.create_similar_image(extents.width,
|
103
103
|
extents.height)
|
104
104
|
red_image.set_device_offset(extents.x, extents.y)
|
105
|
-
Cairo::Context.
|
105
|
+
Cairo::Context.create(red_image) do |red_image_context|
|
106
106
|
red_image_context.set_source(1, 0, 0)
|
107
107
|
red_image_context.paint
|
108
108
|
end
|
@@ -129,8 +129,8 @@ class RasterSourcePatternTest < Test::Unit::TestCase
|
|
129
129
|
def test_error
|
130
130
|
output = StringIO.new
|
131
131
|
device = Cairo::ScriptDevice.new(output)
|
132
|
-
Cairo::ScriptSurface.
|
133
|
-
Cairo::Context.
|
132
|
+
Cairo::ScriptSurface.create(device, 100, 200) do |surface|
|
133
|
+
Cairo::Context.create(surface) do |context|
|
134
134
|
called = []
|
135
135
|
|
136
136
|
raster_source = Cairo::RasterSourcePattern.new(100, 100)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
class RecordingSurfaceTest < Test::Unit::TestCase
|
2
|
-
include
|
2
|
+
include Helper
|
3
3
|
|
4
4
|
def setup
|
5
5
|
only_surface("Recording")
|
@@ -10,7 +10,7 @@ class RecordingSurfaceTest < Test::Unit::TestCase
|
|
10
10
|
only_cairo_version(1, 12, 0)
|
11
11
|
surface = Cairo::RecordingSurface.new(10, 20, 300, 400)
|
12
12
|
assert_equal([0.0, 0.0, 0.0, 0.0], surface.ink_extents)
|
13
|
-
Cairo::Context.
|
13
|
+
Cairo::Context.create(surface) do |context|
|
14
14
|
context.move_to(15, 30)
|
15
15
|
context.line_to(80, 100)
|
16
16
|
context.stroke
|
data/test/test_region.rb
CHANGED
data/test/test_scaled_font.rb
CHANGED
data/test/test_script_device.rb
CHANGED
data/test/test_script_surface.rb
CHANGED
data/test/test_surface.rb
CHANGED
@@ -2,7 +2,7 @@ require 'cairo'
|
|
2
2
|
require 'stringio'
|
3
3
|
|
4
4
|
class SurfaceTest < Test::Unit::TestCase
|
5
|
-
include
|
5
|
+
include Helper
|
6
6
|
|
7
7
|
def test_new
|
8
8
|
output = StringIO.new
|
@@ -12,17 +12,17 @@ class SurfaceTest < Test::Unit::TestCase
|
|
12
12
|
assert_equal("%%EOF\n", output.string[-6..-1])
|
13
13
|
end
|
14
14
|
|
15
|
-
def
|
15
|
+
def test_create_with_block
|
16
16
|
output = StringIO.new
|
17
|
-
Cairo::PDFSurface.
|
17
|
+
Cairo::PDFSurface.create(output, 10, 10) do |surface|
|
18
18
|
assert_not_equal("%%EOF\n", output.string[-6..-1])
|
19
19
|
end
|
20
20
|
assert_equal("%%EOF\n", output.string[-6..-1])
|
21
21
|
end
|
22
22
|
|
23
|
-
def
|
23
|
+
def test_create_with_block_and_finish
|
24
24
|
assert_nothing_raised do
|
25
|
-
Cairo::PDFSurface.
|
25
|
+
Cairo::PDFSurface.create(StringIO.new, 10, 10) do |surface|
|
26
26
|
surface.finish
|
27
27
|
end
|
28
28
|
end
|
data/test/test_svg_surface.rb
CHANGED
data/test/test_tee_surface.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
class TeeSurfaceTest < Test::Unit::TestCase
|
2
|
-
include
|
2
|
+
include Helper
|
3
3
|
|
4
4
|
def setup
|
5
5
|
only_surface("Tee")
|
@@ -16,7 +16,7 @@ class TeeSurfaceTest < Test::Unit::TestCase
|
|
16
16
|
|
17
17
|
surface = Cairo::TeeSurface.new(surface1)
|
18
18
|
surface << surface2
|
19
|
-
Cairo::Context.
|
19
|
+
Cairo::Context.create(surface) do |context|
|
20
20
|
context.move_to(15, 30)
|
21
21
|
context.line_to(80, 100)
|
22
22
|
context.stroke
|
data/test/test_text_cluster.rb
CHANGED
data/test/test_text_extents.rb
CHANGED
data/test/test_xml_device.rb
CHANGED
data/test/test_xml_surface.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
class XMLSurfaceTest < Test::Unit::TestCase
|
2
|
-
include
|
2
|
+
include Helper
|
3
3
|
|
4
4
|
def setup
|
5
5
|
only_surface("XML")
|
@@ -10,7 +10,7 @@ class XMLSurfaceTest < Test::Unit::TestCase
|
|
10
10
|
output = StringIO.new
|
11
11
|
device = Cairo::XMLDevice.new(output)
|
12
12
|
surface = Cairo::XMLSurface.new(device, 100, 200)
|
13
|
-
Cairo::Context.
|
13
|
+
Cairo::Context.create(surface) do |context|
|
14
14
|
context.move_to(15, 30)
|
15
15
|
context.line_to(80, 100)
|
16
16
|
context.stroke
|
Binary file
|
data/vendor/local/bin/fc-cat.exe
CHANGED
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
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/local/bin/pngfix.exe
CHANGED
Binary file
|
Binary file
|