doc/ex/RotateScale.rb in rmagick-2.8.0 vs doc/ex/RotateScale.rb in rmagick-2.9.0

- old
+ new

@@ -14,11 +14,11 @@ grp.g.rotate(30) do |grp2| grp2.g.styles(:fill=>'none',:stroke=>'red',:stroke_width=>3) do |grp3| grp3.line(0, 0, 50, 0) grp3.line(0, 0, 0, 50) end - grp2.text(0, 0, "ABC (rotate)").styles(:font_size=>20, :fill=>'blue', :font_family=>'Verdana') + grp2.text(0, 0, "ABC (rotate)").styles(:font_size=>20, :fill=>'blue', :font_family=>'Verdana', :font_weight=>'normal', :font_style=>'normal') end end # Establish a new coordinate system whose origin is at (200,40) # in the original coord. systm and which is scaled by 1.5 @@ -26,10 +26,10 @@ grp.g.scale(1.5) do |grp2| grp2.g.styles(:fill=>'none',:stroke=>'red',:stroke_width=>3) do |grp3| grp3.line(0, 0, 50, 0) grp3.line(0, 0, 0, 50) end - grp2.text(0, 0, "ABC (scale)").styles(:font_size=>20, :fill=>'blue', :font_family=>'Verdana') + grp2.text(0, 0, "ABC (scale)").styles(:font_size=>20, :fill=>'blue', :font_family=>'Verdana', :font_weight=>'normal', :font_style=>'normal') end end end rvg.draw.write('RotateScale.gif')