]> granicus.if.org Git - graphviz/commitdiff
fix #1413 using patch from:
authorellson <devnull@localhost>
Fri, 8 Aug 2008 02:00:42 +0000 (02:00 +0000)
committerellson <devnull@localhost>
Fri, 8 Aug 2008 02:00:42 +0000 (02:00 +0000)
Joshua Cranmer <Pidgeot18@verizon.net>

plugin/core/gvrender_core_svg.c

index ee3df3e34ed79a97049538d0c66d2d8171464365..7f13b11172b79082ec80db90fd5d1049063fd894 100644 (file)
@@ -340,13 +340,13 @@ static void svg_textpara(GVJ_t * job, pointf p, textpara_t * para)
        }
        stretch = pA->stretch;
 
-        gvdevice_printf(job, "font-family:%s;", family);
+        gvdevice_printf(job, "font-family:%s,sans-serif;", family);
         if (weight) gvdevice_printf(job, "font-weight:%s;", weight);
         if (stretch) gvdevice_printf(job, "font-stretch:%s;", stretch);
         if (style) gvdevice_printf(job, "font-style:%s;", style);
     }
     else
-       gvdevice_printf(job, "font-family:%s;", para->fontname);
+       gvdevice_printf(job, "font-family:%s,sans-serif;", para->fontname);
     gvdevice_printf(job, "font-size:%.2fpx;", para->fontsize);
     switch (obj->pencolor.type) {
     case COLOR_STRING: