From: ellson Date: Mon, 30 Jan 2006 22:34:27 +0000 (+0000) Subject: Use explicit "pt" dimensions for font-size in svggen.c to work-around X-Git-Tag: LAST_LIBGRAPH~32^2~6813 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45d4cb55ba6a58fce2165ab8d80061806c189bfa;p=graphviz Use explicit "pt" dimensions for font-size in svggen.c to work-around firefox odditity: https://bugzilla.mozilla.org/show_bug.cgi?id=234789 --- diff --git a/lib/common/svggen.c b/lib/common/svggen.c index 6862b8cec..0c57f33c8 100644 --- a/lib/common/svggen.c +++ b/lib/common/svggen.c @@ -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);