From: oetiker Date: Sun, 1 May 2005 21:24:06 +0000 (+0000) Subject: use the pen to determine string length, do not look at the realy length, or space... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=99bce2c45f31e71df366781baa77ec054c6faef6;p=rrdtool-all.git use the pen to determine string length, do not look at the realy length, or space will get ignored. git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@470 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_gfx.c b/program/src/rrd_gfx.c index becab8c9..d26e3cb3 100644 --- a/program/src/rrd_gfx.c +++ b/program/src/rrd_gfx.c @@ -476,11 +476,11 @@ gfx_string gfx_string_create(FT_Face face,const char *text, /* printf ("number of glyphs = %d\n", string->num_glyphs);*/ compute_string_bbox( string ); /* the last character was a tab */ - if (gottab) { + /* if (gottab) { */ string->width = ft_pen.x; - } else { + /* } else { string->width = string->bbox.xMax - string->bbox.xMin; - } + } */ string->height = string->bbox.yMax - string->bbox.yMin; return string;