right_x = center_x + halfwidth_x;
/* position for first para */
- p.y += lp->dimen.y / 2. - lp->fontsize;
+ p.y += (lp->dimen.y + lp->d.y) / 2.0 - lp->fontsize;
gvrender_begin_context(job);
gvrender_set_pencolor(job, lp->fontcolor);
/* adjust text justification */
if (!mapbool(late_string(n, N_nojustify, "false"))) {
if (width > bb.x)
- ND_label(n)->d.x = width - bb.x;
- if (height > bb.y)
+ ND_label(n)->d.x = width - bb.x;
+ if (height > bb.y) {
+ p = agget(n, "labelloc");
+ if (p && (p[0] == 'b'))
+ ND_label(n)->d.y = -(height - bb.y);
+ else if (p && (p[0] == 't'))
ND_label(n)->d.y = height - bb.y;
+ else
+ ND_label(n)->d.y = 0;
+ }
}
/* increase node size to width/height if needed */