]> granicus.if.org Git - graphviz/commitdiff
fractionally less linespacing
authorellson <devnull@localhost>
Sat, 12 Feb 2011 17:39:57 +0000 (17:39 +0000)
committerellson <devnull@localhost>
Sat, 12 Feb 2011 17:39:57 +0000 (17:39 +0000)
plugin/pango/gvtextlayout_pango.c

index f7071325561adb9ad746f940930a2f6b2eeb9f5c..13fa5b8b46e7586d61bfb1c493777db9512cc048 100644 (file)
@@ -227,7 +227,7 @@ static boolean pango_textlayout(textpara_t * para, char **fontpath)
      * Use an assumed height based on the point size.
      */
 
-    para->height = (int)(para->fontsize * 1.3);
+    para->height = (int)(para->fontsize * 1.2 + .5);
 
     /* The y offset from baseline to 0,0 of the bitmap representation */
     para->yoffset_layout = pango_layout_get_baseline (layout) * textlayout_scale;