rmagick 2.8.0 → 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rmagick might be problematic. Click here for more details.
- data/ChangeLog +10 -2
- data/README.html +7 -7
- data/doc/comtasks.html +2 -2
- data/doc/constants.html +5 -5
- data/doc/draw.html +131 -20
- data/doc/ex/InitialCoords.rb +1 -1
- data/doc/ex/NewCoordSys.rb +2 -2
- data/doc/ex/OrigCoordSys.rb +1 -1
- data/doc/ex/RotateScale.rb +2 -2
- data/doc/ex/Skew.rb +2 -2
- data/doc/ex/ViewBox.rb +1 -1
- data/doc/ex/arc.rb +4 -2
- data/doc/ex/arcs02.rb +1 -1
- data/doc/ex/bounding_box.rb +3 -0
- data/doc/ex/cbezier1.rb +2 -0
- data/doc/ex/cbezier2.rb +2 -0
- data/doc/ex/cbezier3.rb +2 -0
- data/doc/ex/cbezier4.rb +2 -0
- data/doc/ex/cbezier5.rb +2 -0
- data/doc/ex/cbezier6.rb +2 -0
- data/doc/ex/channel.rb +1 -0
- data/doc/ex/circle.rb +2 -0
- data/doc/ex/cubic01.rb +1 -1
- data/doc/ex/cubic02.rb +1 -1
- data/doc/ex/ellipse.rb +2 -0
- data/doc/ex/font_styles.rb +12 -10
- data/doc/ex/get_type_metrics.rb +2 -0
- data/doc/ex/grav.rb +2 -0
- data/doc/ex/image.rb +1 -1
- data/doc/ex/line.rb +2 -0
- data/doc/ex/opacity.rb +6 -4
- data/doc/ex/path.rb +2 -0
- data/doc/ex/polaroid.rb +2 -0
- data/doc/ex/qbezierpath.rb +3 -0
- data/doc/ex/rectangle.rb +2 -0
- data/doc/ex/rotate.rb +2 -0
- data/doc/ex/roundrect.rb +2 -0
- data/doc/ex/skewx.rb +2 -0
- data/doc/ex/skewy.rb +2 -0
- data/doc/ex/stroke_dasharray.rb +2 -0
- data/doc/ex/stroke_width.rb +2 -0
- data/doc/ex/text.rb +3 -2
- data/doc/ex/text01.rb +1 -1
- data/doc/ex/text_styles.rb +1 -1
- data/doc/ex/text_undercolor.rb +2 -0
- data/doc/ex/translate.rb +3 -1
- data/doc/ilist.html +2 -2
- data/doc/image1.html +2 -2
- data/doc/image2.html +2 -2
- data/doc/image3.html +37 -6
- data/doc/imageattrs.html +2 -2
- data/doc/imusage.html +3 -3
- data/doc/index.html +3 -3
- data/doc/info.html +2 -2
- data/doc/magick.html +2 -2
- data/doc/optequiv.html +24 -2
- data/doc/rvg.html +2 -2
- data/doc/rvgclip.html +2 -2
- data/doc/rvggroup.html +2 -2
- data/doc/rvgimage.html +2 -2
- data/doc/rvgpattern.html +2 -2
- data/doc/rvgshape.html +2 -2
- data/doc/rvgstyle.html +2 -2
- data/doc/rvgtext.html +2 -2
- data/doc/rvgtspan.html +2 -2
- data/doc/rvgtut.html +2 -2
- data/doc/rvguse.html +2 -2
- data/doc/rvgxform.html +2 -2
- data/doc/struct.html +2 -2
- data/doc/usage.html +6 -4
- data/ext/RMagick/MANIFEST +6 -1
- data/ext/RMagick/extconf.rb +18 -2
- data/ext/RMagick/rmagick.c +312 -0
- data/ext/RMagick/rmagick.h +137 -61
- data/ext/RMagick/rmdraw.c +271 -377
- data/ext/RMagick/rmenum.c +1016 -0
- data/ext/RMagick/rmimage.c +172 -16
- data/ext/RMagick/rminfo.c +5 -5
- data/ext/RMagick/rmmain.c +50 -303
- data/ext/RMagick/rmmontage.c +386 -0
- data/ext/RMagick/rmpixel.c +816 -0
- data/ext/RMagick/rmstruct.c +887 -0
- data/ext/RMagick/rmutil.c +25 -2634
- data/lib/RMagick.rb +46 -2
- data/lib/rvg/misc.rb +5 -4
- data/lib/rvg/stylable.rb +7 -1
- data/rmagick.gemspec +1 -1
- metadata +7 -2
data/ChangeLog
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
RMagick 2.9.0
|
2
|
+
o Fix #23209, improve RVG's letter spacing (patch from Jonah Fox)
|
3
|
+
o Add Draw#kerning= attribute(available in ImageMagick 6.4.7-8)
|
4
|
+
o Add Draw#interword_spacing= attribute (available in ImageMagick
|
5
|
+
6.4.8-0)
|
6
|
+
o Add Draw#kerning, Draw#interword_spacing primitive methods (available in
|
7
|
+
ImageMagick 6.4.8-3)
|
8
|
+
o Feature #23171, support ImageList, Draw, Pixel marshaling.
|
9
|
+
o Support all the new EvaluateOperator constants
|
10
|
+
|
1
11
|
RMagick 2.8.0
|
2
12
|
o Add the endian, scene, and transparent_color attributes to Image::Info
|
3
13
|
o Deprecate Image#endian= attribute setter
|
@@ -5,8 +15,6 @@ RMagick 2.8.0
|
|
5
15
|
ImageMagick 6.4.5-6)
|
6
16
|
o Add the sparse_color method to the Image class (available in ImageMagick
|
7
17
|
6.4.3)
|
8
|
-
o Detect change to ParseSizeGeometry signature in ImageMagick 6.4.6-9 and
|
9
|
-
compile accordingly.
|
10
18
|
o Update Image#change_geometry to work with the new ParseSizeGeometry API
|
11
19
|
in ImageMagick 6.4.6-9.
|
12
20
|
|
data/README.html
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<title>RMagick 2.
|
4
|
+
<title>RMagick 2.9.0 README</title>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
6
6
|
<meta name="GENERATOR" content="RedCloth">
|
7
7
|
</head>
|
8
8
|
<body>
|
9
|
-
<h1>RMagick 2.
|
9
|
+
<h1>RMagick 2.9.0 <span class="caps">README</span></h1>
|
10
10
|
|
11
11
|
|
12
|
-
<h2>
|
12
|
+
<h2>01/16/09</h2>
|
13
13
|
|
14
14
|
|
15
15
|
<h3>Table of Contents</h3>
|
@@ -75,12 +75,12 @@ depending on which tarball you have:</p>
|
|
75
75
|
|
76
76
|
|
77
77
|
<pre>
|
78
|
-
tar xvzf RMagick-2.
|
79
|
-
tar xvjf RMagick-2.
|
78
|
+
tar xvzf RMagick-2.9.0-tar.gz (gzipped tarball)
|
79
|
+
tar xvjf RMagick-2.9.0-tar.bz2 (bzipped tarball)
|
80
80
|
7z e RMagick-x.y.z.tar.lzma -so | tar xv (7zipped tarball)
|
81
81
|
</pre>
|
82
82
|
|
83
|
-
<p>Change to the RMagick-2.
|
83
|
+
<p>Change to the RMagick-2.9.0 directory. If you are not using any
|
84
84
|
configuration options (usually you don’t need to) enter the command</p>
|
85
85
|
|
86
86
|
|
@@ -191,7 +191,7 @@ systems, see the documentation for the dynamic loading facility.</p>
|
|
191
191
|
|
192
192
|
|
193
193
|
<pre>
|
194
|
-
hook /home/me/src/RMagick-2.
|
194
|
+
hook /home/me/src/RMagick-2.9.0/./post-setup.rb failed:
|
195
195
|
No such file or directory - "/tmp/rmagick6872.6"
|
196
196
|
</pre>
|
197
197
|
|
data/doc/comtasks.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 2.
|
9
|
+
<title>RMagick 2.9.0: Common Tasks</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -31,7 +31,7 @@
|
|
31
31
|
</head>
|
32
32
|
|
33
33
|
<body>
|
34
|
-
<h6 id="header">RMagick 2.
|
34
|
+
<h6 id="header">RMagick 2.9.0 User's Guide and Reference</h6>
|
35
35
|
|
36
36
|
<div class="nav">
|
37
37
|
« <a href="optequiv.html">Prev</a> | <a href=
|
data/doc/constants.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 2.
|
9
|
+
<title>RMagick 2.9.0: Constants</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -61,7 +61,7 @@
|
|
61
61
|
</head>
|
62
62
|
|
63
63
|
<body>
|
64
|
-
<h6 id="header">RMagick 2.
|
64
|
+
<h6 id="header">RMagick 2.9.0 User's Guide and Reference</h6>
|
65
65
|
|
66
66
|
<div class="nav">
|
67
67
|
« <a href="info.html">Prev</a> | <a href=
|
@@ -157,7 +157,7 @@
|
|
157
157
|
|
158
158
|
<dd>An extended form of the <code>Version</code> constant with
|
159
159
|
the format shown here:<br />
|
160
|
-
<code>This is RMagick 2.0.0 ($Date: 2008/
|
160
|
+
<code>This is RMagick 2.0.0 ($Date: 2008/12/27 16:50:05 $)
|
161
161
|
Copyright (C) 2008 by Timothy P. Hunter<br />
|
162
162
|
Built with ImageMagick 6.3.7 01/05/08 Q16
|
163
163
|
http://www.imagemagick.org<br />
|
@@ -165,7 +165,7 @@
|
|
165
165
|
Web page: http://rmagick.rubyforge.org<br />
|
166
166
|
Email: rmagick@rubyforge.org</code></dd>
|
167
167
|
|
168
|
-
<dt>
|
168
|
+
<dt>Magick_version</dt>
|
169
169
|
|
170
170
|
<dd>The ImageMagick version string. This has the form:<br />
|
171
171
|
<code>@(#)ImageMagick X.Y.Z MM/DD/YY Q:16
|
@@ -929,7 +929,7 @@ ruby -rRMagick -e"Magick::ColorspaceType.values {|cs| puts cs}"
|
|
929
929
|
|
930
930
|
<h3 class="const" id="EndianType">EndianType</h3>
|
931
931
|
|
932
|
-
<p>The value of the <a href="
|
932
|
+
<p>The value of the <a href="info.html#endian">endian</a>
|
933
933
|
attribute.</p>
|
934
934
|
|
935
935
|
<dl>
|
data/doc/draw.html
CHANGED
@@ -4,28 +4,28 @@
|
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
5
|
<head>
|
6
6
|
<meta name="generator" content=
|
7
|
-
"HTML Tidy for Linux/x86 (vers
|
7
|
+
"HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 2.
|
9
|
+
<title>RMagick 2.9.0: class Draw</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
13
13
|
<meta name="Copyright" content=
|
14
14
|
"Copyright (C) 2006 by Timothy P. Hunter" />
|
15
15
|
<link rel="stylesheet" type="text/css" href="css/doc.css" />
|
16
|
-
<script type="text/javascript" src="scripts/doc.js">
|
16
|
+
<script type="text/javascript" src="scripts/doc.js">
|
17
17
|
</script>
|
18
|
-
<style type="text/css">
|
19
|
-
|
18
|
+
<style type="text/css">
|
19
|
+
/*<![CDATA[*/
|
20
20
|
|
21
21
|
/* Styles local to this page. */
|
22
22
|
|
23
23
|
/*]]>*/
|
24
|
-
</style>
|
24
|
+
</style>
|
25
25
|
</head>
|
26
26
|
|
27
27
|
<body>
|
28
|
-
<h6 id="header">RMagick 2.
|
28
|
+
<h6 id="header">RMagick 2.9.0 User's Guide and Reference</h6>
|
29
29
|
|
30
30
|
<div class="nav">
|
31
31
|
« <a href="image3.html">Prev</a> | <a href=
|
@@ -46,22 +46,32 @@
|
|
46
46
|
|
47
47
|
<h3>instance methods</h3>
|
48
48
|
|
49
|
-
<
|
50
|
-
<
|
49
|
+
<div class="toccol">
|
50
|
+
<ul>
|
51
|
+
<li><a href="#annotate">annotate</a></li>
|
51
52
|
|
52
|
-
|
53
|
+
<li><a href="#clone">clone</a></li>
|
54
|
+
</ul>
|
55
|
+
</div>
|
53
56
|
|
54
|
-
|
57
|
+
<div class="toccol">
|
58
|
+
<ul>
|
59
|
+
<li><a href="#draw">draw</a></li>
|
55
60
|
|
56
|
-
|
61
|
+
<li><a href="#dup">dup</a></li>
|
62
|
+
</ul>
|
63
|
+
</div>
|
57
64
|
|
58
|
-
|
59
|
-
|
65
|
+
<div class="toccol">
|
66
|
+
<ul>
|
67
|
+
<li><a href=
|
68
|
+
"#get_multiline_type_metrics">get_multiline_type_metrics</a></li>
|
60
69
|
|
61
|
-
|
70
|
+
<li><a href="#get_type_metrics">get_type_metrics</a></li>
|
62
71
|
|
63
|
-
|
64
|
-
|
72
|
+
<li><a href="#inspect">inspect</a></li>
|
73
|
+
</ul>
|
74
|
+
</div>
|
65
75
|
|
66
76
|
<h3>drawing primitive methods</h3>
|
67
77
|
|
@@ -115,6 +125,10 @@
|
|
115
125
|
|
116
126
|
<li><a href="#gravity">gravity</a></li>
|
117
127
|
|
128
|
+
<li><a href="#interword_spacing">interword_spacing</a></li>
|
129
|
+
|
130
|
+
<li><a href="#kerning">kerning</a></li>
|
131
|
+
|
118
132
|
<li><a href="#line">line</a></li>
|
119
133
|
|
120
134
|
<li><a href="#matte">matte</a></li>
|
@@ -140,13 +154,13 @@
|
|
140
154
|
<li><a href="#rectangle">rectangle</a></li>
|
141
155
|
|
142
156
|
<li><a href="#rotate">rotate</a></li>
|
143
|
-
|
144
|
-
<li><a href="#roundrectangle">roundrectangle</a></li>
|
145
157
|
</ul>
|
146
158
|
</div>
|
147
159
|
|
148
160
|
<div class="toccol">
|
149
161
|
<ul>
|
162
|
+
<li><a href="#roundrectangle">roundrectangle</a></li>
|
163
|
+
|
150
164
|
<li><a href="#scale">scale</a></li>
|
151
165
|
|
152
166
|
<li><a href="#skewx">skewx</a></li>
|
@@ -219,12 +233,17 @@
|
|
219
233
|
|
220
234
|
<li><a href="#gravity_eq">gravity</a></li>
|
221
235
|
|
222
|
-
<li><a href=
|
236
|
+
<li><a href=
|
237
|
+
"#interword_spacing_eq">interword_spacing</a></li>
|
238
|
+
|
239
|
+
<li><a href="#kerning_eq">kerning</a></li>
|
223
240
|
</ul>
|
224
241
|
</div>
|
225
242
|
|
226
243
|
<div class="toccol">
|
227
244
|
<ul>
|
245
|
+
<li><a href="#pointsize_eq">pointsize</a></li>
|
246
|
+
|
228
247
|
<li><a href="#rotation_eq">rotation</a></li>
|
229
248
|
|
230
249
|
<li><a href="#stroke_eq">stroke</a></li>
|
@@ -1617,6 +1636,57 @@ draw.decorate(LineThroughDecoration)
|
|
1617
1636
|
<p><a href="#text_align">text_align</a></p>
|
1618
1637
|
</div>
|
1619
1638
|
|
1639
|
+
<div class="sig">
|
1640
|
+
<h3 id="interword_spacing">interword_spacing</h3>
|
1641
|
+
|
1642
|
+
<p><span class="arg">draw</span>.interword_spacing(<span class=
|
1643
|
+
"arg">space</span>) -> <em>self</em></p>
|
1644
|
+
</div>
|
1645
|
+
|
1646
|
+
<div class="desc">
|
1647
|
+
<h4>Description</h4>
|
1648
|
+
|
1649
|
+
<p>Modify the spacing between words in text.</p>
|
1650
|
+
|
1651
|
+
<h4>Argument</h4>
|
1652
|
+
|
1653
|
+
<p>A numeric value. If positive, inserts additional space
|
1654
|
+
between words. If negative, removes space between words. The
|
1655
|
+
amount of space inserted or removed depends on the font.</p>
|
1656
|
+
|
1657
|
+
<h4>Returns</h4>
|
1658
|
+
|
1659
|
+
<p>self</p>
|
1660
|
+
</div>
|
1661
|
+
|
1662
|
+
<div class="sig">
|
1663
|
+
<h3 id="kerning">kerning</h3>
|
1664
|
+
|
1665
|
+
<p><span class="arg">draw</span>.kerning(<span class=
|
1666
|
+
"arg">space</span>) -> <em>self</em></p>
|
1667
|
+
</div>
|
1668
|
+
|
1669
|
+
<div class="desc">
|
1670
|
+
<h4>Description</h4>
|
1671
|
+
|
1672
|
+
<p>Modify the spacing between letters in text.</p>
|
1673
|
+
|
1674
|
+
<h4>Argument</h4>
|
1675
|
+
|
1676
|
+
<p>A numeric value. If positive, inserts additional space
|
1677
|
+
between letters. If negative, removes space between letters.
|
1678
|
+
The amount of space inserted or removed depends on the font but
|
1679
|
+
is usually measured in pixels. That is, the following call adds
|
1680
|
+
<em>about</em> 5 pixels between each letter.</p>
|
1681
|
+
<pre>
|
1682
|
+
gc.kerning(5)
|
1683
|
+
</pre>
|
1684
|
+
|
1685
|
+
<h4>Returns</h4>
|
1686
|
+
|
1687
|
+
<p>self</p>
|
1688
|
+
</div>
|
1689
|
+
|
1620
1690
|
<div class="sig">
|
1621
1691
|
<h3 id="line">line</h3>
|
1622
1692
|
|
@@ -2971,6 +3041,47 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2971
3041
|
constant.</p>
|
2972
3042
|
</div>
|
2973
3043
|
|
3044
|
+
<div class="sig">
|
3045
|
+
<h3 id="interword_spacing_eq">interword_spacing=</h3>
|
3046
|
+
|
3047
|
+
<p><span class="arg">draw</span>.interword_spacing =
|
3048
|
+
<em>space</em></p>
|
3049
|
+
</div>
|
3050
|
+
|
3051
|
+
<div class="desc">
|
3052
|
+
<h4>Description</h4>
|
3053
|
+
|
3054
|
+
<p>Modifies the space between two words.</p>
|
3055
|
+
|
3056
|
+
<h4>Arguments</h4>
|
3057
|
+
|
3058
|
+
<p>A numeric value. May be positive or negative.</p>
|
3059
|
+
|
3060
|
+
<h4>Notes</h4>
|
3061
|
+
|
3062
|
+
<p>Available in ImageMagick 6.4.8-0.</p>
|
3063
|
+
</div>
|
3064
|
+
|
3065
|
+
<div class="sig">
|
3066
|
+
<h3 id="kerning_eq">kerning=</h3>
|
3067
|
+
|
3068
|
+
<p><span class="arg">draw</span>.kerning = <em>space</em></p>
|
3069
|
+
</div>
|
3070
|
+
|
3071
|
+
<div class="desc">
|
3072
|
+
<h4>Description</h4>
|
3073
|
+
|
3074
|
+
<p>Modifies the space between two letters.</p>
|
3075
|
+
|
3076
|
+
<h4>Arguments</h4>
|
3077
|
+
|
3078
|
+
<p>A numeric value. May be positive or negative.</p>
|
3079
|
+
|
3080
|
+
<h4>Notes</h4>
|
3081
|
+
|
3082
|
+
<p>Available in ImageMagick 6.4.7-8.</p>
|
3083
|
+
</div>
|
3084
|
+
|
2974
3085
|
<div class="sig">
|
2975
3086
|
<h3 id="pointsize_eq">pointsize=</h3>
|
2976
3087
|
|
data/doc/ex/InitialCoords.rb
CHANGED
@@ -12,7 +12,7 @@ rvg = Magick::RVG.new(300, 100) do |canvas|
|
|
12
12
|
grp.rect(3, 3, 297, 0)
|
13
13
|
grp.rect(3, 3, 0, 97)
|
14
14
|
end
|
15
|
-
canvas.g.styles(:font_size=>14, :font_family=>'Verdana') do |grp|
|
15
|
+
canvas.g.styles(:font_size=>14, :font_family=>'Verdana', :font_weight=>'normal', :font_style=>'normal') do |grp|
|
16
16
|
grp.text(10, 20, '(0,0)')
|
17
17
|
grp.text(240, 20, '(300,0)')
|
18
18
|
grp.text(10, 90, '(0,100)')
|
data/doc/ex/NewCoordSys.rb
CHANGED
@@ -10,7 +10,7 @@ rvg = Magick::RVG.new(400, 150) do |canvas|
|
|
10
10
|
end
|
11
11
|
|
12
12
|
canvas.g do |grp|
|
13
|
-
grp.text(30, 30, 'ABC (orig coord system)').styles(:font_size=>20, :font_family=>'Verdana')
|
13
|
+
grp.text(30, 30, 'ABC (orig coord system)').styles(:font_size=>20, :font_family=>'Verdana', :font_weight=>'normal', :font_style=>'normal')
|
14
14
|
end
|
15
15
|
|
16
16
|
# Establish a new coordinate system, which is
|
@@ -23,7 +23,7 @@ rvg = Magick::RVG.new(400, 150) do |canvas|
|
|
23
23
|
grp2.line(0, 0, 50, 0)
|
24
24
|
grp2.line(0, 0, 0, 50)
|
25
25
|
end
|
26
|
-
grp.text(30, 30, 'ABC (translated coord system)').styles(:font_size=>20, :font_family=>'Verdana')
|
26
|
+
grp.text(30, 30, 'ABC (translated coord system)').styles(:font_size=>20, :font_family=>'Verdana', :font_weight=>'normal', :font_style=>'normal')
|
27
27
|
end
|
28
28
|
|
29
29
|
end
|
data/doc/ex/OrigCoordSys.rb
CHANGED
@@ -10,7 +10,7 @@ rvg = Magick::RVG.new(400, 150) do |canvas|
|
|
10
10
|
grp.line(1.5, 0, 1.5, 150)
|
11
11
|
end
|
12
12
|
|
13
|
-
canvas.text(30, 30, 'ABC (orig coord system)').styles(:font_size=>20, :font_family=>'Verdana')
|
13
|
+
canvas.text(30, 30, 'ABC (orig coord system)').styles(:font_size=>20, :font_family=>'Verdana', :font_weight=>'normal', :font_style=>'normal')
|
14
14
|
|
15
15
|
end
|
16
16
|
|
data/doc/ex/RotateScale.rb
CHANGED
@@ -16,7 +16,7 @@ rvg = Magick::RVG.new(400, 120) do |canvas|
|
|
16
16
|
grp3.line(0, 0, 50, 0)
|
17
17
|
grp3.line(0, 0, 0, 50)
|
18
18
|
end
|
19
|
-
grp2.text(0, 0, "ABC (rotate)").styles(:font_size=>20, :fill=>'blue', :font_family=>'Verdana')
|
19
|
+
grp2.text(0, 0, "ABC (rotate)").styles(:font_size=>20, :fill=>'blue', :font_family=>'Verdana', :font_weight=>'normal', :font_style=>'normal')
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
@@ -28,7 +28,7 @@ rvg = Magick::RVG.new(400, 120) do |canvas|
|
|
28
28
|
grp3.line(0, 0, 50, 0)
|
29
29
|
grp3.line(0, 0, 0, 50)
|
30
30
|
end
|
31
|
-
grp2.text(0, 0, "ABC (scale)").styles(:font_size=>20, :fill=>'blue', :font_family=>'Verdana')
|
31
|
+
grp2.text(0, 0, "ABC (scale)").styles(:font_size=>20, :fill=>'blue', :font_family=>'Verdana', :font_weight=>'normal', :font_style=>'normal')
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
data/doc/ex/Skew.rb
CHANGED
@@ -18,7 +18,7 @@ rvg = Magick::RVG.new(400, 120) do |canvas|
|
|
18
18
|
grp3.line(0, 0, 50, 0)
|
19
19
|
grp3.line(0, 0, 0, 50)
|
20
20
|
end
|
21
|
-
grp.text(0, 0, 'ABC (skewX)').styles(:font_size=>20, :fill=>'blue', :font_family=>'Verdana')
|
21
|
+
grp.text(0, 0, 'ABC (skewX)').styles(:font_size=>20, :fill=>'blue', :font_family=>'Verdana', :font_weight=>'normal', :font_style=>'normal')
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
@@ -30,7 +30,7 @@ rvg = Magick::RVG.new(400, 120) do |canvas|
|
|
30
30
|
grp3.line(0, 0, 50, 0)
|
31
31
|
grp3.line(0, 0, 0, 50)
|
32
32
|
end
|
33
|
-
grp.text(0, 0, 'ABC (skewY)').styles(:font_size=>20, :fill=>'blue', :font_family=>'Verdana')
|
33
|
+
grp.text(0, 0, 'ABC (skewY)').styles(:font_size=>20, :fill=>'blue', :font_family=>'Verdana', :font_weight=>'normal', :font_style=>'normal')
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
data/doc/ex/ViewBox.rb
CHANGED
@@ -22,7 +22,7 @@ def example(cols, rows)
|
|
22
22
|
canvas.path("M 750,100 L 250,900 L 1250,900 z").styles(:fill=>'red')
|
23
23
|
|
24
24
|
# A text string that spans most of the viewport
|
25
|
-
canvas.text(100, 600, 'Stretch to fit').styles(:font_size=>200, :font_family=>'Verdana')
|
25
|
+
canvas.text(100, 600, 'Stretch to fit').styles(:font_size=>200, :font_style=>'normal', :font_weight=>'normal', :font_family=>'Verdana')
|
26
26
|
|
27
27
|
end
|
28
28
|
return rvg.draw
|
data/doc/ex/arc.rb
CHANGED
@@ -18,14 +18,16 @@ gc.circle(250, 114, 250+3, 114)
|
|
18
18
|
gc.circle(146, 50, 146+3, 50)
|
19
19
|
|
20
20
|
# Annotate
|
21
|
+
gc.font_weight(Magick::NormalWeight)
|
22
|
+
gc.font_style(Magick::NormalStyle)
|
21
23
|
gc.stroke('transparent')
|
22
24
|
gc.fill("black")
|
23
25
|
gc.fill_opacity(1)
|
24
26
|
|
25
27
|
# xMagick recognizes the braces as delimiters.
|
26
28
|
gc.gravity(Magick::NorthWestGravity)
|
27
|
-
gc.text(
|
28
|
-
gc.text(
|
29
|
+
gc.text(42, 37, "{40, 50}")
|
30
|
+
gc.text(188, 108, "{0 degrees}")
|
29
31
|
|
30
32
|
gc.gravity(Magick::SouthEastGravity)
|
31
33
|
gc.text(300-250, 220-195, "{250, 180}")
|