GNOME Bugzilla – Bug 132063
SVG export uses integer coordinates?
Last modified: 2005-08-15 01:55:39 UTC
When exporting to SVG, graph elements (e.g. bar widths) are not all scaled to be the same size. Presumably this is because the exporter is using integer screen coordinates rather than scaled floating point coordinates for the graph elements. (Not sure if this affects printing too.) Screenshot of this effect is attached. It is quite noticeable if the graph starts small and is to be scaled up.
Created attachment 23584 [details] screenshot of SVG file loaded into Inkscape
Adding the screenshot keyword.
The problem comes from the barcol plugin which rounds every value to make libart happier (see comments in barcol_draw_rect). This is quite unfortunate since this will also affect printing. I propose to remove the ceil calls there and if necessary to add something in gnome-renderer-pixbuf.c if it is really necessary.
It's really necessary, but your're right it should be at the pixbuf level not in the view itself. The issue we're addressing is libart and antialiasing. We do something similar with axis lines too. Without it everything looks blurry. This would be a change for HEAD only and should probably be done as part of the move to a pango-esque fixed point coordinate system.
Fixed in CVS. Rounding tricks for sharp rendering on screen are moved in the pixbuf renderer.