]> granicus.if.org Git - graphviz/commitdiff
very small adjustment to y position of text in cairo renderers
authorellson <devnull@localhost>
Sat, 20 Sep 2008 10:00:14 +0000 (10:00 +0000)
committerellson <devnull@localhost>
Sat, 20 Sep 2008 10:00:14 +0000 (10:00 +0000)
plugin/pango/gvtextlayout_pango.c

index 1dd8e195cddd45bf85aaad1ec1eb06422c98ca3b..44cbb1ee62ea719cca97467b0cfc5c31fb96b806 100644 (file)
@@ -175,7 +175,7 @@ static boolean pango_textlayout(textpara_t * para, char **fontpath)
     para->yoffset_layout = pango_layout_iter_get_baseline (iter) * textlayout_scale;
 
     /* The distance below midline for y centering of text strings */
-    para->yoffset_centerline = 0.1 * para->fontsize;
+    para->yoffset_centerline = 0.15 * para->fontsize;
 
     pango_layout_iter_free (iter);
     if (logical_rect.width == 0)