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.
169 170 171 172 173 |
# File 'lib/rvg/text.rb', line 169 def text(x = 0, y = 0, text = nil, &block) t = Text.new(x, y, text, &block) @content << t t end |