]> granicus.if.org Git - graphviz/commitdiff
Fix for bug 1094
authorerg <devnull@localhost>
Wed, 7 Mar 2007 19:23:00 +0000 (19:23 +0000)
committererg <devnull@localhost>
Wed, 7 Mar 2007 19:23:00 +0000 (19:23 +0000)
plugin/pango/gvtextlayout_pango.c

index 229d77d5db1ec2cc308fe5e22505545795152c77..8655ab7be75169d41d10c661ee80543eb358a830 100644 (file)
@@ -64,17 +64,21 @@ static void pango_textlayout(GVCOMMON_t *common, textpara_t * para, char **fontp
         pango_font_description_free (desc);
 
        if (para->postscript_alias) {
+           int comma=0;
            strcpy(buf, para->postscript_alias->family);
            if (para->postscript_alias->weight) {
-               strcat(buf, ", ");
+               strcat(buf, comma ? " " : ", ");
+               comma = 1;
                strcat(buf, para->postscript_alias->weight);
            }
            if (para->postscript_alias->stretch) {
-               strcat(buf, ", ");
+               strcat(buf, comma ? " " : ", ");
+               comma = 1;
                strcat(buf, para->postscript_alias->stretch);
            }
            if (para->postscript_alias->style) {
-               strcat(buf, ", ");
+               strcat(buf, comma ? " " : ", ");
+               comma = 1;
                strcat(buf, para->postscript_alias->style);
            }
             desc = pango_font_description_from_string(buf);