lib/rvg/misc.rb in rmagick-1.15.17 vs lib/rvg/misc.rb in rmagick-2.0.0
- old
+ new
@@ -1,7 +1,7 @@
-# $Id: misc.rb,v 1.10.4.1 2008/02/24 23:21:50 rmagick Exp $
-# Copyright (C) 2008 Timothy P. Hunter
+# $Id: misc.rb,v 1.11 2007/09/30 22:22:17 rmagick Exp $
+# Copyright (C) 2007 Timothy P. Hunter
module Magick
class RVG
# This is a standard deep_copy method that is used in most classes.
# Thanks to Robert Klemme.
@@ -293,10 +293,10 @@
y += y_rel_coords.shift
x_rel_coords.shift
end
first_word = false
word.split('').each do |glyph|
- case @ctx.text_attrs.glyph_orientation_vertical
+ case @ctx.text_attrs.glyph_orientation_vertical.to_i
when 0, 90, 270
x_shift = (dx - x_rel_coords.shift) / 2
when 180
x_shift = -(dx - x_rel_coords.shift) / 2
end