Number: 229
Title: SVG rendering bug
Submitter: Dave Carlson
Date: 27 Nov 2002
Subsys: Common
Version: 1.8.10
System: *-*-*
Severity: major
Problem:
In svggen.c:

1) Scale is not consistently applied when emitting cp->fontsz (though we could quibble about whether we want to do this once at the head of the entire SVG output or not). It is true that the default coord system in SVG is pixel space.

Even if you correct, this there are other problems.

2) The code gen calls svg_set_font() when it starts up to initialize the default font, but svggen.c doesn't do anything with the values except save them on cstk[] !

3) The code in svg_font() that apparently is trying to set the SVG environment to be consistent with cstk[] checks against cstk[0] not cstk[SP]!

4)Designing svg_font() in this way means it can't easily be called by svg_set_font() to establish the initial environment.

Thus examples like


    digraph G {
        node [fontsize=32]
        a [label="A Good Dealnand a Good Deal More"];
    }

come out wrong because the font is never set to 32 (or 32 * 96/72, actually).
Comments: [erg] See also bug 191.
Owner: ellson
Status: Fixed (23 Jan 2003)