]> granicus.if.org Git - graphviz/commitdiff
very small vertical adjustments
authorellson <devnull@localhost>
Sat, 12 Feb 2011 17:49:17 +0000 (17:49 +0000)
committerellson <devnull@localhost>
Sat, 12 Feb 2011 17:49:17 +0000 (17:49 +0000)
plugin/pango/gvtextlayout_pango.c

index 13fa5b8b46e7586d61bfb1c493777db9512cc048..b5a16030b290a3d940e128986dd4a3c2a4186746 100644 (file)
@@ -227,13 +227,13 @@ static boolean pango_textlayout(textpara_t * para, char **fontpath)
      * Use an assumed height based on the point size.
      */
 
-    para->height = (int)(para->fontsize * 1.2 + .5);
+    para->height = (int)(para->fontsize * 1.1 + .5);
 
     /* The y offset from baseline to 0,0 of the bitmap representation */
     para->yoffset_layout = pango_layout_get_baseline (layout) * textlayout_scale;
 
     /* The distance below midline for y centering of text strings */
-    para->yoffset_centerline = 0.10 * para->fontsize;
+    para->yoffset_centerline = 0.2 * para->fontsize;
 
     if (logical_rect.width == 0)
        return FALSE;