From: ellson Date: Sat, 12 Feb 2011 17:49:17 +0000 (+0000) Subject: very small vertical adjustments X-Git-Tag: LAST_LIBGRAPH~32^2~1037 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5ecbac91fbf9f98bf7b6aa58198a0ddf8a68c70;p=graphviz very small vertical adjustments --- diff --git a/plugin/pango/gvtextlayout_pango.c b/plugin/pango/gvtextlayout_pango.c index 13fa5b8b4..b5a16030b 100644 --- a/plugin/pango/gvtextlayout_pango.c +++ b/plugin/pango/gvtextlayout_pango.c @@ -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;