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/misc.rb Application ObjectData Pre_ObjectData_Descriptor Envelope Post_ObjectData_Descriptor IPTC Magick dot/m_14_0.png

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 39
39:             def d(x, y=0)
40:                 @dx, @dy = Magick::RVG.convert_to_float(x, y)
41:                 yield(self) if block_given?
42:                 self
43:             end

Rotate the text about the current text position.

[Source]

    # File lib/rvg/text.rb, line 46
46:             def rotate(degrees)
47:                 @rotation = Magick::RVG.convert_to_float(degrees)[0]
48:                 yield(self) if block_given?
49:                 self
50:             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 31
31:             def tspan(text, x=nil, y=nil)
32:                 tspan = Tspan.new(text, x, y)
33:                 tspan.parent = self
34:                 @tspans << tspan
35:                 return tspan
36:             end

[Validate]