]> granicus.if.org Git - graphviz/commitdiff
adjust magic correction factor to get font size to look right in inkscape.
authorellson <devnull@localhost>
Mon, 6 Nov 2006 22:32:56 +0000 (22:32 +0000)
committerellson <devnull@localhost>
Mon, 6 Nov 2006 22:32:56 +0000 (22:32 +0000)
plugin/core/gvrender_core_svg.c

index 41b0585bde5f035cb4c44a36adeee84a51788528..206eb238d68c09ae7da6b9892cc9db68cada250a 100644 (file)
@@ -298,7 +298,7 @@ static void svg_textpara(GVJ_t * job, pointf p, textpara_t * para)
         core_printf(job, "font:%s;", para->fontname);
     }
     /* FIXME - even inkscape requires a magic correction to fontsize.  Why?  */
-    core_printf(job, "font-size:%.2fpt;", para->fontsize * 0.9);
+    core_printf(job, "font-size:%.2fpt;", para->fontsize * 0.81);
     switch (obj->pencolor.type) {
     case COLOR_STRING:
        if (strcasecmp(obj->pencolor.u.string, "black"))