]> granicus.if.org Git - graphviz/commitdiff
reinstate svg fontname translation - but not as the default
authorellson <devnull@localhost>
Tue, 30 Oct 2007 01:41:19 +0000 (01:41 +0000)
committerellson <devnull@localhost>
Tue, 30 Oct 2007 01:41:19 +0000 (01:41 +0000)
plugin/core/gvrender_core_svg.c

index 2bf4bf7d05c889149c5210b8c70155226788c26d..9000911be568d07450a8906c8e5057f66a4d3536 100644 (file)
@@ -303,9 +303,13 @@ static void svg_textpara(GVJ_t * job, pointf p, textpara_t * para)
                    weight = pA->weight;
                    style = pA->style;
                    break;
-               case NATIVEFONTS:
-               case SVGFONTS: /* same as NATIVEFONTS - jce */
+               case SVGFONTS:
+                    family = pA->svg_font_family;
+                    weight = pA->svg_font_weight;
+                    style = pA->svg_font_style;
+                   break;
                default:
+               case NATIVEFONTS:
                    family = pA->family;
                    weight = pA->weight;
                    style = pA->style;