From 63f410ad5788fc59534c50abcb82c8db1d4147d7 Mon Sep 17 00:00:00 2001 From: ellson Date: Fri, 13 Mar 2009 03:31:11 +0000 Subject: [PATCH] text size under sizing and scaling (apparently different things) --- plugin/gd/gvrender_gd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/gd/gvrender_gd.c b/plugin/gd/gvrender_gd.c index d35602a12..3cefa6aa2 100644 --- a/plugin/gd/gvrender_gd.c +++ b/plugin/gd/gvrender_gd.c @@ -357,7 +357,7 @@ static void gdgen_textpara(GVJ_t * job, pointf p, textpara_t * para) { gdImagePtr im = (gdImagePtr) job->context; pointf spf, epf; - double parawidth = para->width * job->scale.x; + double parawidth = para->width * job->scale.x * POINTS_PER_INCH / job->dpi.x; char* fontname; if (!im) @@ -385,7 +385,7 @@ static void gdgen_textpara(GVJ_t * job, pointf p, textpara_t * para) else { spf.x += p.x; epf.x += p.x; - epf.y = spf.y = p.y - para->yoffset_centerline * job->scale.y; + epf.y = spf.y = p.y - para->yoffset_centerline * job->zoom; } #ifdef HAVE_GD_FONTCONFIG @@ -397,7 +397,7 @@ static void gdgen_textpara(GVJ_t * job, pointf p, textpara_t * para) gdgen_text(im, spf, epf, job->obj->pencolor.u.index, - para->fontsize * job->scale.x, + para->fontsize * job->zoom, job->dpi.x, job->rotation ? (M_PI / 2) : 0, fontname, -- 2.40.0