Re: dom - r25864 - in abiword/trunk: . plugins/rsvg/unix src/af/gr/gtk src/af/gr/xp src/af/util/xp src/text/fmt/xp src/wp

From: J.M. Maurer <uwog_at_uwog.net>
Date: Sun Mar 08 2009 - 18:44:04 CET

On Sun, 2009-03-08 at 10:47 -0500, Dominic Lachowicz wrote:
> > BTW, what does Cairo use to render SVGs? When I add an SVG to my AbiWord
> > document, it looks really purty, but when I hit print-preview (ie.
> > gererate a PDF) it looks a whole lot worse.
>
> They look ok here, even when zoomed heavily. I've been using librsvg's
> "samples" directory as my test suite.
>
> I don't quite understand your first question, though. librsvg uses
> cairo to render the SVGs. Cairo uses the primitives in its backends to
> do the drawing. In the case of print preview, that would be PDF's
> native drawing operators.

I phrased it wrong.. just ignore it I'd say.

> If a cairo backend can't represent something natively, it will
> rasterize part of the image and draw that instead. Maybe that's what's
> looking ugly for you.

See this screenshot of AbiWord rendering the SVG, and the print preview;
they don't look 'similiar':

  http://uwog.net/~uwog/Screenshot.png

Source SVG:

  http://uwog.net/~uwog/deluge.svg

Marc
Received on Sun Mar 8 18:44:43 2009

This archive was generated by hypermail 2.1.8 : Sun Mar 08 2009 - 18:44:43 CET