Sha256: 6e06c23e0698df66c15c1155a66f4c1a8cbd139ba70f0cb194780d6ae773fc6a

Contents?: true

Size: 581 Bytes

Versions: 12

Compression:

Stored size: 581 Bytes

Contents

require 'rvg/rvg'

Magick::RVG.dpi = 90

rvg = Magick::RVG.new(10.cm, 3.cm).viewbox(0,0,1000,300) do |canvas|
    canvas.background_fill = 'white'

    canvas.g.translate(100, 60) do |grp|
        grp.text.styles(:font_family=>'Verdana', :font_size=>45) do |txt|
            txt.tspan("Rotation ")
            txt.tspan("propogates ").rotate(20).styles(:fill=>'red') do |tsp|
                tsp.tspan("to descendents").styles(:fill=>'green')
            end
        end
    end
    canvas.rect(997, 297).styles(:fill=>'none', :stroke=>'blue')

end

rvg.draw.write('tspan03.gif')

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rmagick-1.10.1 doc/ex/tspan03.rb
rmagick-1.10.0 doc/ex/tspan03.rb
rmagick-1.13.0 doc/ex/tspan03.rb
rmagick-1.11.0 doc/ex/tspan03.rb
rmagick-1.11.1 doc/ex/tspan03.rb
rmagick-1.12.0 doc/ex/tspan03.rb
rmagick-1.14.1 doc/ex/tspan03.rb
rmagick-1.14.0 doc/ex/tspan03.rb
rmagick-1.9.0 doc/ex/tspan03.rb
rmagick-1.9.1 doc/ex/tspan03.rb
rmagick-1.9.2 doc/ex/tspan03.rb
rmagick-1.9.3 doc/ex/tspan03.rb