Class | Magick::RVG::TextBase |
In: |
lib/rvg/text.rb
|
Parent: | Object |
Add x and y to the current text position.
# File lib/rvg/text.rb, line 38 38: def d(x, y=0) 39: @dx, @dy = Magick::RVG.convert_to_float(x, y) 40: yield(self) if block_given? 41: self 42: end
Rotate the text about the current text position.
# File lib/rvg/text.rb, line 45 45: def rotate(degrees) 46: @rotation = Magick::RVG.convert_to_float(degrees)[0] 47: yield(self) if block_given? 48: self 49: 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 30 30: def tspan(text, x=nil, y=nil) 31: tspan = Tspan.new(text, x, y) 32: tspan.parent = self 33: @tspans << tspan 34: return tspan 35: end