Base class for Tspan, Tref and Text.
Add x and y to the current text position.
# File lib/rvg/text.rb, line 39 def d(x, y=0) @dx, @dy = Magick::RVG.convert_to_float(x, y) yield(self) if block_given? self end
Rotate the text about the current text position.
# File lib/rvg/text.rb, line 46 def rotate(degrees) @rotation = Magick::RVG.convert_to_float(degrees)[0] yield(self) if block_given? self end
Create a new text chunk. Each chunk can have its own initial position and styles. If x and y are omitted the text starts at the current text position.
# File lib/rvg/text.rb, line 31 def tspan(text, x=nil, y=nil) tspan = Tspan.new(text, x, y) tspan.parent = self @tspans << tspan return tspan end
Generated with the Darkfish Rdoc Generator 2.