After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 132063 - SVG export uses integer coordinates?
SVG export uses integer coordinates?
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Charting
1.2.x
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2004-01-21 06:02 UTC by Luke Hutchison
Modified: 2005-08-15 01:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot of SVG file loaded into Inkscape (8.14 KB, image/png)
2004-01-21 06:03 UTC, Luke Hutchison
Details

Description Luke Hutchison 2004-01-21 06:02:37 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.
Comment 1 Luke Hutchison 2004-01-21 06:03:26 UTC
Created attachment 23584 [details]
screenshot of SVG file loaded into Inkscape
Comment 2 alexander.winston 2004-01-21 19:51:07 UTC
Adding the screenshot keyword.
Comment 3 Jean Bréfort 2004-01-27 11:45:51 UTC
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.
Comment 4 Jody Goldberg 2004-01-27 15:27:12 UTC
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.
Comment 5 Emmanuel Pacaud 2004-08-16 14:58:27 UTC
Fixed in CVS.

Rounding tricks for sharp rendering on screen are moved in the pixbuf renderer.