RVG::Tspan.new(text=nil, x=0, y=0) [ { |tspan| ...} ] -> tspan
This method may be invoked indirectly via the tspan method in
RVG::Text
.
Tspan objects are containers, so this method yields to a block if one is present. The only objects that a tspan can contain are other tspans. Styles defined on a tspan propagate to any tspans contained within it.
All arguments are optional.
tspan.d(dx[, dy=0]) [ { |self| ...} ] -> self
The dx and dy arguments are added to the the current text position to form a new current text position. Yields to a block if one is present.
self
tspan.rotate(degrees) [ { |self| ...} ] -> self
Rotates the text about the current text position by the specified number of degrees. Yields to a block if one is present.
self
tspan.tspan(string=0, x=nil, y=0) [ { |tspan| ...} ] -> tspan
Calls RVG::Tspan.new to construct a tspan and adds it to the tspan. Yields to a block if one is present, passing the new tspan as an argument. Styles defined on the container tspan propagate to the contained tspan.
The new tspan, so other RVG::Tspan
methods can
be chained to it.