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 158823 - librsvg does not render FIftiMain.svg from chmspec properly
librsvg does not render FIftiMain.svg from chmspec properly
Status: RESOLVED FIXED
Product: librsvg
Classification: Core
Component: general
2.26.x
Other Linux
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2004-11-20 14:27 UTC by Paul Wise
Modified: 2010-12-18 07:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
batik rendering (64.20 KB, image/png)
2005-10-07 03:44 UTC, Paul Wise
Details
SVG image (13.32 KB, image/svg+xml)
2005-10-07 03:46 UTC, Paul Wise
Details
Original files with "* pt" replaced with "*pt" (13.32 KB, image/svg+xml)
2010-04-30 07:51 UTC, Pietro Battiston
Details
rendering result with current master (65.83 KB, image/png)
2010-04-30 12:11 UTC, Hiroyuki Ikezoe
Details

Description Paul Wise 2004-11-20 14:27:10 UTC
wget http://bonedaddy.net/pabs3/chmspec/latest/FIftiMain.svg
rsvg-view FIftiMain.svg
compare to http://bonedaddy.net/pabs3/chmspec/latest/FIftiMain.png
(rendered by batik)

1. The text in the green and red boxes should be aligned properly, but it is
not. See the source of the svg for proper alignment. Seems that librsvg doesn't
support xml:space properly.
2. The arrow things seem to be incorrectly rotated. Possibly librsvg doesn't
support orient="auto" properly.
3. The & in the "Leaf nodes & WLCs" text is incorrectly aligned. At a guess,
it is counting & as needing the space of 4 characters instead of just 1.
Comment 1 Dominic Lachowicz 2004-11-20 15:39:45 UTC
confirm.
Comment 2 Caleb Moore 2004-11-20 16:36:26 UTC
I implemented xml:space a few days ago actually... still don't have any way to
trigger it though since it is not actually stored anyway. Maybe dom or I can fix
that some time.

The marker thing is interesting, auto orientation seemed to work before, in a
simplistic fasion that isn't friendly to curves. But I can't check what the
problem is this time because markers are broken in the development version.
Comment 3 Caleb Moore 2004-11-28 16:55:40 UTC
Yeah, I see what's wrong with the markers, they are orienting themselves the way
that they would if the line was streight rather than curved. To fix this we need
to take a tangent at the end to base our orientation on.
Comment 4 Dominic Lachowicz 2005-10-07 02:06:15 UTC
i can't access the files any more. moving this to NEEDINFO.
Comment 5 Paul Wise 2005-10-07 03:44:57 UTC
Created attachment 53155 [details]
batik rendering

Here is the rendering of the svg by Apache Batik.
Comment 6 Paul Wise 2005-10-07 03:46:36 UTC
Created attachment 53156 [details]
SVG image

Incorrectly rendered SVG image.
Comment 7 Paul Wise 2005-10-07 03:49:38 UTC
Attached the files. They're also available here:

http://www.nongnu.org/chmspec/latest/FIftiMain.png
http://www.nongnu.org/chmspec/latest/FIftiMain.svg

With version 2.9.5 only #1 and #2 are still an issue.
Comment 8 Dominic Lachowicz 2007-07-20 17:54:02 UTC
This file now causes a crash somewhere in the pangoft2 code.
Comment 9 Pietro Battiston 2009-11-23 21:26:24 UTC
The file is now not viewable at all with rsvg-view now (it is shown as empty).

If the <style> block is removed, it is shown as vaguely correct, but completely black, shapes.

If the <style> block is removed, it is opened with Inkscape, the size of the canvas is changed and the file is saved again, rsvg-view shows it perfectly. But this may be irrelevant, I don't know.
Comment 10 Hiroyuki Ikezoe 2010-04-14 09:23:39 UTC
(In reply to comment #9)
> The file is now not viewable at all with rsvg-view now (it is shown as empty).
> 
> If the <style> block is removed, it is shown as vaguely correct, but completely
> black, shapes.

Because this font-size is invalid. It should be "25pt".

		text {
				font-size: 25 pt;
Comment 11 Pietro Battiston 2010-04-30 07:51:00 UTC
Created attachment 159963 [details]
Original files with "* pt" replaced with "*pt"
Comment 12 Pietro Battiston 2010-04-30 07:52:32 UTC
This is the file changed as you (In reply to comment #10)
> (In reply to comment #9)
> > The file is now not viewable at all with rsvg-view now (it is shown as empty).
> > 
> > If the <style> block is removed, it is shown as vaguely correct, but completely
> > black, shapes.
> 
> Because this font-size is invalid. It should be "25pt".
> 
>         text {
>                 font-size: 25 pt;


I attached the file changed as you suggest. Indeed, with this modification rsvg-view shows the text around the image (on the top and on the right), but nothing else.

To show something more, I have to play with the "path" part of the <style> block, for instance deleting some rows.
Comment 13 Hiroyuki Ikezoe 2010-04-30 12:11:40 UTC
Created attachment 159975 [details]
rendering result with current master

Seems to be fixed.
Comment 14 Paul Wise 2010-12-18 07:17:35 UTC
The issues I reported are definitely fixed now, closing the bug.

Now I just have to figure out how to get batik and rsvg to use the same fonts.