]> granicus.if.org Git - graphviz/commitdiff
partial fix for #1504
authorellson <devnull@localhost>
Thu, 30 Oct 2008 22:06:59 +0000 (22:06 +0000)
committerellson <devnull@localhost>
Thu, 30 Oct 2008 22:06:59 +0000 (22:06 +0000)
lib/common/fontmetrics.c

index 718abff5ff4183c535608c88991ec1d3c3706f2f..4afb67ba552d9348d648f4ed489eca13cc8858a1 100644 (file)
@@ -218,46 +218,3 @@ pointf textsize(graph_t *g, textpara_t * para, char *fontname, double fontsize)
     size.y = para->height;
     return size;
 }
-
-/* psfontResolve:
- * Construct alias for postscript fontname.
- * NB. Uses a static array - non-reentrant.
- */ 
-
-#define ADD_ATTR(a) \
-  if (a) { \
-       strcat(buf, comma ? " " : ", "); \
-       comma = 1; \
-       strcat(buf, a); \
-  }
-
-char* psfontResolve (PostscriptAlias* pa)
-{
-    static char buf[1024];
-    int comma=0;
-    strcpy(buf, pa->family);
-
-    ADD_ATTR(pa->weight);
-    ADD_ATTR(pa->stretch);
-    ADD_ATTR(pa->style);
-/*
-    if (pa->weight) {
-       strcat(buf, comma ? " " : ", ");
-       comma = 1;
-       strcat(buf, pa->weight);
-    }
-    if (pa->stretch) {
-       strcat(buf, comma ? " " : ", ");
-       comma = 1;
-       strcat(buf, pa->stretch);
-    }
-    if (pa->style) {
-                strcat(buf, comma ? " " : ", ");
-                comma = 1;
-                strcat(buf, pa->style);
-    }
-*/
-
-    return buf;
-}
-