]> granicus.if.org Git - graphviz/commitdiff
Use explicit "pt" dimensions for font-size in svggen.c to work-around
authorellson <devnull@localhost>
Mon, 30 Jan 2006 22:34:27 +0000 (22:34 +0000)
committerellson <devnull@localhost>
Mon, 30 Jan 2006 22:34:27 +0000 (22:34 +0000)
firefox odditity:  https://bugzilla.mozilla.org/show_bug.cgi?id=234789

lib/common/svggen.c

index 6862b8cece5bdc41f058f4e5f7704d2a69709270..0c57f33c8a70a5235473cf460500ba667bb3a47e 100644 (file)
@@ -326,7 +326,7 @@ static void svg_font(context_t * cp)
        needstyle++;
     }
     if (fontsz != DEFAULT_FONTSIZE) {
-       sprintf(buf + strlen(buf), "font-size:%.2f;", fontsz);
+       sprintf(buf + strlen(buf), "font-size:%.2fpt;", fontsz);
        needstyle++;
     }
     color = svg_resolve_color(cp->pencolor, 1);