[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

RVG moves to beta with 0.4.0

Tim Hunter

3/2/2005 12:43:00 AM

RVG is a library for drawing 2D graphics with an API based on the SVG
specification. RVG is a pure-Ruby add-on to RMagick, the binding for
ImageMagick and GraphicsMagick. Version 0.4.0 is available, as usual, at
RubyForge: http://rubyforge.org/pro...

Version 0.4.0 includes extensive ehancements to text rendering. This release
adds support for "tspans," text segments that inherit styles and position
from the parent element, or can be independently styled, positioned, and
rotated. This release also supports vertical text (such as for column
labels), custom word- and letter-spacing, sub- and super-scripts, and
rotated glyphs.

RVG supports the following SVG concepts:

        o Structure: RVG, groups, and use
        o User-coordinate systems
        o Coordinate system transformations (translate, rotate, etc.)
        o Raster images
        o Basic shapes: line, rectangle, circle, ellipse, polygon, polyline
        o Styles: fill, stroke, opacity, font_size, etc.
        o Paths
        o Text
        o Patterns
        o Clipping paths
        o Units conversions (cm, in, etc.)

RVG would be a good library to use if you're writing an application that
needs to programmatically generate drawings, such as a charting
application. You can see an example RVG program at
http://rvg.rub.... The tarball includes copious RDoc documentation
and examples.

RVG supports all the parts of SVG that ImageMagick/GraphicsMagick supports.

I'm going to hold back on integrating RVG into RMagick just yet.
I want to rewrite the RDoc to match RMagick's documentation, and that'll be
a big job. So there's still plenty of time for changes based on your
feedback before RVG "goes production" so please don't hesitate to give it a
try and let me know what you think!
--
Tim Hunter