Class Magick::RVG::TextBase
In: lib/rvg/text.rb
Parent: Object
Enum GeometryValue Stylable RVG\n[lib/rvg/clippath.rb\nlib/rvg/container.rb\nlib/rvg/deep_equal.rb\nlib/rvg/describable.rb\nlib/rvg/embellishable.rb\nlib/rvg/misc.rb\nlib/rvg/paint.rb\nlib/rvg/pathdata.rb\nlib/rvg/rvg.rb\nlib/rvg/stretchable.rb\nlib/rvg/stylable.rb\nlib/rvg/text.rb\nlib/rvg/transformable.rb\nlib/rvg/units.rb] Transformable Stretchable Embellishable Describable Duplicatable Comparable Image ImageList Array Geometry HatchFill Draw lib/RMagick.rb lib/rvg/units.rb Magick Module: Magick

Base class for Tspan, Tref and Text.

Methods

d   rotate   tspan  

Included Modules

Stylable Duplicatable

Public Instance methods

Add x and y to the current text position.

[Source]

    # 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.

[Source]

    # 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.

[Source]

    # 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

[Validate]