]> granicus.if.org Git - graphviz/commitdiff
Much improved font information with "dot -v"
authorellson <devnull@localhost>
Fri, 7 Mar 2008 19:09:56 +0000 (19:09 +0000)
committerellson <devnull@localhost>
Fri, 7 Mar 2008 19:09:56 +0000 (19:09 +0000)
Now returns the actual font used by pango (if using fontconfig/freetype backend)

lib/common/fontmetrics.c

index 5256b41c00e3d45136da672724ecd275baa6feab..718abff5ff4183c535608c88991ec1d3c3706f2f 100644 (file)
@@ -211,8 +211,8 @@ pointf textsize(graph_t *g, textpara_t * para, char *fontname, double fontsize)
        estimate_textlayout(g, para, fp);
 
     if (fp)
-       fprintf(stderr, "%s: font \"%s\" \"%g\" resolved to: %s\n",
-                   GD_gvc(g)->common.cmdname, para->fontname, para->fontsize, fontpath);
+       fprintf(stderr, "fontname: \"%s\" resolved to: %s\n",
+                   para->fontname, fontpath);
 
     size.x = para->width;
     size.y = para->height;