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
-
#text(x = 0, y = 0, text = nil, &block) ⇒ Object
Draw a text string at (
x
,y
).
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.
178 179 180 181 182 |
# File 'lib/rvg/text.rb', line 178 def text(x=0, y=0, text=nil, &block) t = Text.new(x, y, text, &block) @content << t return t end |