Module: Magick::RVG::TextConstructors

Included in:
ClipPath, Embellishable, Pattern
Defined in:
lib/rvg/text.rb

Overview

Methods that construct text objects within a container

Instance Method Summary collapse

Instance Method Details

#text(x = 0, y = 0, text = nil, &block) ⇒ Object

Draw a text string at (x,y). The string can be omitted. Optionally, define text chunks within the associated block.



164
165
166
167
168
# File 'lib/rvg/text.rb', line 164

def text(x = 0, y = 0, text = nil, &block)
  t = Text.new(x, y, text, &block)
  @content << t
  t
end