rubyquartz 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYRIGHT +24 -0
- data/History.txt +9 -0
- data/Manifest.txt +95 -0
- data/README.txt +71 -0
- data/Rakefile +51 -0
- data/ext/ExportedSymbols.txt +1 -0
- data/ext/bitmap.c +129 -0
- data/ext/bitmap.h +38 -0
- data/ext/bitmap_context.c +67 -0
- data/ext/bitmap_context.h +31 -0
- data/ext/color.c +145 -0
- data/ext/color.h +34 -0
- data/ext/colorspace.c +94 -0
- data/ext/colorspace.h +33 -0
- data/ext/context.c +393 -0
- data/ext/context.h +33 -0
- data/ext/extconf.rb +48 -0
- data/ext/font.c +148 -0
- data/ext/font.h +32 -0
- data/ext/function.c +124 -0
- data/ext/function.h +32 -0
- data/ext/image.c +140 -0
- data/ext/image.h +31 -0
- data/ext/image_source.c +143 -0
- data/ext/image_source.h +31 -0
- data/ext/pdf_document.c +91 -0
- data/ext/pdf_document.h +31 -0
- data/ext/pdf_page.c +79 -0
- data/ext/pdf_page.h +31 -0
- data/ext/point.c +42 -0
- data/ext/point.h +32 -0
- data/ext/rect.c +45 -0
- data/ext/rect.h +32 -0
- data/ext/rubyquartz.c +80 -0
- data/ext/rubyquartz.h +29 -0
- data/ext/rubyquartz_prefix.h +45 -0
- data/ext/shading.c +68 -0
- data/ext/shading.h +32 -0
- data/ext/size.c +42 -0
- data/ext/size.h +32 -0
- data/ext/text.c +258 -0
- data/ext/text.h +39 -0
- data/ext/utilities.c +181 -0
- data/ext/utilities.h +43 -0
- data/lib/rubyquartz.rb +59 -0
- data/lib/rubyquartz/bitmap.rb +62 -0
- data/lib/rubyquartz/bitmap_context.rb +50 -0
- data/lib/rubyquartz/color.rb +68 -0
- data/lib/rubyquartz/colorspace.rb +42 -0
- data/lib/rubyquartz/context.rb +116 -0
- data/lib/rubyquartz/font.rb +48 -0
- data/lib/rubyquartz/function.rb +57 -0
- data/lib/rubyquartz/image.rb +48 -0
- data/lib/rubyquartz/image_source.rb +50 -0
- data/lib/rubyquartz/pdf_document.rb +47 -0
- data/lib/rubyquartz/pdf_page.rb +54 -0
- data/lib/rubyquartz/point.rb +63 -0
- data/lib/rubyquartz/rect.rb +127 -0
- data/lib/rubyquartz/shading.rb +48 -0
- data/lib/rubyquartz/size.rb +39 -0
- data/lib/rubyquartz/text.rb +50 -0
- data/test/images/TestContext.test_begin_path.png +0 -0
- data/test/images/TestContext.test_draw_image.png +0 -0
- data/test/images/TestContext.test_draw_path.png +0 -0
- data/test/images/TestContext.test_draw_pdf.png +0 -0
- data/test/images/TestContext.test_draw_shading_axial.png +0 -0
- data/test/images/TestContext.test_draw_text.png +0 -0
- data/test/images/TestContext.test_draw_text_baseline_aligned.png +0 -0
- data/test/images/TestContext.test_draw_text_flipped.png +0 -0
- data/test/images/TestContext.test_draw_text_flipped_non_zero_point.png +0 -0
- data/test/images/TestContext.test_draw_text_non_zero_point.png +0 -0
- data/test/images/TestContext.test_fill.png +0 -0
- data/test/images/TestContext.test_gsave.png +0 -0
- data/test/images/TestContext.test_gsave_block.png +0 -0
- data/test/images/TestContext.test_line_width.png +0 -0
- data/test/images/TestContext.test_lineto.png +0 -0
- data/test/images/TestContext.test_rotate.png +0 -0
- data/test/images/TestContext.test_rounded_rect.png +0 -0
- data/test/images/TestContext.test_scale.png +0 -0
- data/test/images/TestContext.test_set_line_dash.png +0 -0
- data/test/images/TestContext.test_shadow.png +0 -0
- data/test/images/TestContext.test_stroke_rect.png +0 -0
- data/test/images/TestContext.test_text_bounds.png +0 -0
- data/test/images/TestContext.test_translate.png +0 -0
- data/test/inputs/circle.pdf +0 -0
- data/test/inputs/wash.png +0 -0
- data/test/rubyquartz_test.rb +51 -0
- data/test/tc_bitmap_context.rb +43 -0
- data/test/tc_color.rb +43 -0
- data/test/tc_context.rb +315 -0
- data/test/tc_font.rb +54 -0
- data/test/tc_image_source.rb +69 -0
- data/test/tc_pdf_document.rb +63 -0
- data/test/tc_pdf_page.rb +53 -0
- data/test/tc_text.rb +39 -0
- metadata +156 -0
data/test/tc_font.rb
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# Copyright (c) 2006, The Omni Group, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# OPEN PERMISSION TO USE AND REPRODUCE OMNI SOURCE CODE SOFTWARE
|
4
|
+
#
|
5
|
+
# Omni Source Code software is available from The Omni Group on their web
|
6
|
+
# site at www.omnigroup.com.
|
7
|
+
#
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
9
|
+
# copy of this software and associated documentation files (the "Software"),
|
10
|
+
# to deal in the Software without restriction, including without limitation
|
11
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
12
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
13
|
+
# Software is furnished to do so, subject to the following conditions:
|
14
|
+
#
|
15
|
+
# Any original copyright notices and this permission notice shall be included
|
16
|
+
# in all copies or substantial portions of the Software.
|
17
|
+
#
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
21
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
23
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
24
|
+
# DEALINGS IN THE SOFTWARE.
|
25
|
+
|
26
|
+
require 'rubyquartz_test'
|
27
|
+
include Quartz
|
28
|
+
|
29
|
+
class TestFont < TestQuartz::TestCase
|
30
|
+
def test_families
|
31
|
+
families = Font.families
|
32
|
+
assert(families.length > 0)
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_fonts
|
36
|
+
families = Font.families
|
37
|
+
fonts = Font.fonts_in_family(families[0])
|
38
|
+
assert(fonts.length > 0)
|
39
|
+
end
|
40
|
+
|
41
|
+
def test_default_settings
|
42
|
+
font = Font.new
|
43
|
+
assert_not_nil(font)
|
44
|
+
assert_equal(font.name, "LucidaGrande")
|
45
|
+
assert_equal(font.size, 12)
|
46
|
+
end
|
47
|
+
|
48
|
+
def test_init
|
49
|
+
font = Font.new(:name => "Times-Roman", :size => 64)
|
50
|
+
assert_not_nil(font)
|
51
|
+
assert_equal(font.name, "Times-Roman")
|
52
|
+
assert_equal(font.size, 64)
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# Copyright (c) 2006, The Omni Group, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# OPEN PERMISSION TO USE AND REPRODUCE OMNI SOURCE CODE SOFTWARE
|
4
|
+
#
|
5
|
+
# Omni Source Code software is available from The Omni Group on their web
|
6
|
+
# site at www.omnigroup.com.
|
7
|
+
#
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
9
|
+
# copy of this software and associated documentation files (the "Software"),
|
10
|
+
# to deal in the Software without restriction, including without limitation
|
11
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
12
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
13
|
+
# Software is furnished to do so, subject to the following conditions:
|
14
|
+
#
|
15
|
+
# Any original copyright notices and this permission notice shall be included
|
16
|
+
# in all copies or substantial portions of the Software.
|
17
|
+
#
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
21
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
23
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
24
|
+
# DEALINGS IN THE SOFTWARE.
|
25
|
+
|
26
|
+
require 'rubyquartz_test'
|
27
|
+
include Quartz
|
28
|
+
|
29
|
+
class TestImageSource < TestQuartz::TestCase
|
30
|
+
|
31
|
+
def test_type_identifiers
|
32
|
+
identifiers = ImageSource::type_identifiers
|
33
|
+
assert_operator(identifiers.size, :>, 0)
|
34
|
+
identifiers.each {|i| assert_instance_of(String, i)}
|
35
|
+
end
|
36
|
+
|
37
|
+
def setup
|
38
|
+
@src = ImageSource.new(:path => "test/inputs/wash.png")
|
39
|
+
end
|
40
|
+
def teardown
|
41
|
+
@src = nil
|
42
|
+
end
|
43
|
+
|
44
|
+
def test_init
|
45
|
+
assert_not_nil(@src)
|
46
|
+
end
|
47
|
+
|
48
|
+
def test_type
|
49
|
+
assert_equal(@src.type, "public.png")
|
50
|
+
end
|
51
|
+
|
52
|
+
def test_size
|
53
|
+
assert_equal(@src.size, 1)
|
54
|
+
end
|
55
|
+
|
56
|
+
# def test_properties
|
57
|
+
# properties = @src.properties
|
58
|
+
# assert_not_nil(properties)
|
59
|
+
# end
|
60
|
+
|
61
|
+
def test_index
|
62
|
+
@src.size.times {|i|
|
63
|
+
img = @src[i]
|
64
|
+
assert_not_nil(img)
|
65
|
+
assert_instance_of(Image, img)
|
66
|
+
}
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# Copyright (c) 2006, The Omni Group, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# OPEN PERMISSION TO USE AND REPRODUCE OMNI SOURCE CODE SOFTWARE
|
4
|
+
#
|
5
|
+
# Omni Source Code software is available from The Omni Group on their web
|
6
|
+
# site at www.omnigroup.com.
|
7
|
+
#
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
9
|
+
# copy of this software and associated documentation files (the "Software"),
|
10
|
+
# to deal in the Software without restriction, including without limitation
|
11
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
12
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
13
|
+
# Software is furnished to do so, subject to the following conditions:
|
14
|
+
#
|
15
|
+
# Any original copyright notices and this permission notice shall be included
|
16
|
+
# in all copies or substantial portions of the Software.
|
17
|
+
#
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
21
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
23
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
24
|
+
# DEALINGS IN THE SOFTWARE.
|
25
|
+
|
26
|
+
require 'rubyquartz_test'
|
27
|
+
include Quartz
|
28
|
+
|
29
|
+
class TestPDFDocument < TestQuartz::TestCase
|
30
|
+
|
31
|
+
def setup
|
32
|
+
@doc = PDFDocument.new(:path => "test/inputs/circle.pdf")
|
33
|
+
end
|
34
|
+
def teardown
|
35
|
+
@doc = nil
|
36
|
+
end
|
37
|
+
|
38
|
+
def test_init
|
39
|
+
assert_not_nil(@doc)
|
40
|
+
end
|
41
|
+
|
42
|
+
def test_init_with_data
|
43
|
+
# Had a memory management problem here before...
|
44
|
+
data = File.read("test/inputs/circle.pdf")
|
45
|
+
100.times {
|
46
|
+
doc = PDFDocument.new(:data => data)
|
47
|
+
GC.start
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
def test_size
|
52
|
+
assert_equal(@doc.size, 1)
|
53
|
+
end
|
54
|
+
|
55
|
+
def test_index
|
56
|
+
@doc.size.times {|i|
|
57
|
+
page = @doc[i]
|
58
|
+
assert_not_nil(page)
|
59
|
+
assert_instance_of(PDFPage, page)
|
60
|
+
}
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
data/test/tc_pdf_page.rb
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# Copyright (c) 2006, The Omni Group, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# OPEN PERMISSION TO USE AND REPRODUCE OMNI SOURCE CODE SOFTWARE
|
4
|
+
#
|
5
|
+
# Omni Source Code software is available from The Omni Group on their web
|
6
|
+
# site at www.omnigroup.com.
|
7
|
+
#
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
9
|
+
# copy of this software and associated documentation files (the "Software"),
|
10
|
+
# to deal in the Software without restriction, including without limitation
|
11
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
12
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
13
|
+
# Software is furnished to do so, subject to the following conditions:
|
14
|
+
#
|
15
|
+
# Any original copyright notices and this permission notice shall be included
|
16
|
+
# in all copies or substantial portions of the Software.
|
17
|
+
#
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
21
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
23
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
24
|
+
# DEALINGS IN THE SOFTWARE.
|
25
|
+
|
26
|
+
require 'rubyquartz_test'
|
27
|
+
include Quartz
|
28
|
+
|
29
|
+
class TestPDFPage < TestQuartz::TestCase
|
30
|
+
|
31
|
+
def setup
|
32
|
+
@doc = PDFDocument.new(:path => "test/inputs/circle.pdf")
|
33
|
+
@page = @doc[0]
|
34
|
+
end
|
35
|
+
def teardown
|
36
|
+
@doc = nil
|
37
|
+
@page = nil
|
38
|
+
end
|
39
|
+
|
40
|
+
def test_init
|
41
|
+
assert_not_nil(@page)
|
42
|
+
end
|
43
|
+
|
44
|
+
def test_box
|
45
|
+
media = @page.page_box(:media)
|
46
|
+
assert_instance_of(Rect, media)
|
47
|
+
assert_equal(media.origin.x, 0.0)
|
48
|
+
assert_equal(media.origin.y, 0.0)
|
49
|
+
assert_equal(media.size.width, 87.0)
|
50
|
+
assert_equal(media.size.height, 87.0)
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
data/test/tc_text.rb
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# Copyright (c) 2006, The Omni Group, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# OPEN PERMISSION TO USE AND REPRODUCE OMNI SOURCE CODE SOFTWARE
|
4
|
+
#
|
5
|
+
# Omni Source Code software is available from The Omni Group on their web
|
6
|
+
# site at www.omnigroup.com.
|
7
|
+
#
|
8
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
9
|
+
# copy of this software and associated documentation files (the "Software"),
|
10
|
+
# to deal in the Software without restriction, including without limitation
|
11
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
12
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
13
|
+
# Software is furnished to do so, subject to the following conditions:
|
14
|
+
#
|
15
|
+
# Any original copyright notices and this permission notice shall be included
|
16
|
+
# in all copies or substantial portions of the Software.
|
17
|
+
#
|
18
|
+
# THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
21
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
23
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
24
|
+
# DEALINGS IN THE SOFTWARE.
|
25
|
+
|
26
|
+
require 'rubyquartz_test'
|
27
|
+
include Quartz
|
28
|
+
|
29
|
+
class TestText< TestQuartz::TestCase
|
30
|
+
|
31
|
+
def test_init
|
32
|
+
rgb = ColorSpace.new(:name => ColorSpace::GENERIC_RGB)
|
33
|
+
red = Color.new(rgb, 1, 0, 0, 1)
|
34
|
+
font = Font.new(:name => "Times-Roman", :size => 64)
|
35
|
+
|
36
|
+
text = Text.new("howdy!", :color => red, :font => font)
|
37
|
+
assert_not_nil(text)
|
38
|
+
end
|
39
|
+
end
|
metadata
ADDED
@@ -0,0 +1,156 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.9.0
|
3
|
+
specification_version: 1
|
4
|
+
name: rubyquartz
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.1.2
|
7
|
+
date: 2006-12-11 00:00:00 -08:00
|
8
|
+
summary: Ruby Quartz is a bridge that allows Ruby programs to access the Mac OS X Quartz graphics libraries.
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
- ext
|
12
|
+
email: tjw@omnigroup.com
|
13
|
+
homepage: http://rubyquartz.rubyforge.org/
|
14
|
+
rubyforge_project: rubyquartz
|
15
|
+
description: "Ruby Quartz is a bridge that allows Ruby programs to access the Mac OS X Quartz graphics libraries. Ruby Quartz is licensied under a BSD license, see the COPYRIGHT file for more information. More information on the project home page: http://rubyquartz.rubyforge.org. == FEATURES/PROBLEMS:"
|
16
|
+
autorequire:
|
17
|
+
default_executable:
|
18
|
+
bindir: bin
|
19
|
+
has_rdoc: true
|
20
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
21
|
+
requirements:
|
22
|
+
- - ">"
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 0.0.0
|
25
|
+
version:
|
26
|
+
platform: ruby
|
27
|
+
signing_key:
|
28
|
+
cert_chain:
|
29
|
+
post_install_message:
|
30
|
+
authors:
|
31
|
+
- Timothy J. Wood
|
32
|
+
files:
|
33
|
+
- COPYRIGHT
|
34
|
+
- History.txt
|
35
|
+
- Manifest.txt
|
36
|
+
- README.txt
|
37
|
+
- Rakefile
|
38
|
+
- ext/ExportedSymbols.txt
|
39
|
+
- ext/bitmap.c
|
40
|
+
- ext/bitmap.h
|
41
|
+
- ext/bitmap_context.c
|
42
|
+
- ext/bitmap_context.h
|
43
|
+
- ext/color.c
|
44
|
+
- ext/color.h
|
45
|
+
- ext/colorspace.c
|
46
|
+
- ext/colorspace.h
|
47
|
+
- ext/context.c
|
48
|
+
- ext/context.h
|
49
|
+
- ext/extconf.rb
|
50
|
+
- ext/font.c
|
51
|
+
- ext/font.h
|
52
|
+
- ext/function.c
|
53
|
+
- ext/function.h
|
54
|
+
- ext/image.c
|
55
|
+
- ext/image.h
|
56
|
+
- ext/image_source.c
|
57
|
+
- ext/image_source.h
|
58
|
+
- ext/pdf_document.c
|
59
|
+
- ext/pdf_document.h
|
60
|
+
- ext/pdf_page.c
|
61
|
+
- ext/pdf_page.h
|
62
|
+
- ext/point.c
|
63
|
+
- ext/point.h
|
64
|
+
- ext/rect.c
|
65
|
+
- ext/rect.h
|
66
|
+
- ext/rubyquartz.c
|
67
|
+
- ext/rubyquartz.h
|
68
|
+
- ext/rubyquartz_prefix.h
|
69
|
+
- ext/shading.c
|
70
|
+
- ext/shading.h
|
71
|
+
- ext/size.c
|
72
|
+
- ext/size.h
|
73
|
+
- ext/text.c
|
74
|
+
- ext/text.h
|
75
|
+
- ext/utilities.c
|
76
|
+
- ext/utilities.h
|
77
|
+
- lib/rubyquartz.rb
|
78
|
+
- lib/rubyquartz/bitmap.rb
|
79
|
+
- lib/rubyquartz/bitmap_context.rb
|
80
|
+
- lib/rubyquartz/color.rb
|
81
|
+
- lib/rubyquartz/colorspace.rb
|
82
|
+
- lib/rubyquartz/context.rb
|
83
|
+
- lib/rubyquartz/font.rb
|
84
|
+
- lib/rubyquartz/function.rb
|
85
|
+
- lib/rubyquartz/image.rb
|
86
|
+
- lib/rubyquartz/image_source.rb
|
87
|
+
- lib/rubyquartz/pdf_document.rb
|
88
|
+
- lib/rubyquartz/pdf_page.rb
|
89
|
+
- lib/rubyquartz/point.rb
|
90
|
+
- lib/rubyquartz/rect.rb
|
91
|
+
- lib/rubyquartz/shading.rb
|
92
|
+
- lib/rubyquartz/size.rb
|
93
|
+
- lib/rubyquartz/text.rb
|
94
|
+
- test/images/TestContext.test_begin_path.png
|
95
|
+
- test/images/TestContext.test_draw_image.png
|
96
|
+
- test/images/TestContext.test_draw_path.png
|
97
|
+
- test/images/TestContext.test_draw_pdf.png
|
98
|
+
- test/images/TestContext.test_draw_shading_axial.png
|
99
|
+
- test/images/TestContext.test_draw_text.png
|
100
|
+
- test/images/TestContext.test_draw_text_baseline_aligned.png
|
101
|
+
- test/images/TestContext.test_draw_text_flipped.png
|
102
|
+
- test/images/TestContext.test_draw_text_flipped_non_zero_point.png
|
103
|
+
- test/images/TestContext.test_draw_text_non_zero_point.png
|
104
|
+
- test/images/TestContext.test_fill.png
|
105
|
+
- test/images/TestContext.test_gsave.png
|
106
|
+
- test/images/TestContext.test_gsave_block.png
|
107
|
+
- test/images/TestContext.test_line_width.png
|
108
|
+
- test/images/TestContext.test_lineto.png
|
109
|
+
- test/images/TestContext.test_rotate.png
|
110
|
+
- test/images/TestContext.test_rounded_rect.png
|
111
|
+
- test/images/TestContext.test_scale.png
|
112
|
+
- test/images/TestContext.test_set_line_dash.png
|
113
|
+
- test/images/TestContext.test_shadow.png
|
114
|
+
- test/images/TestContext.test_stroke_rect.png
|
115
|
+
- test/images/TestContext.test_text_bounds.png
|
116
|
+
- test/images/TestContext.test_translate.png
|
117
|
+
- test/inputs/circle.pdf
|
118
|
+
- test/inputs/wash.png
|
119
|
+
- test/rubyquartz_test.rb
|
120
|
+
- test/tc_bitmap_context.rb
|
121
|
+
- test/tc_color.rb
|
122
|
+
- test/tc_context.rb
|
123
|
+
- test/tc_font.rb
|
124
|
+
- test/tc_image_source.rb
|
125
|
+
- test/tc_pdf_document.rb
|
126
|
+
- test/tc_pdf_page.rb
|
127
|
+
- test/tc_text.rb
|
128
|
+
test_files:
|
129
|
+
- test/tc_bitmap_context.rb
|
130
|
+
- test/tc_color.rb
|
131
|
+
- test/tc_context.rb
|
132
|
+
- test/tc_font.rb
|
133
|
+
- test/tc_image_source.rb
|
134
|
+
- test/tc_pdf_document.rb
|
135
|
+
- test/tc_pdf_page.rb
|
136
|
+
- test/tc_text.rb
|
137
|
+
rdoc_options: []
|
138
|
+
|
139
|
+
extra_rdoc_files: []
|
140
|
+
|
141
|
+
executables: []
|
142
|
+
|
143
|
+
extensions:
|
144
|
+
- ext/extconf.rb
|
145
|
+
requirements: []
|
146
|
+
|
147
|
+
dependencies:
|
148
|
+
- !ruby/object:Gem::Dependency
|
149
|
+
name: hoe
|
150
|
+
version_requirement:
|
151
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: 1.1.6
|
156
|
+
version:
|