]> granicus.if.org Git - graphviz/commitdiff
marginally better fontsize in gd output
authorellson <devnull@localhost>
Thu, 12 Mar 2009 22:19:12 +0000 (22:19 +0000)
committerellson <devnull@localhost>
Thu, 12 Mar 2009 22:19:12 +0000 (22:19 +0000)
plugin/gd/gvrender_gd.c

index 4f6aaa83ad22b3af0a91f48bbb4adab4ee3918d9..d35602a12c1feb95352f3850ea50e86064f0f8c9 100644 (file)
@@ -397,8 +397,8 @@ static void gdgen_textpara(GVJ_t * job, pointf p, textpara_t * para)
 
     gdgen_text(im, spf, epf,
             job->obj->pencolor.u.index,
-            para->fontsize,
-            ROUND(POINTS_PER_INCH * job->scale.x),
+            para->fontsize * job->scale.x,
+            job->dpi.x,
             job->rotation ? (M_PI / 2) : 0,
             fontname,
             para->str);