From: erg Date: Wed, 7 Mar 2007 19:23:00 +0000 (+0000) Subject: Fix for bug 1094 X-Git-Tag: LAST_LIBGRAPH~32^2~5652 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b95d8ff6e2f543ef4b6e5c854716ae694456df68;p=graphviz Fix for bug 1094 --- diff --git a/plugin/pango/gvtextlayout_pango.c b/plugin/pango/gvtextlayout_pango.c index 229d77d5d..8655ab7be 100644 --- a/plugin/pango/gvtextlayout_pango.c +++ b/plugin/pango/gvtextlayout_pango.c @@ -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);